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_3.html">DCM/DFA Reporting And Trafficking API</a> . <a href="dfareporting_v3_3.inventoryItems.html">inventoryItems</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#get">get(profileId, projectId, id)</a></code></p> 79<p class="firstline">Gets one inventory item by ID.</p> 80<p class="toc_element"> 81 <code><a href="#list">list(profileId, projectId, pageToken=None, inPlan=None, sortOrder=None, type=None, orderId=None, maxResults=None, siteId=None, sortField=None, ids=None)</a></code></p> 82<p class="firstline">Retrieves a list of inventory items, possibly filtered. This method supports paging.</p> 83<p class="toc_element"> 84 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 85<p class="firstline">Retrieves the next page of results.</p> 86<h3>Method Details</h3> 87<div class="method"> 88 <code class="details" id="get">get(profileId, projectId, id)</code> 89 <pre>Gets one inventory item by ID. 90 91Args: 92 profileId: string, User profile ID associated with this request. (required) 93 projectId: string, Project ID for order documents. (required) 94 id: string, Inventory item ID. (required) 95 96Returns: 97 An object of the form: 98 99 { # Represents a buy from the Planning inventory store. 100 "orderId": "A String", # Order ID of this inventory item. 101 "pricing": { # Pricing Information # Pricing of this inventory item. 102 "groupType": "A String", # 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. 103 "startDate": "A String", # Start date of this inventory item. 104 "endDate": "A String", # End date of this inventory item. 105 "pricingType": "A String", # Pricing type of this inventory item. 106 "flights": [ # Flights of this inventory item. A flight (a.k.a. pricing period) represents the inventory item pricing information for a specific period of time. 107 { # Flight 108 "rateOrCost": "A String", # Rate or cost of this flight. 109 "startDate": "A String", # Inventory item flight start date. 110 "units": "A String", # Units of this flight. 111 "endDate": "A String", # Inventory item flight end date. 112 }, 113 ], 114 "capCostType": "A String", # Cap cost type of this inventory item. 115 }, 116 "kind": "dfareporting#inventoryItem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#inventoryItem". 117 "negotiationChannelId": "A String", # Negotiation channel ID of this inventory item. 118 "subaccountId": "A String", # Subaccount ID of this inventory item. 119 "name": "A String", # 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. 120 "estimatedClickThroughRate": "A String", # Estimated click-through rate of this inventory item. 121 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this inventory item. 122 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 123 }, 124 "estimatedConversionRate": "A String", # Estimated conversion rate of this inventory item. 125 "inPlan": True or False, # Whether this inventory item is in plan. 126 "id": "A String", # ID of this inventory item. 127 "advertiserId": "A String", # Advertiser ID of this inventory item. 128 "siteId": "A String", # ID of the site this inventory item is associated with. 129 "adSlots": [ # 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. 130 { # Ad Slot 131 "comment": "A String", # Comment for this ad slot. 132 "linkedPlacementId": "A String", # ID of the placement from an external platform that is linked to this ad slot. 133 "name": "A String", # Name of this ad slot. 134 "primary": True or False, # Primary ad slot of a roadblock inventory item. 135 "height": "A String", # Height of this ad slot. 136 "width": "A String", # Width of this ad slot. 137 "paymentSourceType": "A String", # Payment source type of this ad slot. 138 "compatibility": "A String", # 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. 139 }, 140 ], 141 "projectId": "A String", # Project ID of this inventory item. 142 "rfpId": "A String", # RFP ID of this inventory item. 143 "type": "A String", # Type of inventory item. 144 "contentCategoryId": "A String", # Content category ID of this inventory item. 145 "placementStrategyId": "A String", # Placement strategy ID of this inventory item. 146 "accountId": "A String", # Account ID of this inventory item. 147 }</pre> 148</div> 149 150<div class="method"> 151 <code class="details" id="list">list(profileId, projectId, pageToken=None, inPlan=None, sortOrder=None, type=None, orderId=None, maxResults=None, siteId=None, sortField=None, ids=None)</code> 152 <pre>Retrieves a list of inventory items, possibly filtered. This method supports paging. 153 154Args: 155 profileId: string, User profile ID associated with this request. (required) 156 projectId: string, Project ID for order documents. (required) 157 pageToken: string, Value of the nextPageToken from the previous result page. 158 inPlan: boolean, Select only inventory items that are in plan. 159 sortOrder: string, Order of sorted results. 160 Allowed values 161 ASCENDING - 162 DESCENDING - 163 type: string, Select only inventory items with this type. 164 Allowed values 165 PLANNING_PLACEMENT_TYPE_CREDIT - 166 PLANNING_PLACEMENT_TYPE_REGULAR - 167 orderId: string, Select only inventory items that belong to specified orders. (repeated) 168 maxResults: integer, Maximum number of results to return. 169 siteId: string, Select only inventory items that are associated with these sites. (repeated) 170 sortField: string, Field by which to sort the list. 171 Allowed values 172 ID - 173 NAME - 174 ids: string, Select only inventory items with these IDs. (repeated) 175 176Returns: 177 An object of the form: 178 179 { # Inventory item List Response 180 "nextPageToken": "A String", # Pagination token to be used for the next list operation. 181 "kind": "dfareporting#inventoryItemsListResponse", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#inventoryItemsListResponse". 182 "inventoryItems": [ # Inventory item collection 183 { # Represents a buy from the Planning inventory store. 184 "orderId": "A String", # Order ID of this inventory item. 185 "pricing": { # Pricing Information # Pricing of this inventory item. 186 "groupType": "A String", # 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. 187 "startDate": "A String", # Start date of this inventory item. 188 "endDate": "A String", # End date of this inventory item. 189 "pricingType": "A String", # Pricing type of this inventory item. 190 "flights": [ # Flights of this inventory item. A flight (a.k.a. pricing period) represents the inventory item pricing information for a specific period of time. 191 { # Flight 192 "rateOrCost": "A String", # Rate or cost of this flight. 193 "startDate": "A String", # Inventory item flight start date. 194 "units": "A String", # Units of this flight. 195 "endDate": "A String", # Inventory item flight end date. 196 }, 197 ], 198 "capCostType": "A String", # Cap cost type of this inventory item. 199 }, 200 "kind": "dfareporting#inventoryItem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#inventoryItem". 201 "negotiationChannelId": "A String", # Negotiation channel ID of this inventory item. 202 "subaccountId": "A String", # Subaccount ID of this inventory item. 203 "name": "A String", # 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. 204 "estimatedClickThroughRate": "A String", # Estimated click-through rate of this inventory item. 205 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this inventory item. 206 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 207 }, 208 "estimatedConversionRate": "A String", # Estimated conversion rate of this inventory item. 209 "inPlan": True or False, # Whether this inventory item is in plan. 210 "id": "A String", # ID of this inventory item. 211 "advertiserId": "A String", # Advertiser ID of this inventory item. 212 "siteId": "A String", # ID of the site this inventory item is associated with. 213 "adSlots": [ # 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. 214 { # Ad Slot 215 "comment": "A String", # Comment for this ad slot. 216 "linkedPlacementId": "A String", # ID of the placement from an external platform that is linked to this ad slot. 217 "name": "A String", # Name of this ad slot. 218 "primary": True or False, # Primary ad slot of a roadblock inventory item. 219 "height": "A String", # Height of this ad slot. 220 "width": "A String", # Width of this ad slot. 221 "paymentSourceType": "A String", # Payment source type of this ad slot. 222 "compatibility": "A String", # 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. 223 }, 224 ], 225 "projectId": "A String", # Project ID of this inventory item. 226 "rfpId": "A String", # RFP ID of this inventory item. 227 "type": "A String", # Type of inventory item. 228 "contentCategoryId": "A String", # Content category ID of this inventory item. 229 "placementStrategyId": "A String", # Placement strategy ID of this inventory item. 230 "accountId": "A String", # Account ID of this inventory item. 231 }, 232 ], 233 }</pre> 234</div> 235 236<div class="method"> 237 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 238 <pre>Retrieves the next page of results. 239 240Args: 241 previous_request: The request for the previous page. (required) 242 previous_response: The response from the request for the previous page. (required) 243 244Returns: 245 A request object that you can call 'execute()' on to request the next 246 page. Returns None if there are no more items in the collection. 247 </pre> 248</div> 249 250</body></html>