• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dfareporting_v3_4.html">Campaign Manager 360 API</a> . <a href="dfareporting_v3_4.inventoryItems.html">inventoryItems</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81  <code><a href="#get">get(profileId, projectId, id, x__xgafv=None)</a></code></p>
82<p class="firstline">Gets one inventory item by ID.</p>
83<p class="toc_element">
84  <code><a href="#list">list(profileId, projectId, ids=None, inPlan=None, maxResults=None, orderId=None, pageToken=None, siteId=None, sortField=None, sortOrder=None, type=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Retrieves a list of inventory items, possibly filtered. This method supports paging.</p>
86<p class="toc_element">
87  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<h3>Method Details</h3>
90<div class="method">
91    <code class="details" id="close">close()</code>
92  <pre>Close httplib2 connections.</pre>
93</div>
94
95<div class="method">
96    <code class="details" id="get">get(profileId, projectId, id, x__xgafv=None)</code>
97  <pre>Gets one inventory item by ID.
98
99Args:
100  profileId: string, User profile ID associated with this request. (required)
101  projectId: string, Project ID for order documents. (required)
102  id: string, Inventory item ID. (required)
103  x__xgafv: string, V1 error format.
104    Allowed values
105      1 - v1 error format
106      2 - v2 error format
107
108Returns:
109  An object of the form:
110
111    { # Represents a buy from the Planning inventory store.
112  &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this inventory item.
113  &quot;adSlots&quot;: [ # Ad slots of this inventory item. If this inventory item represents a standalone placement, there will be exactly one ad slot. If this inventory item represents a placement group, there will be more than one ad slot, each representing one child placement in that placement group.
114    { # Ad Slot
115      &quot;comment&quot;: &quot;A String&quot;, # Comment for this ad slot.
116      &quot;compatibility&quot;: &quot;A String&quot;, # Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard.
117      &quot;height&quot;: &quot;A String&quot;, # Height of this ad slot.
118      &quot;linkedPlacementId&quot;: &quot;A String&quot;, # ID of the placement from an external platform that is linked to this ad slot.
119      &quot;name&quot;: &quot;A String&quot;, # Name of this ad slot.
120      &quot;paymentSourceType&quot;: &quot;A String&quot;, # Payment source type of this ad slot.
121      &quot;primary&quot;: True or False, # Primary ad slot of a roadblock inventory item.
122      &quot;width&quot;: &quot;A String&quot;, # Width of this ad slot.
123    },
124  ],
125  &quot;advertiserId&quot;: &quot;A String&quot;, # Advertiser ID of this inventory item.
126  &quot;contentCategoryId&quot;: &quot;A String&quot;, # Content category ID of this inventory item.
127  &quot;estimatedClickThroughRate&quot;: &quot;A String&quot;, # Estimated click-through rate of this inventory item.
128  &quot;estimatedConversionRate&quot;: &quot;A String&quot;, # Estimated conversion rate of this inventory item.
129  &quot;id&quot;: &quot;A String&quot;, # ID of this inventory item.
130  &quot;inPlan&quot;: True or False, # Whether this inventory item is in plan.
131  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#inventoryItem&quot;.
132  &quot;lastModifiedInfo&quot;: { # Modification timestamp. # Information about the most recent modification of this inventory item.
133    &quot;time&quot;: &quot;A String&quot;, # Timestamp of the last change in milliseconds since epoch.
134  },
135  &quot;name&quot;: &quot;A String&quot;, # Name of this inventory item. For standalone inventory items, this is the same name as that of its only ad slot. For group inventory items, this can differ from the name of any of its ad slots.
136  &quot;negotiationChannelId&quot;: &quot;A String&quot;, # Negotiation channel ID of this inventory item.
137  &quot;orderId&quot;: &quot;A String&quot;, # Order ID of this inventory item.
138  &quot;placementStrategyId&quot;: &quot;A String&quot;, # Placement strategy ID of this inventory item.
139  &quot;pricing&quot;: { # Pricing Information # Pricing of this inventory item.
140    &quot;capCostType&quot;: &quot;A String&quot;, # Cap cost type of this inventory item.
141    &quot;endDate&quot;: &quot;A String&quot;,
142    &quot;flights&quot;: [ # Flights of this inventory item. A flight (a.k.a. pricing period) represents the inventory item pricing information for a specific period of time.
143      { # Flight
144        &quot;endDate&quot;: &quot;A String&quot;,
145        &quot;rateOrCost&quot;: &quot;A String&quot;, # Rate or cost of this flight.
146        &quot;startDate&quot;: &quot;A String&quot;,
147        &quot;units&quot;: &quot;A String&quot;, # Units of this flight.
148      },
149    ],
150    &quot;groupType&quot;: &quot;A String&quot;, # Group type of this inventory item if it represents a placement group. Is null otherwise. There are two type of placement groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items that acts as a single pricing point for a group of tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned inventory items to be marked as primary.
151    &quot;pricingType&quot;: &quot;A String&quot;, # Pricing type of this inventory item.
152    &quot;startDate&quot;: &quot;A String&quot;,
153  },
154  &quot;projectId&quot;: &quot;A String&quot;, # Project ID of this inventory item.
155  &quot;rfpId&quot;: &quot;A String&quot;, # RFP ID of this inventory item.
156  &quot;siteId&quot;: &quot;A String&quot;, # ID of the site this inventory item is associated with.
157  &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this inventory item.
158  &quot;type&quot;: &quot;A String&quot;, # Type of inventory item.
159}</pre>
160</div>
161
162<div class="method">
163    <code class="details" id="list">list(profileId, projectId, ids=None, inPlan=None, maxResults=None, orderId=None, pageToken=None, siteId=None, sortField=None, sortOrder=None, type=None, x__xgafv=None)</code>
164  <pre>Retrieves a list of inventory items, possibly filtered. This method supports paging.
165
166Args:
167  profileId: string, User profile ID associated with this request. (required)
168  projectId: string, Project ID for order documents. (required)
169  ids: string, Select only inventory items with these IDs. (repeated)
170  inPlan: boolean, Select only inventory items that are in plan.
171  maxResults: integer, Maximum number of results to return.
172  orderId: string, Select only inventory items that belong to specified orders. (repeated)
173  pageToken: string, Value of the nextPageToken from the previous result page.
174  siteId: string, Select only inventory items that are associated with these sites. (repeated)
175  sortField: string, Field by which to sort the list.
176    Allowed values
177      ID -
178      NAME -
179  sortOrder: string, Order of sorted results.
180    Allowed values
181      ASCENDING -
182      DESCENDING -
183  type: string, Select only inventory items with this type.
184    Allowed values
185      PLANNING_PLACEMENT_TYPE_REGULAR -
186      PLANNING_PLACEMENT_TYPE_CREDIT -
187  x__xgafv: string, V1 error format.
188    Allowed values
189      1 - v1 error format
190      2 - v2 error format
191
192Returns:
193  An object of the form:
194
195    { # Inventory item List Response
196  &quot;inventoryItems&quot;: [ # Inventory item collection
197    { # Represents a buy from the Planning inventory store.
198      &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this inventory item.
199      &quot;adSlots&quot;: [ # Ad slots of this inventory item. If this inventory item represents a standalone placement, there will be exactly one ad slot. If this inventory item represents a placement group, there will be more than one ad slot, each representing one child placement in that placement group.
200        { # Ad Slot
201          &quot;comment&quot;: &quot;A String&quot;, # Comment for this ad slot.
202          &quot;compatibility&quot;: &quot;A String&quot;, # Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard.
203          &quot;height&quot;: &quot;A String&quot;, # Height of this ad slot.
204          &quot;linkedPlacementId&quot;: &quot;A String&quot;, # ID of the placement from an external platform that is linked to this ad slot.
205          &quot;name&quot;: &quot;A String&quot;, # Name of this ad slot.
206          &quot;paymentSourceType&quot;: &quot;A String&quot;, # Payment source type of this ad slot.
207          &quot;primary&quot;: True or False, # Primary ad slot of a roadblock inventory item.
208          &quot;width&quot;: &quot;A String&quot;, # Width of this ad slot.
209        },
210      ],
211      &quot;advertiserId&quot;: &quot;A String&quot;, # Advertiser ID of this inventory item.
212      &quot;contentCategoryId&quot;: &quot;A String&quot;, # Content category ID of this inventory item.
213      &quot;estimatedClickThroughRate&quot;: &quot;A String&quot;, # Estimated click-through rate of this inventory item.
214      &quot;estimatedConversionRate&quot;: &quot;A String&quot;, # Estimated conversion rate of this inventory item.
215      &quot;id&quot;: &quot;A String&quot;, # ID of this inventory item.
216      &quot;inPlan&quot;: True or False, # Whether this inventory item is in plan.
217      &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#inventoryItem&quot;.
218      &quot;lastModifiedInfo&quot;: { # Modification timestamp. # Information about the most recent modification of this inventory item.
219        &quot;time&quot;: &quot;A String&quot;, # Timestamp of the last change in milliseconds since epoch.
220      },
221      &quot;name&quot;: &quot;A String&quot;, # Name of this inventory item. For standalone inventory items, this is the same name as that of its only ad slot. For group inventory items, this can differ from the name of any of its ad slots.
222      &quot;negotiationChannelId&quot;: &quot;A String&quot;, # Negotiation channel ID of this inventory item.
223      &quot;orderId&quot;: &quot;A String&quot;, # Order ID of this inventory item.
224      &quot;placementStrategyId&quot;: &quot;A String&quot;, # Placement strategy ID of this inventory item.
225      &quot;pricing&quot;: { # Pricing Information # Pricing of this inventory item.
226        &quot;capCostType&quot;: &quot;A String&quot;, # Cap cost type of this inventory item.
227        &quot;endDate&quot;: &quot;A String&quot;,
228        &quot;flights&quot;: [ # Flights of this inventory item. A flight (a.k.a. pricing period) represents the inventory item pricing information for a specific period of time.
229          { # Flight
230            &quot;endDate&quot;: &quot;A String&quot;,
231            &quot;rateOrCost&quot;: &quot;A String&quot;, # Rate or cost of this flight.
232            &quot;startDate&quot;: &quot;A String&quot;,
233            &quot;units&quot;: &quot;A String&quot;, # Units of this flight.
234          },
235        ],
236        &quot;groupType&quot;: &quot;A String&quot;, # Group type of this inventory item if it represents a placement group. Is null otherwise. There are two type of placement groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items that acts as a single pricing point for a group of tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned inventory items to be marked as primary.
237        &quot;pricingType&quot;: &quot;A String&quot;, # Pricing type of this inventory item.
238        &quot;startDate&quot;: &quot;A String&quot;,
239      },
240      &quot;projectId&quot;: &quot;A String&quot;, # Project ID of this inventory item.
241      &quot;rfpId&quot;: &quot;A String&quot;, # RFP ID of this inventory item.
242      &quot;siteId&quot;: &quot;A String&quot;, # ID of the site this inventory item is associated with.
243      &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this inventory item.
244      &quot;type&quot;: &quot;A String&quot;, # Type of inventory item.
245    },
246  ],
247  &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#inventoryItemsListResponse&quot;.
248  &quot;nextPageToken&quot;: &quot;A String&quot;, # Pagination token to be used for the next list operation.
249}</pre>
250</div>
251
252<div class="method">
253    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
254  <pre>Retrieves the next page of results.
255
256Args:
257  previous_request: The request for the previous page. (required)
258  previous_response: The response from the request for the previous page. (required)
259
260Returns:
261  A request object that you can call &#x27;execute()&#x27; on to request the next
262  page. Returns None if there are no more items in the collection.
263    </pre>
264</div>
265
266</body></html>