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_1.html">DCM/DFA Reporting And Trafficking API</a> . <a href="dfareporting_v3_1.orders.html">orders</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 order by ID.</p> 80<p class="toc_element"> 81 <code><a href="#list">list(profileId, projectId, searchString=None, pageToken=None, sortField=None, ids=None, maxResults=None, sortOrder=None, siteId=None)</a></code></p> 82<p class="firstline">Retrieves a list of orders, 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 order by ID. 90 91Args: 92 profileId: string, User profile ID associated with this request. (required) 93 projectId: string, Project ID for orders. (required) 94 id: string, Order ID. (required) 95 96Returns: 97 An object of the form: 98 99 { # Describes properties of a Planning order. 100 "termsAndConditions": "A String", # Terms and conditions of this order. 101 "kind": "dfareporting#order", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#order". 102 "sellerOrganizationName": "A String", # Name of the seller organization. 103 "subaccountId": "A String", # Subaccount ID of this order. 104 "name": "A String", # Name of this order. 105 "buyerInvoiceId": "A String", # Buyer invoice ID associated with this order. 106 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this order. 107 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 108 }, 109 "notes": "A String", # Notes of this order. 110 "contacts": [ # Contacts for this order. 111 { # Contact of an order. 112 "signatureUserProfileId": "A String", # ID of the user profile containing the signature that will be embedded into order documents. 113 "contactTitle": "A String", # Title of this contact. 114 "contactInfo": "A String", # Free-form information about this contact. It could be any information related to this contact in addition to type, title, name, and signature user profile ID. 115 "contactName": "A String", # Name of this contact. 116 "contactType": "A String", # Type of this contact. 117 }, 118 ], 119 "buyerOrganizationName": "A String", # Name of the buyer organization. 120 "comments": "A String", # Comments in this order. 121 "advertiserId": "A String", # Advertiser ID of this order. 122 "approverUserProfileIds": [ # IDs for users that have to approve documents created for this order. 123 "A String", 124 ], 125 "siteId": [ # Site IDs this order is associated with. 126 "A String", 127 ], 128 "sellerOrderId": "A String", # Seller order ID associated with this order. 129 "projectId": "A String", # Project ID of this order. 130 "siteNames": [ # Free-form site names this order is associated with. 131 "A String", 132 ], 133 "planningTermId": "A String", # ID of the terms and conditions template used in this order. 134 "id": "A String", # ID of this order. This is a read-only, auto-generated field. 135 "accountId": "A String", # Account ID of this order. 136 }</pre> 137</div> 138 139<div class="method"> 140 <code class="details" id="list">list(profileId, projectId, searchString=None, pageToken=None, sortField=None, ids=None, maxResults=None, sortOrder=None, siteId=None)</code> 141 <pre>Retrieves a list of orders, possibly filtered. This method supports paging. 142 143Args: 144 profileId: string, User profile ID associated with this request. (required) 145 projectId: string, Project ID for orders. (required) 146 searchString: string, Allows searching for orders by name or ID. Wildcards (*) are allowed. For example, "order*2015" will return orders with names like "order June 2015", "order April 2015", or simply "order 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "order" will match orders with name "my order", "order 2015", or simply "order". 147 pageToken: string, Value of the nextPageToken from the previous result page. 148 sortField: string, Field by which to sort the list. 149 Allowed values 150 ID - 151 NAME - 152 ids: string, Select only orders with these IDs. (repeated) 153 maxResults: integer, Maximum number of results to return. 154 sortOrder: string, Order of sorted results. 155 Allowed values 156 ASCENDING - 157 DESCENDING - 158 siteId: string, Select only orders that are associated with these site IDs. (repeated) 159 160Returns: 161 An object of the form: 162 163 { # Order List Response 164 "nextPageToken": "A String", # Pagination token to be used for the next list operation. 165 "kind": "dfareporting#ordersListResponse", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#ordersListResponse". 166 "orders": [ # Order collection. 167 { # Describes properties of a Planning order. 168 "termsAndConditions": "A String", # Terms and conditions of this order. 169 "kind": "dfareporting#order", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#order". 170 "sellerOrganizationName": "A String", # Name of the seller organization. 171 "subaccountId": "A String", # Subaccount ID of this order. 172 "name": "A String", # Name of this order. 173 "buyerInvoiceId": "A String", # Buyer invoice ID associated with this order. 174 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this order. 175 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 176 }, 177 "notes": "A String", # Notes of this order. 178 "contacts": [ # Contacts for this order. 179 { # Contact of an order. 180 "signatureUserProfileId": "A String", # ID of the user profile containing the signature that will be embedded into order documents. 181 "contactTitle": "A String", # Title of this contact. 182 "contactInfo": "A String", # Free-form information about this contact. It could be any information related to this contact in addition to type, title, name, and signature user profile ID. 183 "contactName": "A String", # Name of this contact. 184 "contactType": "A String", # Type of this contact. 185 }, 186 ], 187 "buyerOrganizationName": "A String", # Name of the buyer organization. 188 "comments": "A String", # Comments in this order. 189 "advertiserId": "A String", # Advertiser ID of this order. 190 "approverUserProfileIds": [ # IDs for users that have to approve documents created for this order. 191 "A String", 192 ], 193 "siteId": [ # Site IDs this order is associated with. 194 "A String", 195 ], 196 "sellerOrderId": "A String", # Seller order ID associated with this order. 197 "projectId": "A String", # Project ID of this order. 198 "siteNames": [ # Free-form site names this order is associated with. 199 "A String", 200 ], 201 "planningTermId": "A String", # ID of the terms and conditions template used in this order. 202 "id": "A String", # ID of this order. This is a read-only, auto-generated field. 203 "accountId": "A String", # Account ID of this order. 204 }, 205 ], 206 }</pre> 207</div> 208 209<div class="method"> 210 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 211 <pre>Retrieves the next page of results. 212 213Args: 214 previous_request: The request for the previous page. (required) 215 previous_response: The response from the request for the previous page. (required) 216 217Returns: 218 A request object that you can call 'execute()' on to request the next 219 page. Returns None if there are no more items in the collection. 220 </pre> 221</div> 222 223</body></html>