Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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">DCM/DFA Reporting And Trafficking API</a> . <a href="dfareporting_v3_4.orders.html">orders</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 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> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 82 | <p class="firstline">Gets one order by ID.</p> |
| 83 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 84 | <code><a href="#list">list(profileId, projectId, searchString=None, pageToken=None, sortOrder=None, maxResults=None, siteId=None, sortField=None, ids=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 85 | <p class="firstline">Retrieves a list of orders, 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"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 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> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 97 | <pre>Gets one order by ID. |
| 98 | |
| 99 | Args: |
| 100 | profileId: string, User profile ID associated with this request. (required) |
| 101 | projectId: string, Project ID for orders. (required) |
| 102 | id: string, Order ID. (required) |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 103 | x__xgafv: string, V1 error format. |
| 104 | Allowed values |
| 105 | 1 - v1 error format |
| 106 | 2 - v2 error format |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 107 | |
| 108 | Returns: |
| 109 | An object of the form: |
| 110 | |
| 111 | { # Describes properties of a Planning order. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 112 | "id": "A String", # ID of this order. This is a read-only, auto-generated field. |
| 113 | "projectId": "A String", # Project ID of this order. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 114 | "buyerInvoiceId": "A String", # Buyer invoice ID associated with this order. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 115 | "contacts": [ # Contacts for this order. |
| 116 | { # Contact of an order. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 117 | "contactName": "A String", # Name of this contact. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 118 | "signatureUserProfileId": "A String", # ID of the user profile containing the signature that will be embedded into order documents. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 119 | "contactType": "A String", # Type of this contact. |
| 120 | "contactTitle": "A String", # Title of this contact. |
| 121 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 122 | }, |
| 123 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 124 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#order". |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 125 | "siteNames": [ # Free-form site names this order is associated with. |
| 126 | "A String", |
| 127 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 128 | "comments": "A String", # Comments in this order. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 129 | "termsAndConditions": "A String", # Terms and conditions of this order. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 130 | "accountId": "A String", # Account ID of this order. |
| 131 | "siteId": [ # Site IDs this order is associated with. |
| 132 | "A String", |
| 133 | ], |
| 134 | "name": "A String", # Name of this order. |
| 135 | "sellerOrganizationName": "A String", # Name of the seller organization. |
| 136 | "approverUserProfileIds": [ # IDs for users that have to approve documents created for this order. |
| 137 | "A String", |
| 138 | ], |
| 139 | "buyerOrganizationName": "A String", # Name of the buyer organization. |
| 140 | "sellerOrderId": "A String", # Seller order ID associated with this order. |
| 141 | "notes": "A String", # Notes of this order. |
| 142 | "planningTermId": "A String", # ID of the terms and conditions template used in this order. |
| 143 | "subaccountId": "A String", # Subaccount ID of this order. |
| 144 | "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this order. |
| 145 | "time": "A String", # Timestamp of the last change in milliseconds since epoch. |
| 146 | }, |
| 147 | "advertiserId": "A String", # Advertiser ID of this order. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 148 | }</pre> |
| 149 | </div> |
| 150 | |
| 151 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 152 | <code class="details" id="list">list(profileId, projectId, searchString=None, pageToken=None, sortOrder=None, maxResults=None, siteId=None, sortField=None, ids=None, x__xgafv=None)</code> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 153 | <pre>Retrieves a list of orders, possibly filtered. This method supports paging. |
| 154 | |
| 155 | Args: |
| 156 | profileId: string, User profile ID associated with this request. (required) |
| 157 | projectId: string, Project ID for orders. (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 158 | 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". |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 159 | pageToken: string, Value of the nextPageToken from the previous result page. |
| 160 | sortOrder: string, Order of sorted results. |
| 161 | Allowed values |
| 162 | ASCENDING - |
| 163 | DESCENDING - |
| 164 | maxResults: integer, Maximum number of results to return. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 165 | siteId: string, Select only orders that are associated with these site IDs. (repeated) |
| 166 | sortField: string, Field by which to sort the list. |
| 167 | Allowed values |
| 168 | ID - |
| 169 | NAME - |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 170 | ids: string, Select only orders with these IDs. (repeated) |
| 171 | x__xgafv: string, V1 error format. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 172 | Allowed values |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 173 | 1 - v1 error format |
| 174 | 2 - v2 error format |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 175 | |
| 176 | Returns: |
| 177 | An object of the form: |
| 178 | |
| 179 | { # Order List Response |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 180 | "orders": [ # Order collection. |
| 181 | { # Describes properties of a Planning order. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 182 | "id": "A String", # ID of this order. This is a read-only, auto-generated field. |
| 183 | "projectId": "A String", # Project ID of this order. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 184 | "buyerInvoiceId": "A String", # Buyer invoice ID associated with this order. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 185 | "contacts": [ # Contacts for this order. |
| 186 | { # Contact of an order. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 187 | "contactName": "A String", # Name of this contact. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 188 | "signatureUserProfileId": "A String", # ID of the user profile containing the signature that will be embedded into order documents. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 189 | "contactType": "A String", # Type of this contact. |
| 190 | "contactTitle": "A String", # Title of this contact. |
| 191 | "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. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 192 | }, |
| 193 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 194 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#order". |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 195 | "siteNames": [ # Free-form site names this order is associated with. |
| 196 | "A String", |
| 197 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 198 | "comments": "A String", # Comments in this order. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 199 | "termsAndConditions": "A String", # Terms and conditions of this order. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 200 | "accountId": "A String", # Account ID of this order. |
| 201 | "siteId": [ # Site IDs this order is associated with. |
| 202 | "A String", |
| 203 | ], |
| 204 | "name": "A String", # Name of this order. |
| 205 | "sellerOrganizationName": "A String", # Name of the seller organization. |
| 206 | "approverUserProfileIds": [ # IDs for users that have to approve documents created for this order. |
| 207 | "A String", |
| 208 | ], |
| 209 | "buyerOrganizationName": "A String", # Name of the buyer organization. |
| 210 | "sellerOrderId": "A String", # Seller order ID associated with this order. |
| 211 | "notes": "A String", # Notes of this order. |
| 212 | "planningTermId": "A String", # ID of the terms and conditions template used in this order. |
| 213 | "subaccountId": "A String", # Subaccount ID of this order. |
| 214 | "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this order. |
| 215 | "time": "A String", # Timestamp of the last change in milliseconds since epoch. |
| 216 | }, |
| 217 | "advertiserId": "A String", # Advertiser ID of this order. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 218 | }, |
| 219 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 220 | "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#ordersListResponse". |
| 221 | "nextPageToken": "A String", # Pagination token to be used for the next list operation. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 222 | }</pre> |
| 223 | </div> |
| 224 | |
| 225 | <div class="method"> |
| 226 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 227 | <pre>Retrieves the next page of results. |
| 228 | |
| 229 | Args: |
| 230 | previous_request: The request for the previous page. (required) |
| 231 | previous_response: The response from the request for the previous page. (required) |
| 232 | |
| 233 | Returns: |
| 234 | A request object that you can call 'execute()' on to request the next |
| 235 | page. Returns None if there are no more items in the collection. |
| 236 | </pre> |
| 237 | </div> |
| 238 | |
| 239 | </body></html> |