python-amazon-ad-api 2.4.5__py3-none-any.whl → 2.4.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ad_api/api/amc/administration.py +898 -7
- ad_api/version.py +1 -1
- {python_amazon_ad_api-2.4.5.dist-info → python_amazon_ad_api-2.4.7.dist-info}/METADATA +1 -1
- {python_amazon_ad_api-2.4.5.dist-info → python_amazon_ad_api-2.4.7.dist-info}/RECORD +7 -7
- {python_amazon_ad_api-2.4.5.dist-info → python_amazon_ad_api-2.4.7.dist-info}/WHEEL +0 -0
- {python_amazon_ad_api-2.4.5.dist-info → python_amazon_ad_api-2.4.7.dist-info}/licenses/LICENSE +0 -0
- {python_amazon_ad_api-2.4.5.dist-info → python_amazon_ad_api-2.4.7.dist-info}/top_level.txt +0 -0
ad_api/api/amc/administration.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
|
|
1
|
+
from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse, Utils
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
class Administration(Client):
|
|
@@ -12,13 +12,13 @@ class Administration(Client):
|
|
|
12
12
|
All endpoints require the ``Amazon-Advertising-API-ClientId`` header
|
|
13
13
|
(sent automatically from ``client_id`` in credentials).
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
The request/response media type is ``application/vnd.amcaudiencesconnections.v{version}+json``.
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
18
|
@sp_endpoint('/amc/accounts', method='GET', headers=[])
|
|
19
|
-
def list_accounts(self, version: str = "1", **kwargs) -> ApiResponse:
|
|
19
|
+
def list_accounts(self, version: str = "1", next_token: str = None, **kwargs) -> ApiResponse:
|
|
20
20
|
r"""
|
|
21
|
-
list_accounts(next_token: str = None) -> ApiResponse
|
|
21
|
+
list_accounts(version: str = "1", next_token: str = None) -> ApiResponse
|
|
22
22
|
|
|
23
23
|
Get a list of AMC Accounts (operationId: AmcpLinkListAmcAccounts)
|
|
24
24
|
|
|
@@ -41,7 +41,898 @@ class Administration(Client):
|
|
|
41
41
|
| **nextToken** (string)
|
|
42
42
|
|
|
43
43
|
"""
|
|
44
|
-
|
|
45
|
-
headers = {
|
|
44
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
45
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
46
|
+
path = kwargs.pop('path')
|
|
46
47
|
params = dict(kwargs)
|
|
47
|
-
|
|
48
|
+
if next_token:
|
|
49
|
+
params['nextToken'] = next_token
|
|
50
|
+
return self._request(path, params=params, headers=headers)
|
|
51
|
+
|
|
52
|
+
@sp_endpoint('/amc/instances', method='GET', headers=[])
|
|
53
|
+
def list_instances(self, version: str = "1", next_token: str = None, **kwargs) -> ApiResponse:
|
|
54
|
+
r"""
|
|
55
|
+
list_instances(version: str = "1", next_token: str = None) -> ApiResponse
|
|
56
|
+
|
|
57
|
+
Gets information about all AMC instances (operationId: listInstances)
|
|
58
|
+
|
|
59
|
+
Query Parameters
|
|
60
|
+
| **nextToken** (string) [optional] Token to retrieve subsequent page of results
|
|
61
|
+
|
|
62
|
+
Headers
|
|
63
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
64
|
+
|
|
65
|
+
Returns
|
|
66
|
+
ApiResponse
|
|
67
|
+
| **instances** (array)
|
|
68
|
+
| **instanceId** (string)
|
|
69
|
+
| **instanceName** (string)
|
|
70
|
+
| **region** (string)
|
|
71
|
+
| **status** (string)
|
|
72
|
+
| **createdTime** (string)
|
|
73
|
+
| **updatedTime** (string)
|
|
74
|
+
| **nextToken** (string)
|
|
75
|
+
|
|
76
|
+
"""
|
|
77
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
78
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
79
|
+
path = kwargs.pop('path')
|
|
80
|
+
params = dict(kwargs)
|
|
81
|
+
if next_token:
|
|
82
|
+
params['nextToken'] = next_token
|
|
83
|
+
return self._request(path, params=params, headers=headers)
|
|
84
|
+
|
|
85
|
+
@sp_endpoint('/amc/instances', method='POST', headers=[])
|
|
86
|
+
def create_instance(self, body: dict, version: str = "1", **kwargs) -> ApiResponse:
|
|
87
|
+
r"""
|
|
88
|
+
create_instance(body: dict, version: str = "1") -> ApiResponse
|
|
89
|
+
|
|
90
|
+
Creates a new AMC instance (operationId: createInstance)
|
|
91
|
+
|
|
92
|
+
Body Parameters
|
|
93
|
+
| **instanceName** (string) [required] The name of the AMC instance
|
|
94
|
+
| **region** (string) [required] The region for the AMC instance
|
|
95
|
+
| **customerAwsAccountId** (string) [optional] Customer's AWS account ID
|
|
96
|
+
| **customerAwsAccountExternalId** (string) [optional] External ID for customer's AWS account
|
|
97
|
+
|
|
98
|
+
Headers
|
|
99
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
100
|
+
|
|
101
|
+
Returns
|
|
102
|
+
ApiResponse
|
|
103
|
+
| **instanceId** (string)
|
|
104
|
+
| **instanceName** (string)
|
|
105
|
+
| **region** (string)
|
|
106
|
+
| **status** (string)
|
|
107
|
+
| **createdTime** (string)
|
|
108
|
+
| **updatedTime** (string)
|
|
109
|
+
|
|
110
|
+
"""
|
|
111
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
112
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
113
|
+
path = kwargs.pop('path')
|
|
114
|
+
params = dict(kwargs)
|
|
115
|
+
return self._request(path, data=Utils.convert_body(body, False), params=params, headers=headers)
|
|
116
|
+
|
|
117
|
+
@sp_endpoint('/amc/instances/{}', method='DELETE', headers=[])
|
|
118
|
+
def delete_instance(self, instance_id: str, version: str = "1", **kwargs) -> ApiResponse:
|
|
119
|
+
r"""
|
|
120
|
+
delete_instance(instance_id: str, version: str = "1") -> ApiResponse
|
|
121
|
+
|
|
122
|
+
Deletes the requested AMC instance (operationId: deleteInstance)
|
|
123
|
+
|
|
124
|
+
Path Parameters
|
|
125
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
126
|
+
|
|
127
|
+
Headers
|
|
128
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
129
|
+
|
|
130
|
+
Returns
|
|
131
|
+
ApiResponse (empty on success)
|
|
132
|
+
|
|
133
|
+
"""
|
|
134
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
135
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
136
|
+
path = fill_query_params(kwargs.pop('path'), instance_id)
|
|
137
|
+
params = dict(kwargs)
|
|
138
|
+
return self._request(path, params=params, headers=headers)
|
|
139
|
+
|
|
140
|
+
@sp_endpoint('/amc/instances/{}', method='GET', headers=[])
|
|
141
|
+
def get_instance(self, instance_id: str, version: str = "1", **kwargs) -> ApiResponse:
|
|
142
|
+
r"""
|
|
143
|
+
get_instance(instance_id: str, version: str = "1") -> ApiResponse
|
|
144
|
+
|
|
145
|
+
Gets information about the requested AMC instance (operationId: getInstance)
|
|
146
|
+
|
|
147
|
+
Path Parameters
|
|
148
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
149
|
+
|
|
150
|
+
Headers
|
|
151
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
152
|
+
|
|
153
|
+
Returns
|
|
154
|
+
ApiResponse
|
|
155
|
+
| **instanceId** (string)
|
|
156
|
+
| **instanceName** (string)
|
|
157
|
+
| **region** (string)
|
|
158
|
+
| **status** (string)
|
|
159
|
+
| **createdTime** (string)
|
|
160
|
+
| **updatedTime** (string)
|
|
161
|
+
| **customerAwsAccountId** (string)
|
|
162
|
+
| **customerAwsAccountExternalId** (string)
|
|
163
|
+
|
|
164
|
+
"""
|
|
165
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
166
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
167
|
+
path = fill_query_params(kwargs.pop('path'), instance_id)
|
|
168
|
+
params = dict(kwargs)
|
|
169
|
+
return self._request(path, params=params, headers=headers)
|
|
170
|
+
|
|
171
|
+
@sp_endpoint('/amc/instances/{}', method='PUT', headers=[])
|
|
172
|
+
def update_instance(self, instance_id: str, body: dict, version: str = "1", **kwargs) -> ApiResponse:
|
|
173
|
+
r"""
|
|
174
|
+
update_instance(instance_id: str, body: dict, version: str = "1") -> ApiResponse
|
|
175
|
+
|
|
176
|
+
Updates the requested AMC instance (operationId: updateInstance)
|
|
177
|
+
|
|
178
|
+
Path Parameters
|
|
179
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
180
|
+
|
|
181
|
+
Body Parameters
|
|
182
|
+
| **instanceName** (string) [optional] The name of the AMC instance
|
|
183
|
+
| **customerAwsAccountId** (string) [optional] Customer's AWS account ID
|
|
184
|
+
| **customerAwsAccountExternalId** (string) [optional] External ID for customer's AWS account
|
|
185
|
+
|
|
186
|
+
Headers
|
|
187
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
188
|
+
|
|
189
|
+
Returns
|
|
190
|
+
ApiResponse
|
|
191
|
+
| **instanceId** (string)
|
|
192
|
+
| **instanceName** (string)
|
|
193
|
+
| **region** (string)
|
|
194
|
+
| **status** (string)
|
|
195
|
+
| **createdTime** (string)
|
|
196
|
+
| **updatedTime** (string)
|
|
197
|
+
|
|
198
|
+
"""
|
|
199
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
200
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
201
|
+
path = fill_query_params(kwargs.pop('path'), instance_id)
|
|
202
|
+
params = dict(kwargs)
|
|
203
|
+
return self._request(path, data=Utils.convert_body(body, False), params=params, headers=headers)
|
|
204
|
+
|
|
205
|
+
@sp_endpoint('/amc/instances/{}/advertisers', method='GET', headers=[])
|
|
206
|
+
def get_instance_advertisers(self, instance_id: str, version: str = "1", next_token: str = None, **kwargs) -> ApiResponse:
|
|
207
|
+
r"""
|
|
208
|
+
get_instance_advertisers(instance_id: str, version: str = "1", next_token: str = None) -> ApiResponse
|
|
209
|
+
|
|
210
|
+
Gets advertisers information about the requested AMC instance (operationId: getInstanceAdvertisers)
|
|
211
|
+
|
|
212
|
+
Path Parameters
|
|
213
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
214
|
+
|
|
215
|
+
Query Parameters
|
|
216
|
+
| **nextToken** (string) [optional] Token to retrieve subsequent page of results
|
|
217
|
+
|
|
218
|
+
Headers
|
|
219
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
220
|
+
|
|
221
|
+
Returns
|
|
222
|
+
ApiResponse
|
|
223
|
+
| **advertisers** (array)
|
|
224
|
+
| **advertiserId** (string)
|
|
225
|
+
| **advertiserName** (string)
|
|
226
|
+
| **marketplaceId** (string)
|
|
227
|
+
| **status** (string)
|
|
228
|
+
| **nextToken** (string)
|
|
229
|
+
|
|
230
|
+
"""
|
|
231
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
232
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
233
|
+
path = fill_query_params(kwargs.pop('path'), instance_id)
|
|
234
|
+
params = dict(kwargs)
|
|
235
|
+
if next_token:
|
|
236
|
+
params['nextToken'] = next_token
|
|
237
|
+
return self._request(path, params=params, headers=headers)
|
|
238
|
+
|
|
239
|
+
@sp_endpoint('/amc/instances/{}/advertisers/updates', method='GET', headers=[])
|
|
240
|
+
def list_advertiser_updates(self, instance_id: str, version: str = "1", next_token: str = None, **kwargs) -> ApiResponse:
|
|
241
|
+
r"""
|
|
242
|
+
list_advertiser_updates(instance_id: str, version: str = "1", next_token: str = None) -> ApiResponse
|
|
243
|
+
|
|
244
|
+
Lists advertiser updates for the requested AMC instance (operationId: listAdvertiserUpdates)
|
|
245
|
+
|
|
246
|
+
Path Parameters
|
|
247
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
248
|
+
|
|
249
|
+
Query Parameters
|
|
250
|
+
| **nextToken** (string) [optional] Token to retrieve subsequent page of results
|
|
251
|
+
|
|
252
|
+
Headers
|
|
253
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
254
|
+
|
|
255
|
+
Returns
|
|
256
|
+
ApiResponse
|
|
257
|
+
| **updates** (array)
|
|
258
|
+
| **updateId** (string)
|
|
259
|
+
| **advertiserId** (string)
|
|
260
|
+
| **status** (string)
|
|
261
|
+
| **createdTime** (string)
|
|
262
|
+
| **nextToken** (string)
|
|
263
|
+
|
|
264
|
+
"""
|
|
265
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
266
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
267
|
+
path = fill_query_params(kwargs.pop('path'), instance_id)
|
|
268
|
+
params = dict(kwargs)
|
|
269
|
+
if next_token:
|
|
270
|
+
params['nextToken'] = next_token
|
|
271
|
+
return self._request(path, params=params, headers=headers)
|
|
272
|
+
|
|
273
|
+
@sp_endpoint('/amc/instances/{}/advertisers/updates', method='POST', headers=[])
|
|
274
|
+
def create_advertiser_update(self, instance_id: str, body: dict, version: str = "1", **kwargs) -> ApiResponse:
|
|
275
|
+
r"""
|
|
276
|
+
create_advertiser_update(instance_id: str, body: dict, version: str = "1") -> ApiResponse
|
|
277
|
+
|
|
278
|
+
Creates a new advertiser update for the requested AMC instance (operationId: createAdvertiserUpdate)
|
|
279
|
+
|
|
280
|
+
Path Parameters
|
|
281
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
282
|
+
|
|
283
|
+
Body Parameters
|
|
284
|
+
| **advertiserId** (string) [required] The advertiser ID
|
|
285
|
+
| **marketplaceId** (string) [required] The marketplace ID
|
|
286
|
+
|
|
287
|
+
Headers
|
|
288
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
289
|
+
|
|
290
|
+
Returns
|
|
291
|
+
ApiResponse
|
|
292
|
+
| **updateId** (string)
|
|
293
|
+
| **advertiserId** (string)
|
|
294
|
+
| **status** (string)
|
|
295
|
+
| **createdTime** (string)
|
|
296
|
+
|
|
297
|
+
"""
|
|
298
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
299
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
300
|
+
path = fill_query_params(kwargs.pop('path'), instance_id)
|
|
301
|
+
params = dict(kwargs)
|
|
302
|
+
return self._request(path, data=Utils.convert_body(body, False), params=params, headers=headers)
|
|
303
|
+
|
|
304
|
+
@sp_endpoint('/amc/instances/{}/advertisers/updates/{}', method='GET', headers=[])
|
|
305
|
+
def get_advertiser_update(self, instance_id: str, update_id: str, version: str = "1", **kwargs) -> ApiResponse:
|
|
306
|
+
r"""
|
|
307
|
+
get_advertiser_update(instance_id: str, update_id: str, version: str = "1") -> ApiResponse
|
|
308
|
+
|
|
309
|
+
Gets the requested advertiser update for the requested AMC instance (operationId: getAdvertiserUpdate)
|
|
310
|
+
|
|
311
|
+
Path Parameters
|
|
312
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
313
|
+
| **updateId** (string) [required] The advertiser update ID
|
|
314
|
+
|
|
315
|
+
Headers
|
|
316
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
317
|
+
|
|
318
|
+
Returns
|
|
319
|
+
ApiResponse
|
|
320
|
+
| **updateId** (string)
|
|
321
|
+
| **advertiserId** (string)
|
|
322
|
+
| **marketplaceId** (string)
|
|
323
|
+
| **status** (string)
|
|
324
|
+
| **createdTime** (string)
|
|
325
|
+
| **completedTime** (string)
|
|
326
|
+
|
|
327
|
+
"""
|
|
328
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
329
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
330
|
+
path = fill_query_params(kwargs.pop('path'), instance_id, update_id)
|
|
331
|
+
params = dict(kwargs)
|
|
332
|
+
return self._request(path, params=params, headers=headers)
|
|
333
|
+
|
|
334
|
+
@sp_endpoint('/amc/instances/{}/collaboration', method='GET', headers=[])
|
|
335
|
+
def get_instance_collaboration(self, instance_id: str, version: str = "1",
|
|
336
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
337
|
+
amazon_advertising_api_marketplace_id: str = None,
|
|
338
|
+
**kwargs) -> ApiResponse:
|
|
339
|
+
r"""
|
|
340
|
+
get_instance_collaboration(instance_id: str, version: str = "1",
|
|
341
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
342
|
+
amazon_advertising_api_marketplace_id: str = None) -> ApiResponse
|
|
343
|
+
|
|
344
|
+
Gets the collaboration metadata for the requested AMC instance (operationId: getInstanceCollaboration)
|
|
345
|
+
|
|
346
|
+
Path Parameters
|
|
347
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
348
|
+
|
|
349
|
+
Headers
|
|
350
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
351
|
+
| **Amazon-Advertising-API-AdvertiserId** (string) [required] The AMC Account ID
|
|
352
|
+
| **Amazon-Advertising-API-MarketplaceId** (string) [required] The Marketplace ID
|
|
353
|
+
|
|
354
|
+
Returns
|
|
355
|
+
ApiResponse
|
|
356
|
+
| **collaborationId** (string)
|
|
357
|
+
| **collaborationArn** (string)
|
|
358
|
+
| **status** (string)
|
|
359
|
+
| **createdTime** (string)
|
|
360
|
+
|
|
361
|
+
"""
|
|
362
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
363
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
364
|
+
if amazon_advertising_api_advertiser_id:
|
|
365
|
+
headers['Amazon-Advertising-API-AdvertiserId'] = amazon_advertising_api_advertiser_id
|
|
366
|
+
if amazon_advertising_api_marketplace_id:
|
|
367
|
+
headers['Amazon-Advertising-API-MarketplaceId'] = amazon_advertising_api_marketplace_id
|
|
368
|
+
path = fill_query_params(kwargs.pop('path'), instance_id)
|
|
369
|
+
params = dict(kwargs)
|
|
370
|
+
return self._request(path, params=params, headers=headers)
|
|
371
|
+
|
|
372
|
+
@sp_endpoint('/amc/instances/{}/collaboration/idmappingtables', method='POST', headers=[])
|
|
373
|
+
def create_collaboration_id_mapping_table(self, instance_id: str, body: dict, version: str = "1",
|
|
374
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
375
|
+
amazon_advertising_api_marketplace_id: str = None,
|
|
376
|
+
**kwargs) -> ApiResponse:
|
|
377
|
+
r"""
|
|
378
|
+
create_collaboration_id_mapping_table(instance_id: str, body: dict, version: str = "1",
|
|
379
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
380
|
+
amazon_advertising_api_marketplace_id: str = None) -> ApiResponse
|
|
381
|
+
|
|
382
|
+
Creates an ID Mapping Table in the requested AMC instance collaboration and starts the job to populate the table (operationId: createCollaborationIdMappingTable)
|
|
383
|
+
|
|
384
|
+
Path Parameters
|
|
385
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
386
|
+
|
|
387
|
+
Body Parameters
|
|
388
|
+
| **name** (string) [required] The name of the ID mapping table
|
|
389
|
+
| **sourceIdNamespace** (string) [required] The source ID namespace
|
|
390
|
+
| **targetIdNamespace** (string) [required] The target ID namespace
|
|
391
|
+
| **sourceIdColumnName** (string) [required] The source ID column name
|
|
392
|
+
| **targetIdColumnName** (string) [required] The target ID column name
|
|
393
|
+
|
|
394
|
+
Headers
|
|
395
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
396
|
+
| **Amazon-Advertising-API-AdvertiserId** (string) [required] The AMC Account ID
|
|
397
|
+
| **Amazon-Advertising-API-MarketplaceId** (string) [required] The Marketplace ID
|
|
398
|
+
|
|
399
|
+
Returns
|
|
400
|
+
ApiResponse
|
|
401
|
+
| **idMappingTableId** (string)
|
|
402
|
+
| **trackingId** (string)
|
|
403
|
+
| **status** (string)
|
|
404
|
+
|
|
405
|
+
"""
|
|
406
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
407
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
408
|
+
if amazon_advertising_api_advertiser_id:
|
|
409
|
+
headers['Amazon-Advertising-API-AdvertiserId'] = amazon_advertising_api_advertiser_id
|
|
410
|
+
if amazon_advertising_api_marketplace_id:
|
|
411
|
+
headers['Amazon-Advertising-API-MarketplaceId'] = amazon_advertising_api_marketplace_id
|
|
412
|
+
path = fill_query_params(kwargs.pop('path'), instance_id)
|
|
413
|
+
params = dict(kwargs)
|
|
414
|
+
return self._request(path, data=Utils.convert_body(body, False), params=params, headers=headers)
|
|
415
|
+
|
|
416
|
+
@sp_endpoint('/amc/instances/{}/collaboration/idmappingtables/list', method='POST', headers=[])
|
|
417
|
+
def list_collaboration_id_mapping_tables(self, instance_id: str, body: dict = None, version: str = "1",
|
|
418
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
419
|
+
amazon_advertising_api_marketplace_id: str = None,
|
|
420
|
+
**kwargs) -> ApiResponse:
|
|
421
|
+
r"""
|
|
422
|
+
list_collaboration_id_mapping_tables(instance_id: str, body: dict = None, version: str = "1",
|
|
423
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
424
|
+
amazon_advertising_api_marketplace_id: str = None) -> ApiResponse
|
|
425
|
+
|
|
426
|
+
Lists the ID mapping tables in the collaboration in the requested AMC instance (operationId: listCollaborationIdMappingTables)
|
|
427
|
+
|
|
428
|
+
Path Parameters
|
|
429
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
430
|
+
|
|
431
|
+
Body Parameters
|
|
432
|
+
| **nextToken** (string) [optional] Token to retrieve subsequent page of results
|
|
433
|
+
| **maxResults** (integer) [optional] Maximum number of results to return
|
|
434
|
+
|
|
435
|
+
Headers
|
|
436
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
437
|
+
| **Amazon-Advertising-API-AdvertiserId** (string) [required] The AMC Account ID
|
|
438
|
+
| **Amazon-Advertising-API-MarketplaceId** (string) [required] The Marketplace ID
|
|
439
|
+
|
|
440
|
+
Returns
|
|
441
|
+
ApiResponse
|
|
442
|
+
| **idMappingTables** (array)
|
|
443
|
+
| **idMappingTableId** (string)
|
|
444
|
+
| **name** (string)
|
|
445
|
+
| **sourceIdNamespace** (string)
|
|
446
|
+
| **targetIdNamespace** (string)
|
|
447
|
+
| **status** (string)
|
|
448
|
+
| **createdTime** (string)
|
|
449
|
+
| **nextToken** (string)
|
|
450
|
+
|
|
451
|
+
"""
|
|
452
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
453
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
454
|
+
if amazon_advertising_api_advertiser_id:
|
|
455
|
+
headers['Amazon-Advertising-API-AdvertiserId'] = amazon_advertising_api_advertiser_id
|
|
456
|
+
if amazon_advertising_api_marketplace_id:
|
|
457
|
+
headers['Amazon-Advertising-API-MarketplaceId'] = amazon_advertising_api_marketplace_id
|
|
458
|
+
path = fill_query_params(kwargs.pop('path'), instance_id)
|
|
459
|
+
params = dict(kwargs)
|
|
460
|
+
return self._request(path, data=Utils.convert_body(body or {}, False), params=params, headers=headers)
|
|
461
|
+
|
|
462
|
+
@sp_endpoint('/amc/instances/{}/collaboration/idmappingtables/{}', method='DELETE', headers=[])
|
|
463
|
+
def delete_collaboration_id_mapping_table(self, instance_id: str, id_mapping_table_id: str, version: str = "1",
|
|
464
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
465
|
+
amazon_advertising_api_marketplace_id: str = None,
|
|
466
|
+
**kwargs) -> ApiResponse:
|
|
467
|
+
r"""
|
|
468
|
+
delete_collaboration_id_mapping_table(instance_id: str, id_mapping_table_id: str, version: str = "1",
|
|
469
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
470
|
+
amazon_advertising_api_marketplace_id: str = None) -> ApiResponse
|
|
471
|
+
|
|
472
|
+
Deletes the given ID Mapping Table in the collaboration for the requested AMC instance (operationId: deleteCollaborationIdMappingTable)
|
|
473
|
+
|
|
474
|
+
Path Parameters
|
|
475
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
476
|
+
| **idMappingTableId** (string) [required] The ID mapping table ID
|
|
477
|
+
|
|
478
|
+
Headers
|
|
479
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
480
|
+
| **Amazon-Advertising-API-AdvertiserId** (string) [required] The AMC Account ID
|
|
481
|
+
| **Amazon-Advertising-API-MarketplaceId** (string) [required] The Marketplace ID
|
|
482
|
+
|
|
483
|
+
Returns
|
|
484
|
+
ApiResponse (empty on success)
|
|
485
|
+
|
|
486
|
+
"""
|
|
487
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
488
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
489
|
+
if amazon_advertising_api_advertiser_id:
|
|
490
|
+
headers['Amazon-Advertising-API-AdvertiserId'] = amazon_advertising_api_advertiser_id
|
|
491
|
+
if amazon_advertising_api_marketplace_id:
|
|
492
|
+
headers['Amazon-Advertising-API-MarketplaceId'] = amazon_advertising_api_marketplace_id
|
|
493
|
+
path = fill_query_params(kwargs.pop('path'), instance_id, id_mapping_table_id)
|
|
494
|
+
params = dict(kwargs)
|
|
495
|
+
return self._request(path, params=params, headers=headers)
|
|
496
|
+
|
|
497
|
+
@sp_endpoint('/amc/instances/{}/collaboration/idmappingtables/{}/jobTracker/{}', method='GET', headers=[])
|
|
498
|
+
def get_collaboration_id_mapping_job_for_tracking_id(self, instance_id: str, id_mapping_table_id: str, tracking_id: str, version: str = "1",
|
|
499
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
500
|
+
amazon_advertising_api_marketplace_id: str = None,
|
|
501
|
+
**kwargs) -> ApiResponse:
|
|
502
|
+
r"""
|
|
503
|
+
get_collaboration_id_mapping_job_for_tracking_id(instance_id: str, id_mapping_table_id: str, tracking_id: str, version: str = "1",
|
|
504
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
505
|
+
amazon_advertising_api_marketplace_id: str = None) -> ApiResponse
|
|
506
|
+
|
|
507
|
+
Retrieves the ID mapping workflow job associated to the tracking ID (operationId: getCollaborationIdMappingJobForTrackingId)
|
|
508
|
+
|
|
509
|
+
Path Parameters
|
|
510
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
511
|
+
| **idMappingTableId** (string) [required] The ID mapping table ID
|
|
512
|
+
| **trackingId** (string) [required] The tracking ID
|
|
513
|
+
|
|
514
|
+
Headers
|
|
515
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
516
|
+
| **Amazon-Advertising-API-AdvertiserId** (string) [required] The AMC Account ID
|
|
517
|
+
| **Amazon-Advertising-API-MarketplaceId** (string) [required] The Marketplace ID
|
|
518
|
+
|
|
519
|
+
Returns
|
|
520
|
+
ApiResponse
|
|
521
|
+
| **jobId** (string)
|
|
522
|
+
| **trackingId** (string)
|
|
523
|
+
| **status** (string)
|
|
524
|
+
| **createdTime** (string)
|
|
525
|
+
| **completedTime** (string)
|
|
526
|
+
| **errorMessage** (string)
|
|
527
|
+
|
|
528
|
+
"""
|
|
529
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
530
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
531
|
+
if amazon_advertising_api_advertiser_id:
|
|
532
|
+
headers['Amazon-Advertising-API-AdvertiserId'] = amazon_advertising_api_advertiser_id
|
|
533
|
+
if amazon_advertising_api_marketplace_id:
|
|
534
|
+
headers['Amazon-Advertising-API-MarketplaceId'] = amazon_advertising_api_marketplace_id
|
|
535
|
+
path = fill_query_params(kwargs.pop('path'), instance_id, id_mapping_table_id, tracking_id)
|
|
536
|
+
params = dict(kwargs)
|
|
537
|
+
return self._request(path, params=params, headers=headers)
|
|
538
|
+
|
|
539
|
+
@sp_endpoint('/amc/instances/{}/collaboration/idmappingtables/{}/jobs/list', method='POST', headers=[])
|
|
540
|
+
def list_collaboration_id_mapping_jobs(self, instance_id: str, id_mapping_table_id: str, body: dict = None, version: str = "1",
|
|
541
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
542
|
+
amazon_advertising_api_marketplace_id: str = None,
|
|
543
|
+
**kwargs) -> ApiResponse:
|
|
544
|
+
r"""
|
|
545
|
+
list_collaboration_id_mapping_jobs(instance_id: str, id_mapping_table_id: str, body: dict = None, version: str = "1",
|
|
546
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
547
|
+
amazon_advertising_api_marketplace_id: str = None) -> ApiResponse
|
|
548
|
+
|
|
549
|
+
Lists the ID mapping jobs associated to the ID mapping table (operationId: listCollaborationIdMappingJobs)
|
|
550
|
+
|
|
551
|
+
Path Parameters
|
|
552
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
553
|
+
| **idMappingTableId** (string) [required] The ID mapping table ID
|
|
554
|
+
|
|
555
|
+
Body Parameters
|
|
556
|
+
| **nextToken** (string) [optional] Token to retrieve subsequent page of results
|
|
557
|
+
| **maxResults** (integer) [optional] Maximum number of results to return
|
|
558
|
+
|
|
559
|
+
Headers
|
|
560
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
561
|
+
| **Amazon-Advertising-API-AdvertiserId** (string) [required] The AMC Account ID
|
|
562
|
+
| **Amazon-Advertising-API-MarketplaceId** (string) [required] The Marketplace ID
|
|
563
|
+
|
|
564
|
+
Returns
|
|
565
|
+
ApiResponse
|
|
566
|
+
| **jobs** (array)
|
|
567
|
+
| **jobId** (string)
|
|
568
|
+
| **trackingId** (string)
|
|
569
|
+
| **status** (string)
|
|
570
|
+
| **createdTime** (string)
|
|
571
|
+
| **completedTime** (string)
|
|
572
|
+
| **nextToken** (string)
|
|
573
|
+
|
|
574
|
+
"""
|
|
575
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
576
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
577
|
+
if amazon_advertising_api_advertiser_id:
|
|
578
|
+
headers['Amazon-Advertising-API-AdvertiserId'] = amazon_advertising_api_advertiser_id
|
|
579
|
+
if amazon_advertising_api_marketplace_id:
|
|
580
|
+
headers['Amazon-Advertising-API-MarketplaceId'] = amazon_advertising_api_marketplace_id
|
|
581
|
+
path = fill_query_params(kwargs.pop('path'), instance_id, id_mapping_table_id)
|
|
582
|
+
params = dict(kwargs)
|
|
583
|
+
return self._request(path, data=Utils.convert_body(body or {}, False), params=params, headers=headers)
|
|
584
|
+
|
|
585
|
+
@sp_endpoint('/amc/instances/{}/collaboration/idmappingtables/{}/jobs/{}', method='GET', headers=[])
|
|
586
|
+
def get_collaboration_id_mapping_job(self, instance_id: str, id_mapping_table_id: str, job_id: str, version: str = "1",
|
|
587
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
588
|
+
amazon_advertising_api_marketplace_id: str = None,
|
|
589
|
+
**kwargs) -> ApiResponse:
|
|
590
|
+
r"""
|
|
591
|
+
get_collaboration_id_mapping_job(instance_id: str, id_mapping_table_id: str, job_id: str, version: str = "1",
|
|
592
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
593
|
+
amazon_advertising_api_marketplace_id: str = None) -> ApiResponse
|
|
594
|
+
|
|
595
|
+
Gets the ID mapping job metadata for the requested AMC instance (operationId: getCollaborationIdMappingJob)
|
|
596
|
+
|
|
597
|
+
Path Parameters
|
|
598
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
599
|
+
| **idMappingTableId** (string) [required] The ID mapping table ID
|
|
600
|
+
| **jobId** (string) [required] The job ID
|
|
601
|
+
|
|
602
|
+
Headers
|
|
603
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
604
|
+
| **Amazon-Advertising-API-AdvertiserId** (string) [required] The AMC Account ID
|
|
605
|
+
| **Amazon-Advertising-API-MarketplaceId** (string) [required] The Marketplace ID
|
|
606
|
+
|
|
607
|
+
Returns
|
|
608
|
+
ApiResponse
|
|
609
|
+
| **jobId** (string)
|
|
610
|
+
| **trackingId** (string)
|
|
611
|
+
| **status** (string)
|
|
612
|
+
| **createdTime** (string)
|
|
613
|
+
| **completedTime** (string)
|
|
614
|
+
| **errorMessage** (string)
|
|
615
|
+
|
|
616
|
+
"""
|
|
617
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
618
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
619
|
+
if amazon_advertising_api_advertiser_id:
|
|
620
|
+
headers['Amazon-Advertising-API-AdvertiserId'] = amazon_advertising_api_advertiser_id
|
|
621
|
+
if amazon_advertising_api_marketplace_id:
|
|
622
|
+
headers['Amazon-Advertising-API-MarketplaceId'] = amazon_advertising_api_marketplace_id
|
|
623
|
+
path = fill_query_params(kwargs.pop('path'), instance_id, id_mapping_table_id, job_id)
|
|
624
|
+
params = dict(kwargs)
|
|
625
|
+
return self._request(path, params=params, headers=headers)
|
|
626
|
+
|
|
627
|
+
@sp_endpoint('/amc/instances/{}/collaboration/idmappingtables/{}/refresh', method='POST', headers=[])
|
|
628
|
+
def refresh_collaboration_id_mapping_table(self, instance_id: str, id_mapping_table_id: str, version: str = "1",
|
|
629
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
630
|
+
amazon_advertising_api_marketplace_id: str = None,
|
|
631
|
+
**kwargs) -> ApiResponse:
|
|
632
|
+
r"""
|
|
633
|
+
refresh_collaboration_id_mapping_table(instance_id: str, id_mapping_table_id: str, version: str = "1",
|
|
634
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
635
|
+
amazon_advertising_api_marketplace_id: str = None) -> ApiResponse
|
|
636
|
+
|
|
637
|
+
Refreshes the data in the given ID Mapping Table in the collaboration for the requested AMC instance (operationId: refreshCollaborationIdMappingTable)
|
|
638
|
+
|
|
639
|
+
Path Parameters
|
|
640
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
641
|
+
| **idMappingTableId** (string) [required] The ID mapping table ID
|
|
642
|
+
|
|
643
|
+
Headers
|
|
644
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
645
|
+
| **Amazon-Advertising-API-AdvertiserId** (string) [required] The AMC Account ID
|
|
646
|
+
| **Amazon-Advertising-API-MarketplaceId** (string) [required] The Marketplace ID
|
|
647
|
+
|
|
648
|
+
Returns
|
|
649
|
+
ApiResponse
|
|
650
|
+
| **trackingId** (string)
|
|
651
|
+
| **status** (string)
|
|
652
|
+
|
|
653
|
+
"""
|
|
654
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
655
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
656
|
+
if amazon_advertising_api_advertiser_id:
|
|
657
|
+
headers['Amazon-Advertising-API-AdvertiserId'] = amazon_advertising_api_advertiser_id
|
|
658
|
+
if amazon_advertising_api_marketplace_id:
|
|
659
|
+
headers['Amazon-Advertising-API-MarketplaceId'] = amazon_advertising_api_marketplace_id
|
|
660
|
+
path = fill_query_params(kwargs.pop('path'), instance_id, id_mapping_table_id)
|
|
661
|
+
params = dict(kwargs)
|
|
662
|
+
return self._request(path, params=params, headers=headers)
|
|
663
|
+
|
|
664
|
+
@sp_endpoint('/amc/instances/{}/collaboration/idnamespaces/list', method='POST', headers=[])
|
|
665
|
+
def list_collaboration_id_namespaces(self, instance_id: str, body: dict = None, version: str = "1",
|
|
666
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
667
|
+
amazon_advertising_api_marketplace_id: str = None,
|
|
668
|
+
**kwargs) -> ApiResponse:
|
|
669
|
+
r"""
|
|
670
|
+
list_collaboration_id_namespaces(instance_id: str, body: dict = None, version: str = "1",
|
|
671
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
672
|
+
amazon_advertising_api_marketplace_id: str = None) -> ApiResponse
|
|
673
|
+
|
|
674
|
+
Lists the ID namespaces associated to the collaboration in the requested AMC instance (operationId: listCollaborationIdNamespaces)
|
|
675
|
+
|
|
676
|
+
Path Parameters
|
|
677
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
678
|
+
|
|
679
|
+
Body Parameters
|
|
680
|
+
| **nextToken** (string) [optional] Token to retrieve subsequent page of results
|
|
681
|
+
| **maxResults** (integer) [optional] Maximum number of results to return
|
|
682
|
+
|
|
683
|
+
Headers
|
|
684
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
685
|
+
| **Amazon-Advertising-API-AdvertiserId** (string) [required] The AMC Account ID
|
|
686
|
+
| **Amazon-Advertising-API-MarketplaceId** (string) [required] The Marketplace ID
|
|
687
|
+
|
|
688
|
+
Returns
|
|
689
|
+
ApiResponse
|
|
690
|
+
| **idNamespaces** (array)
|
|
691
|
+
| **idNamespace** (string)
|
|
692
|
+
| **idNamespaceType** (string)
|
|
693
|
+
| **nextToken** (string)
|
|
694
|
+
|
|
695
|
+
"""
|
|
696
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
697
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
698
|
+
if amazon_advertising_api_advertiser_id:
|
|
699
|
+
headers['Amazon-Advertising-API-AdvertiserId'] = amazon_advertising_api_advertiser_id
|
|
700
|
+
if amazon_advertising_api_marketplace_id:
|
|
701
|
+
headers['Amazon-Advertising-API-MarketplaceId'] = amazon_advertising_api_marketplace_id
|
|
702
|
+
path = fill_query_params(kwargs.pop('path'), instance_id)
|
|
703
|
+
params = dict(kwargs)
|
|
704
|
+
return self._request(path, data=Utils.convert_body(body or {}, False), params=params, headers=headers)
|
|
705
|
+
|
|
706
|
+
@sp_endpoint('/amc/instances/{}/collaborations', method='POST', headers=[])
|
|
707
|
+
def create_collaboration(self, instance_id: str, body: dict, version: str = "1",
|
|
708
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
709
|
+
amazon_advertising_api_marketplace_id: str = None,
|
|
710
|
+
**kwargs) -> ApiResponse:
|
|
711
|
+
r"""
|
|
712
|
+
create_collaboration(instance_id: str, body: dict, version: str = "1",
|
|
713
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
714
|
+
amazon_advertising_api_marketplace_id: str = None) -> ApiResponse
|
|
715
|
+
|
|
716
|
+
Creates a collaboration in AWS Clean Rooms for this AMC instance (operationId: createCollaboration)
|
|
717
|
+
|
|
718
|
+
Path Parameters
|
|
719
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
720
|
+
|
|
721
|
+
Body Parameters
|
|
722
|
+
| **name** (string) [required] The name of the collaboration
|
|
723
|
+
| **description** (string) [optional] Description of the collaboration
|
|
724
|
+
| **memberships** (array) [required] Array of membership objects
|
|
725
|
+
|
|
726
|
+
Headers
|
|
727
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
728
|
+
| **Amazon-Advertising-API-AdvertiserId** (string) [required] The AMC Account ID
|
|
729
|
+
| **Amazon-Advertising-API-MarketplaceId** (string) [required] The Marketplace ID
|
|
730
|
+
|
|
731
|
+
Returns
|
|
732
|
+
ApiResponse
|
|
733
|
+
| **collaborationId** (string)
|
|
734
|
+
| **collaborationArn** (string)
|
|
735
|
+
| **name** (string)
|
|
736
|
+
| **status** (string)
|
|
737
|
+
| **createdTime** (string)
|
|
738
|
+
|
|
739
|
+
"""
|
|
740
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
741
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
742
|
+
if amazon_advertising_api_advertiser_id:
|
|
743
|
+
headers['Amazon-Advertising-API-AdvertiserId'] = amazon_advertising_api_advertiser_id
|
|
744
|
+
if amazon_advertising_api_marketplace_id:
|
|
745
|
+
headers['Amazon-Advertising-API-MarketplaceId'] = amazon_advertising_api_marketplace_id
|
|
746
|
+
path = fill_query_params(kwargs.pop('path'), instance_id)
|
|
747
|
+
params = dict(kwargs)
|
|
748
|
+
return self._request(path, data=Utils.convert_body(body, False), params=params, headers=headers)
|
|
749
|
+
|
|
750
|
+
@sp_endpoint('/amc/instances/{}/collaborations/{}/acrCustomer', method='PUT', headers=[])
|
|
751
|
+
def update_collaboration_customer(self, instance_id: str, collaboration_id: str, body: dict, version: str = "1",
|
|
752
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
753
|
+
amazon_advertising_api_marketplace_id: str = None,
|
|
754
|
+
**kwargs) -> ApiResponse:
|
|
755
|
+
r"""
|
|
756
|
+
update_collaboration_customer(instance_id: str, collaboration_id: str, body: dict, version: str = "1",
|
|
757
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
758
|
+
amazon_advertising_api_marketplace_id: str = None) -> ApiResponse
|
|
759
|
+
|
|
760
|
+
Update customer member in the collaboration (operationId: updateCollaborationCustomer)
|
|
761
|
+
|
|
762
|
+
Path Parameters
|
|
763
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
764
|
+
| **collaborationId** (string) [required] The collaboration ID
|
|
765
|
+
|
|
766
|
+
Body Parameters
|
|
767
|
+
| **queryLogStatus** (string) [required] Query log status (ENABLED/DISABLED)
|
|
768
|
+
|
|
769
|
+
Headers
|
|
770
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
771
|
+
| **Amazon-Advertising-API-AdvertiserId** (string) [required] The AMC Account ID
|
|
772
|
+
| **Amazon-Advertising-API-MarketplaceId** (string) [required] The Marketplace ID
|
|
773
|
+
|
|
774
|
+
Returns
|
|
775
|
+
ApiResponse
|
|
776
|
+
| **collaborationId** (string)
|
|
777
|
+
| **queryLogStatus** (string)
|
|
778
|
+
|
|
779
|
+
"""
|
|
780
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
781
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
782
|
+
if amazon_advertising_api_advertiser_id:
|
|
783
|
+
headers['Amazon-Advertising-API-AdvertiserId'] = amazon_advertising_api_advertiser_id
|
|
784
|
+
if amazon_advertising_api_marketplace_id:
|
|
785
|
+
headers['Amazon-Advertising-API-MarketplaceId'] = amazon_advertising_api_marketplace_id
|
|
786
|
+
path = fill_query_params(kwargs.pop('path'), instance_id, collaboration_id)
|
|
787
|
+
params = dict(kwargs)
|
|
788
|
+
return self._request(path, data=Utils.convert_body(body, False), params=params, headers=headers)
|
|
789
|
+
|
|
790
|
+
@sp_endpoint('/amc/instances/{}/collaborations/{}/acrCustomerPartners', method='POST', headers=[])
|
|
791
|
+
def add_collaboration_customer_partners(self, instance_id: str, collaboration_id: str, body: dict, version: str = "1",
|
|
792
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
793
|
+
amazon_advertising_api_marketplace_id: str = None,
|
|
794
|
+
**kwargs) -> ApiResponse:
|
|
795
|
+
r"""
|
|
796
|
+
add_collaboration_customer_partners(instance_id: str, collaboration_id: str, body: dict, version: str = "1",
|
|
797
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
798
|
+
amazon_advertising_api_marketplace_id: str = None) -> ApiResponse
|
|
799
|
+
|
|
800
|
+
Add one or more customer partners to the collaboration (operationId: addCollaborationCustomerPartners)
|
|
801
|
+
|
|
802
|
+
Path Parameters
|
|
803
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
804
|
+
| **collaborationId** (string) [required] The collaboration ID
|
|
805
|
+
|
|
806
|
+
Body Parameters
|
|
807
|
+
| **partners** (array) [required] Array of partner objects with accountId and permissions
|
|
808
|
+
|
|
809
|
+
Headers
|
|
810
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
811
|
+
| **Amazon-Advertising-API-AdvertiserId** (string) [required] The AMC Account ID
|
|
812
|
+
| **Amazon-Advertising-API-MarketplaceId** (string) [required] The Marketplace ID
|
|
813
|
+
|
|
814
|
+
Returns
|
|
815
|
+
ApiResponse
|
|
816
|
+
| **partners** (array)
|
|
817
|
+
| **acrCustomerPartnerId** (string)
|
|
818
|
+
| **accountId** (string)
|
|
819
|
+
| **permissions** (array)
|
|
820
|
+
|
|
821
|
+
"""
|
|
822
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
823
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
824
|
+
if amazon_advertising_api_advertiser_id:
|
|
825
|
+
headers['Amazon-Advertising-API-AdvertiserId'] = amazon_advertising_api_advertiser_id
|
|
826
|
+
if amazon_advertising_api_marketplace_id:
|
|
827
|
+
headers['Amazon-Advertising-API-MarketplaceId'] = amazon_advertising_api_marketplace_id
|
|
828
|
+
path = fill_query_params(kwargs.pop('path'), instance_id, collaboration_id)
|
|
829
|
+
params = dict(kwargs)
|
|
830
|
+
return self._request(path, data=Utils.convert_body(body, False), params=params, headers=headers)
|
|
831
|
+
|
|
832
|
+
@sp_endpoint('/amc/instances/{}/collaborations/{}/acrCustomerPartners', method='PUT', headers=[])
|
|
833
|
+
def update_collaboration_customer_partners(self, instance_id: str, collaboration_id: str, body: dict, version: str = "1",
|
|
834
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
835
|
+
amazon_advertising_api_marketplace_id: str = None,
|
|
836
|
+
**kwargs) -> ApiResponse:
|
|
837
|
+
r"""
|
|
838
|
+
update_collaboration_customer_partners(instance_id: str, collaboration_id: str, body: dict, version: str = "1",
|
|
839
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
840
|
+
amazon_advertising_api_marketplace_id: str = None) -> ApiResponse
|
|
841
|
+
|
|
842
|
+
Update one or more customer partners in the collaboration (operationId: updateCollaborationCustomerPartners)
|
|
843
|
+
|
|
844
|
+
Path Parameters
|
|
845
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
846
|
+
| **collaborationId** (string) [required] The collaboration ID
|
|
847
|
+
|
|
848
|
+
Body Parameters
|
|
849
|
+
| **partners** (array) [required] Array of partner objects with acrCustomerPartnerId and updated fields
|
|
850
|
+
|
|
851
|
+
Headers
|
|
852
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
853
|
+
| **Amazon-Advertising-API-AdvertiserId** (string) [required] The AMC Account ID
|
|
854
|
+
| **Amazon-Advertising-API-MarketplaceId** (string) [required] The Marketplace ID
|
|
855
|
+
|
|
856
|
+
Returns
|
|
857
|
+
ApiResponse
|
|
858
|
+
| **partners** (array)
|
|
859
|
+
| **acrCustomerPartnerId** (string)
|
|
860
|
+
| **accountId** (string)
|
|
861
|
+
| **permissions** (array)
|
|
862
|
+
|
|
863
|
+
"""
|
|
864
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
865
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
866
|
+
if amazon_advertising_api_advertiser_id:
|
|
867
|
+
headers['Amazon-Advertising-API-AdvertiserId'] = amazon_advertising_api_advertiser_id
|
|
868
|
+
if amazon_advertising_api_marketplace_id:
|
|
869
|
+
headers['Amazon-Advertising-API-MarketplaceId'] = amazon_advertising_api_marketplace_id
|
|
870
|
+
path = fill_query_params(kwargs.pop('path'), instance_id, collaboration_id)
|
|
871
|
+
params = dict(kwargs)
|
|
872
|
+
return self._request(path, data=Utils.convert_body(body, False), params=params, headers=headers)
|
|
873
|
+
|
|
874
|
+
@sp_endpoint('/amc/instances/{}/collaborations/{}/acrCustomerPartners/{}', method='DELETE', headers=[])
|
|
875
|
+
def delete_collaboration_customer_partner(self, instance_id: str, collaboration_id: str, acr_customer_partner_id: str, version: str = "1",
|
|
876
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
877
|
+
amazon_advertising_api_marketplace_id: str = None,
|
|
878
|
+
**kwargs) -> ApiResponse:
|
|
879
|
+
r"""
|
|
880
|
+
delete_collaboration_customer_partner(instance_id: str, collaboration_id: str, acr_customer_partner_id: str, version: str = "1",
|
|
881
|
+
amazon_advertising_api_advertiser_id: str = None,
|
|
882
|
+
amazon_advertising_api_marketplace_id: str = None) -> ApiResponse
|
|
883
|
+
|
|
884
|
+
Delete the requested customer partner in the collaboration (operationId: deleteCollaborationCustomerPartner)
|
|
885
|
+
|
|
886
|
+
Path Parameters
|
|
887
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
888
|
+
| **collaborationId** (string) [required] The collaboration ID
|
|
889
|
+
| **acrCustomerPartnerId** (string) [required] The customer partner ID
|
|
890
|
+
|
|
891
|
+
Headers
|
|
892
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
893
|
+
| **Amazon-Advertising-API-AdvertiserId** (string) [required] The AMC Account ID
|
|
894
|
+
| **Amazon-Advertising-API-MarketplaceId** (string) [required] The Marketplace ID
|
|
895
|
+
|
|
896
|
+
Returns
|
|
897
|
+
ApiResponse (empty on success)
|
|
898
|
+
|
|
899
|
+
"""
|
|
900
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
901
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
902
|
+
if amazon_advertising_api_advertiser_id:
|
|
903
|
+
headers['Amazon-Advertising-API-AdvertiserId'] = amazon_advertising_api_advertiser_id
|
|
904
|
+
if amazon_advertising_api_marketplace_id:
|
|
905
|
+
headers['Amazon-Advertising-API-MarketplaceId'] = amazon_advertising_api_marketplace_id
|
|
906
|
+
path = fill_query_params(kwargs.pop('path'), instance_id, collaboration_id, acr_customer_partner_id)
|
|
907
|
+
params = dict(kwargs)
|
|
908
|
+
return self._request(path, params=params, headers=headers)
|
|
909
|
+
|
|
910
|
+
@sp_endpoint('/amc/instances/{}/updateCustomerAwsAccount', method='POST', headers=[])
|
|
911
|
+
def update_instance_customer_aws_account(self, instance_id: str, body: dict, version: str = "1", **kwargs) -> ApiResponse:
|
|
912
|
+
r"""
|
|
913
|
+
update_instance_customer_aws_account(instance_id: str, body: dict, version: str = "1") -> ApiResponse
|
|
914
|
+
|
|
915
|
+
Updates customer's AWS account metadata in the requested AMC instance (operationId: updateInstanceCustomerAwsAccountMetadata)
|
|
916
|
+
|
|
917
|
+
Path Parameters
|
|
918
|
+
| **instanceId** (string) [required] The AMC instance ID
|
|
919
|
+
|
|
920
|
+
Body Parameters
|
|
921
|
+
| **customerAwsAccountId** (string) [required] Customer's AWS account ID
|
|
922
|
+
| **customerAwsAccountExternalId** (string) [required] External ID for customer's AWS account
|
|
923
|
+
|
|
924
|
+
Headers
|
|
925
|
+
| **Amazon-Advertising-API-ClientId** (string) [required] Sent from credentials
|
|
926
|
+
|
|
927
|
+
Returns
|
|
928
|
+
ApiResponse
|
|
929
|
+
| **instanceId** (string)
|
|
930
|
+
| **customerAwsAccountId** (string)
|
|
931
|
+
| **customerAwsAccountExternalId** (string)
|
|
932
|
+
|
|
933
|
+
"""
|
|
934
|
+
media_type = f'application/vnd.amcaudiencesconnections.v{version}+json'
|
|
935
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
936
|
+
path = fill_query_params(kwargs.pop('path'), instance_id)
|
|
937
|
+
params = dict(kwargs)
|
|
938
|
+
return self._request(path, data=Utils.convert_body(body, False), params=params, headers=headers)
|
ad_api/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.4.
|
|
1
|
+
__version__ = "2.4.7"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
ad_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
ad_api/version.py,sha256=
|
|
2
|
+
ad_api/version.py,sha256=6Ls7f3ZJxdJNWxciT1KkTqmIR_gddzXVDXxBtiav_WI,22
|
|
3
3
|
ad_api/api/__init__.py,sha256=SWgn6NY3NK_Bbh5TPKpM8gXqoQFOL70siho4vJcIzko,3240
|
|
4
4
|
ad_api/api/account.py,sha256=jNYwfjW8b0HhqP7PjlMev55aXJP3YIuqWhrxri0Pk4Y,4673
|
|
5
5
|
ad_api/api/account_budgets.py,sha256=jFce5eLWAFK3ydjnYR7_Sv7B0-gHTG5bMTx_TcHyy1A,2319
|
|
@@ -46,7 +46,7 @@ ad_api/api/stream.py,sha256=Ga1VHOR_z2YAZY3kRhDvzwEDad3P260g1lWfc4OAjGk,9338
|
|
|
46
46
|
ad_api/api/targetable_entities.py,sha256=bbdayyuYOnu1r4FutfmNcT23OtuAa0S_Rws59Z2uQVI,4075
|
|
47
47
|
ad_api/api/validation_configurations.py,sha256=Qaxy_J67Fqw0ecS4f1sK9lGdiOLsq323RXeZO0_2KV0,4092
|
|
48
48
|
ad_api/api/amc/__init__.py,sha256=tmb5-8jCGWegzDL3O9ceEggrTs2zG5d3DfFG4tZldfA,129
|
|
49
|
-
ad_api/api/amc/administration.py,sha256=
|
|
49
|
+
ad_api/api/amc/administration.py,sha256=xaD0kVaYKFHAWRc96VblZdbf4DzpIvKIeMmr8iW27yE,48757
|
|
50
50
|
ad_api/api/amc/custom_models.py,sha256=WoLF3caj3em82DNazhsbuCgp0atymlssllmxKja08j4,43311
|
|
51
51
|
ad_api/api/dsp/__init__.py,sha256=h1EMo5LInemVA5rCujXZJkWc-CAJbsD86asEdfgQ8mI,3082
|
|
52
52
|
ad_api/api/dsp/ad_creative_association.py,sha256=u0hvFlLCLYfmgEMCqhzxlqH9SJhH4ZC96KuRX7ZSJ0c,6481
|
|
@@ -199,8 +199,8 @@ ad_api/base/marketplaces.py,sha256=44lvCcluXNpqTprWQ80e3weSQmQbJoWL-WDSOWVbCyQ,4
|
|
|
199
199
|
ad_api/base/utils.py,sha256=_qnCBOvyJTLgaZjJzUWTi38GGLHkQszXELs79133Rb4,5618
|
|
200
200
|
ad_api/shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
201
201
|
ad_api/shared/base_client.py,sha256=zOL_LTh-58URWf3ZDlrwmqXXbd6PX66QF5hrr2p83yY,356
|
|
202
|
-
python_amazon_ad_api-2.4.
|
|
203
|
-
python_amazon_ad_api-2.4.
|
|
204
|
-
python_amazon_ad_api-2.4.
|
|
205
|
-
python_amazon_ad_api-2.4.
|
|
206
|
-
python_amazon_ad_api-2.4.
|
|
202
|
+
python_amazon_ad_api-2.4.7.dist-info/licenses/LICENSE,sha256=h2rpqlmmLy-4l1tN6KpWAFxx1JEMYeEFrMrZUbx_B_o,1105
|
|
203
|
+
python_amazon_ad_api-2.4.7.dist-info/METADATA,sha256=RnL-cx-aFbf_bXGtEuUOfSndakgRSuL9J_sz68pKwfc,10678
|
|
204
|
+
python_amazon_ad_api-2.4.7.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
205
|
+
python_amazon_ad_api-2.4.7.dist-info/top_level.txt,sha256=nN9twUos-8pkP514ZwpvRU9YL9L2XyQyHsMQFfudGTU,7
|
|
206
|
+
python_amazon_ad_api-2.4.7.dist-info/RECORD,,
|
|
File without changes
|
{python_amazon_ad_api-2.4.5.dist-info → python_amazon_ad_api-2.4.7.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|