criteo-api-retailmedia-sdk 2024.7.0.240731__py3-none-any.whl → 2024.7.0.240808__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.

Potentially problematic release.


This version of criteo-api-retailmedia-sdk might be problematic. Click here for more details.

Files changed (37) hide show
  1. {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info}/RECORD +33 -30
  3. criteo_api_retailmedia_v2024_07/__init__.py +1 -1
  4. criteo_api_retailmedia_v2024_07/api/balance_api.py +118 -90
  5. criteo_api_retailmedia_v2024_07/api/campaign_api.py +711 -707
  6. criteo_api_retailmedia_v2024_07/api_client.py +1 -1
  7. criteo_api_retailmedia_v2024_07/configuration.py +1 -1
  8. criteo_api_retailmedia_v2024_07/model/{external_add_funds_to_balance.py → add_funds_to_balance_v2.py} +12 -14
  9. criteo_api_retailmedia_v2024_07/model/{add_funds_to_balance_request.py → add_funds_to_balance_v2_request.py} +8 -8
  10. criteo_api_retailmedia_v2024_07/model/{external_balance_response.py → balance_response_v2.py} +46 -70
  11. criteo_api_retailmedia_v2024_07/model/{balance_response.py → balance_response_v2_response.py} +8 -8
  12. criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_v2.py +271 -0
  13. criteo_api_retailmedia_v2024_07/model/{change_dates_of_balance_request.py → change_dates_of_balance_v2_request.py} +8 -8
  14. criteo_api_retailmedia_v2024_07/model/{external_create_balance.py → create_balance_v2.py} +22 -34
  15. criteo_api_retailmedia_v2024_07/model/{create_balance_request.py → create_balance_v2_request.py} +8 -8
  16. criteo_api_retailmedia_v2024_07/model/line_item_product_status.py +291 -0
  17. criteo_api_retailmedia_v2024_07/model/{balance_response_paged_list_response.py → paged_resource_collection_outcome_of_balance_response_v2.py} +8 -8
  18. criteo_api_retailmedia_v2024_07/model/product_metadata.py +269 -0
  19. criteo_api_retailmedia_v2024_07/model/product_resource_outcome.py +266 -0
  20. criteo_api_retailmedia_v2024_07/model/promoted_product.py +270 -0
  21. criteo_api_retailmedia_v2024_07/model/promoted_product_resource.py +270 -0
  22. criteo_api_retailmedia_v2024_07/model/{external_promoted_product202110.py → promoted_product_resource_collection_input.py} +13 -14
  23. criteo_api_retailmedia_v2024_07/model/{promoted_product202110_paged_list_response.py → promoted_product_resource_collection_outcome.py} +25 -32
  24. criteo_api_retailmedia_v2024_07/model/{resource_of_add_funds_to_balance.py → resource_of_add_funds_to_balance_v2.py} +8 -8
  25. criteo_api_retailmedia_v2024_07/model/{resource_of_create_balance.py → resource_of_balance_response_v2.py} +8 -8
  26. criteo_api_retailmedia_v2024_07/model/{resource_of_update_balance_model.py → resource_of_change_dates_of_balance_v2.py} +8 -8
  27. criteo_api_retailmedia_v2024_07/model/{resource_of_balance_response.py → resource_of_create_balance_v2.py} +8 -8
  28. criteo_api_retailmedia_v2024_07/model/resource_of_update_balance_model_v2.py +277 -0
  29. criteo_api_retailmedia_v2024_07/model/{external_change_dates_of_balance.py → update_balance_model_v2.py} +22 -24
  30. criteo_api_retailmedia_v2024_07/model/{update_balance_model_request.py → update_balance_model_v2_request.py} +8 -8
  31. criteo_api_retailmedia_v2024_07/models/__init__.py +23 -20
  32. criteo_api_retailmedia_v2024_07/model/external_update_balance_model.py +0 -283
  33. criteo_api_retailmedia_v2024_07/model/promoted_product202110_list_request.py +0 -269
  34. criteo_api_retailmedia_v2024_07/model/resource_of_change_dates_of_balance.py +0 -277
  35. criteo_api_retailmedia_v2024_07/model/resource_of_promoted_product202110.py +0 -277
  36. {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info}/WHEEL +0 -0
  37. {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info}/top_level.txt +0 -0
@@ -62,8 +62,9 @@ from criteo_api_retailmedia_v2024_07.model.preferred_line_item202110_paged_list_
62
62
  from criteo_api_retailmedia_v2024_07.model.preferred_line_item202110_response import PreferredLineItem202110Response
63
63
  from criteo_api_retailmedia_v2024_07.model.preferred_line_item_create_model202110_request import PreferredLineItemCreateModel202110Request
64
64
  from criteo_api_retailmedia_v2024_07.model.preferred_line_item_update_model202110_request import PreferredLineItemUpdateModel202110Request
65
- from criteo_api_retailmedia_v2024_07.model.promoted_product202110_list_request import PromotedProduct202110ListRequest
66
- from criteo_api_retailmedia_v2024_07.model.promoted_product202110_paged_list_response import PromotedProduct202110PagedListResponse
65
+ from criteo_api_retailmedia_v2024_07.model.product_resource_outcome import ProductResourceOutcome
66
+ from criteo_api_retailmedia_v2024_07.model.promoted_product_resource_collection_input import PromotedProductResourceCollectionInput
67
+ from criteo_api_retailmedia_v2024_07.model.promoted_product_resource_collection_outcome import PromotedProductResourceCollectionOutcome
67
68
  from criteo_api_retailmedia_v2024_07.model.proposal_status_model_response import ProposalStatusModelResponse
68
69
  from criteo_api_retailmedia_v2024_07.model.put_campaign_v202301 import PutCampaignV202301
69
70
  from criteo_api_retailmedia_v2024_07.model.resource_outcome import ResourceOutcome
@@ -148,6 +149,64 @@ class CampaignApi(object):
148
149
  },
149
150
  api_client=api_client
150
151
  )
152
+ self.append_promoted_products_endpoint = _Endpoint(
153
+ settings={
154
+ 'response_type': None,
155
+ 'auth': [
156
+ 'oauth',
157
+ 'oauth'
158
+ ],
159
+ 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/append',
160
+ 'operation_id': 'append_promoted_products',
161
+ 'http_method': 'POST',
162
+ 'servers': None,
163
+ },
164
+ params_map={
165
+ 'all': [
166
+ 'line_item_id',
167
+ 'promoted_product_resource_collection_input',
168
+ ],
169
+ 'required': [
170
+ 'line_item_id',
171
+ ],
172
+ 'nullable': [
173
+ ],
174
+ 'enum': [
175
+ ],
176
+ 'validation': [
177
+ ]
178
+ },
179
+ root_map={
180
+ 'validations': {
181
+ },
182
+ 'allowed_values': {
183
+ },
184
+ 'openapi_types': {
185
+ 'line_item_id':
186
+ (str,),
187
+ 'promoted_product_resource_collection_input':
188
+ (PromotedProductResourceCollectionInput,),
189
+ },
190
+ 'attribute_map': {
191
+ 'line_item_id': 'line-item-id',
192
+ },
193
+ 'location_map': {
194
+ 'line_item_id': 'path',
195
+ 'promoted_product_resource_collection_input': 'body',
196
+ },
197
+ 'collection_format_map': {
198
+ }
199
+ },
200
+ headers_map={
201
+ 'accept': [
202
+ 'application/json'
203
+ ],
204
+ 'content_type': [
205
+ 'application/json'
206
+ ]
207
+ },
208
+ api_client=api_client
209
+ )
151
210
  self.create_asset_endpoint = _Endpoint(
152
211
  settings={
153
212
  'response_type': (AssetResponse,),
@@ -204,6 +263,64 @@ class CampaignApi(object):
204
263
  },
205
264
  api_client=api_client
206
265
  )
266
+ self.delete_promoted_products_endpoint = _Endpoint(
267
+ settings={
268
+ 'response_type': None,
269
+ 'auth': [
270
+ 'oauth',
271
+ 'oauth'
272
+ ],
273
+ 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/delete',
274
+ 'operation_id': 'delete_promoted_products',
275
+ 'http_method': 'POST',
276
+ 'servers': None,
277
+ },
278
+ params_map={
279
+ 'all': [
280
+ 'line_item_id',
281
+ 'promoted_product_resource_collection_input',
282
+ ],
283
+ 'required': [
284
+ 'line_item_id',
285
+ ],
286
+ 'nullable': [
287
+ ],
288
+ 'enum': [
289
+ ],
290
+ 'validation': [
291
+ ]
292
+ },
293
+ root_map={
294
+ 'validations': {
295
+ },
296
+ 'allowed_values': {
297
+ },
298
+ 'openapi_types': {
299
+ 'line_item_id':
300
+ (str,),
301
+ 'promoted_product_resource_collection_input':
302
+ (PromotedProductResourceCollectionInput,),
303
+ },
304
+ 'attribute_map': {
305
+ 'line_item_id': 'line-item-id',
306
+ },
307
+ 'location_map': {
308
+ 'line_item_id': 'path',
309
+ 'promoted_product_resource_collection_input': 'body',
310
+ },
311
+ 'collection_format_map': {
312
+ }
313
+ },
314
+ headers_map={
315
+ 'accept': [
316
+ 'application/json'
317
+ ],
318
+ 'content_type': [
319
+ 'application/json'
320
+ ]
321
+ },
322
+ api_client=api_client
323
+ )
207
324
  self.fetch_keywords_endpoint = _Endpoint(
208
325
  settings={
209
326
  'response_type': (KeywordsModelResponse,),
@@ -256,24 +373,27 @@ class CampaignApi(object):
256
373
  },
257
374
  api_client=api_client
258
375
  )
259
- self.fetch_proposal_endpoint = _Endpoint(
376
+ self.fetch_promoted_products_endpoint = _Endpoint(
260
377
  settings={
261
- 'response_type': (ProposalStatusModelResponse,),
378
+ 'response_type': (PromotedProductResourceCollectionOutcome,),
262
379
  'auth': [
263
380
  'oauth',
264
381
  'oauth'
265
382
  ],
266
- 'endpoint_path': '/2024-07/retail-media/preferred-deal-line-items/{id}/proposal',
267
- 'operation_id': 'fetch_proposal',
383
+ 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products',
384
+ 'operation_id': 'fetch_promoted_products',
268
385
  'http_method': 'GET',
269
386
  'servers': None,
270
387
  },
271
388
  params_map={
272
389
  'all': [
273
- 'id',
390
+ 'line_item_id',
391
+ 'offset',
392
+ 'limit',
393
+ 'fields',
274
394
  ],
275
395
  'required': [
276
- 'id',
396
+ 'line_item_id',
277
397
  ],
278
398
  'nullable': [
279
399
  ],
@@ -288,14 +408,26 @@ class CampaignApi(object):
288
408
  'allowed_values': {
289
409
  },
290
410
  'openapi_types': {
291
- 'id':
411
+ 'line_item_id':
412
+ (str,),
413
+ 'offset':
414
+ (int,),
415
+ 'limit':
416
+ (int,),
417
+ 'fields':
292
418
  (str,),
293
419
  },
294
420
  'attribute_map': {
295
- 'id': 'id',
421
+ 'line_item_id': 'line-item-id',
422
+ 'offset': 'offset',
423
+ 'limit': 'limit',
424
+ 'fields': 'fields',
296
425
  },
297
426
  'location_map': {
298
- 'id': 'path',
427
+ 'line_item_id': 'path',
428
+ 'offset': 'query',
429
+ 'limit': 'query',
430
+ 'fields': 'query',
299
431
  },
300
432
  'collection_format_map': {
301
433
  }
@@ -308,24 +440,24 @@ class CampaignApi(object):
308
440
  },
309
441
  api_client=api_client
310
442
  )
311
- self.get_api202110_external_account_creatives_by_account_id_endpoint = _Endpoint(
443
+ self.fetch_proposal_endpoint = _Endpoint(
312
444
  settings={
313
- 'response_type': (Creative202110ListResponse,),
445
+ 'response_type': (ProposalStatusModelResponse,),
314
446
  'auth': [
315
447
  'oauth',
316
448
  'oauth'
317
449
  ],
318
- 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/creatives',
319
- 'operation_id': 'get_api202110_external_account_creatives_by_account_id',
450
+ 'endpoint_path': '/2024-07/retail-media/preferred-deal-line-items/{id}/proposal',
451
+ 'operation_id': 'fetch_proposal',
320
452
  'http_method': 'GET',
321
453
  'servers': None,
322
454
  },
323
455
  params_map={
324
456
  'all': [
325
- 'account_id',
457
+ 'id',
326
458
  ],
327
459
  'required': [
328
- 'account_id',
460
+ 'id',
329
461
  ],
330
462
  'nullable': [
331
463
  ],
@@ -340,14 +472,14 @@ class CampaignApi(object):
340
472
  'allowed_values': {
341
473
  },
342
474
  'openapi_types': {
343
- 'account_id':
475
+ 'id':
344
476
  (str,),
345
477
  },
346
478
  'attribute_map': {
347
- 'account_id': 'account-id',
479
+ 'id': 'id',
348
480
  },
349
481
  'location_map': {
350
- 'account_id': 'path',
482
+ 'id': 'path',
351
483
  },
352
484
  'collection_format_map': {
353
485
  }
@@ -360,24 +492,24 @@ class CampaignApi(object):
360
492
  },
361
493
  api_client=api_client
362
494
  )
363
- self.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id_endpoint = _Endpoint(
495
+ self.get_api202110_external_account_creatives_by_account_id_endpoint = _Endpoint(
364
496
  settings={
365
- 'response_type': (KeywordTarget202110Response,),
497
+ 'response_type': (Creative202110ListResponse,),
366
498
  'auth': [
367
499
  'oauth',
368
500
  'oauth'
369
501
  ],
370
- 'endpoint_path': '/2024-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords',
371
- 'operation_id': 'get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id',
502
+ 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/creatives',
503
+ 'operation_id': 'get_api202110_external_account_creatives_by_account_id',
372
504
  'http_method': 'GET',
373
505
  'servers': None,
374
506
  },
375
507
  params_map={
376
508
  'all': [
377
- 'line_item_id',
509
+ 'account_id',
378
510
  ],
379
511
  'required': [
380
- 'line_item_id',
512
+ 'account_id',
381
513
  ],
382
514
  'nullable': [
383
515
  ],
@@ -392,14 +524,14 @@ class CampaignApi(object):
392
524
  'allowed_values': {
393
525
  },
394
526
  'openapi_types': {
395
- 'line_item_id':
527
+ 'account_id':
396
528
  (str,),
397
529
  },
398
530
  'attribute_map': {
399
- 'line_item_id': 'line-item-id',
531
+ 'account_id': 'account-id',
400
532
  },
401
533
  'location_map': {
402
- 'line_item_id': 'path',
534
+ 'account_id': 'path',
403
535
  },
404
536
  'collection_format_map': {
405
537
  }
@@ -412,27 +544,24 @@ class CampaignApi(object):
412
544
  },
413
545
  api_client=api_client
414
546
  )
415
- self.get_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint = _Endpoint(
547
+ self.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id_endpoint = _Endpoint(
416
548
  settings={
417
- 'response_type': (PreferredLineItem202110PagedListResponse,),
549
+ 'response_type': (KeywordTarget202110Response,),
418
550
  'auth': [
419
551
  'oauth',
420
552
  'oauth'
421
553
  ],
422
- 'endpoint_path': '/2024-07/retail-media/campaigns/{campaign-id}/preferred-line-items',
423
- 'operation_id': 'get_api202110_external_campaign_preferred_line_items_by_campaign_id',
554
+ 'endpoint_path': '/2024-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords',
555
+ 'operation_id': 'get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id',
424
556
  'http_method': 'GET',
425
557
  'servers': None,
426
558
  },
427
559
  params_map={
428
560
  'all': [
429
- 'campaign_id',
430
- 'limit_to_id',
431
- 'page_index',
432
- 'page_size',
561
+ 'line_item_id',
433
562
  ],
434
563
  'required': [
435
- 'campaign_id',
564
+ 'line_item_id',
436
565
  ],
437
566
  'nullable': [
438
567
  ],
@@ -447,29 +576,16 @@ class CampaignApi(object):
447
576
  'allowed_values': {
448
577
  },
449
578
  'openapi_types': {
450
- 'campaign_id':
579
+ 'line_item_id':
451
580
  (str,),
452
- 'limit_to_id':
453
- ([str],),
454
- 'page_index':
455
- (int,),
456
- 'page_size':
457
- (int,),
458
581
  },
459
582
  'attribute_map': {
460
- 'campaign_id': 'campaign-id',
461
- 'limit_to_id': 'limitToId',
462
- 'page_index': 'pageIndex',
463
- 'page_size': 'pageSize',
583
+ 'line_item_id': 'line-item-id',
464
584
  },
465
585
  'location_map': {
466
- 'campaign_id': 'path',
467
- 'limit_to_id': 'query',
468
- 'page_index': 'query',
469
- 'page_size': 'query',
586
+ 'line_item_id': 'path',
470
587
  },
471
588
  'collection_format_map': {
472
- 'limit_to_id': 'multi',
473
589
  }
474
590
  },
475
591
  headers_map={
@@ -480,27 +596,27 @@ class CampaignApi(object):
480
596
  },
481
597
  api_client=api_client
482
598
  )
483
- self.get_api202110_external_line_item_products_by_line_item_id_endpoint = _Endpoint(
599
+ self.get_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint = _Endpoint(
484
600
  settings={
485
- 'response_type': (PromotedProduct202110PagedListResponse,),
601
+ 'response_type': (PreferredLineItem202110PagedListResponse,),
486
602
  'auth': [
487
603
  'oauth',
488
604
  'oauth'
489
605
  ],
490
- 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products',
491
- 'operation_id': 'get_api202110_external_line_item_products_by_line_item_id',
606
+ 'endpoint_path': '/2024-07/retail-media/campaigns/{campaign-id}/preferred-line-items',
607
+ 'operation_id': 'get_api202110_external_campaign_preferred_line_items_by_campaign_id',
492
608
  'http_method': 'GET',
493
609
  'servers': None,
494
610
  },
495
611
  params_map={
496
612
  'all': [
497
- 'line_item_id',
613
+ 'campaign_id',
498
614
  'limit_to_id',
499
615
  'page_index',
500
616
  'page_size',
501
617
  ],
502
618
  'required': [
503
- 'line_item_id',
619
+ 'campaign_id',
504
620
  ],
505
621
  'nullable': [
506
622
  ],
@@ -515,7 +631,7 @@ class CampaignApi(object):
515
631
  'allowed_values': {
516
632
  },
517
633
  'openapi_types': {
518
- 'line_item_id':
634
+ 'campaign_id':
519
635
  (str,),
520
636
  'limit_to_id':
521
637
  ([str],),
@@ -525,13 +641,13 @@ class CampaignApi(object):
525
641
  (int,),
526
642
  },
527
643
  'attribute_map': {
528
- 'line_item_id': 'line-item-id',
644
+ 'campaign_id': 'campaign-id',
529
645
  'limit_to_id': 'limitToId',
530
646
  'page_index': 'pageIndex',
531
647
  'page_size': 'pageSize',
532
648
  },
533
649
  'location_map': {
534
- 'line_item_id': 'path',
650
+ 'campaign_id': 'path',
535
651
  'limit_to_id': 'query',
536
652
  'page_index': 'query',
537
653
  'page_size': 'query',
@@ -1886,22 +2002,22 @@ class CampaignApi(object):
1886
2002
  },
1887
2003
  api_client=api_client
1888
2004
  )
1889
- self.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id_endpoint = _Endpoint(
2005
+ self.pause_promoted_products_endpoint = _Endpoint(
1890
2006
  settings={
1891
- 'response_type': (KeywordTarget202110Response,),
2007
+ 'response_type': None,
1892
2008
  'auth': [
1893
2009
  'oauth',
1894
2010
  'oauth'
1895
2011
  ],
1896
- 'endpoint_path': '/2024-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append',
1897
- 'operation_id': 'post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id',
2012
+ 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/pause',
2013
+ 'operation_id': 'pause_promoted_products',
1898
2014
  'http_method': 'POST',
1899
2015
  'servers': None,
1900
2016
  },
1901
2017
  params_map={
1902
2018
  'all': [
1903
2019
  'line_item_id',
1904
- 'keyword_target202110_request',
2020
+ 'promoted_product_resource_collection_input',
1905
2021
  ],
1906
2022
  'required': [
1907
2023
  'line_item_id',
@@ -1921,15 +2037,15 @@ class CampaignApi(object):
1921
2037
  'openapi_types': {
1922
2038
  'line_item_id':
1923
2039
  (str,),
1924
- 'keyword_target202110_request':
1925
- (KeywordTarget202110Request,),
2040
+ 'promoted_product_resource_collection_input':
2041
+ (PromotedProductResourceCollectionInput,),
1926
2042
  },
1927
2043
  'attribute_map': {
1928
2044
  'line_item_id': 'line-item-id',
1929
2045
  },
1930
2046
  'location_map': {
1931
2047
  'line_item_id': 'path',
1932
- 'keyword_target202110_request': 'body',
2048
+ 'promoted_product_resource_collection_input': 'body',
1933
2049
  },
1934
2050
  'collection_format_map': {
1935
2051
  }
@@ -1944,15 +2060,15 @@ class CampaignApi(object):
1944
2060
  },
1945
2061
  api_client=api_client
1946
2062
  )
1947
- self.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id_endpoint = _Endpoint(
2063
+ self.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id_endpoint = _Endpoint(
1948
2064
  settings={
1949
2065
  'response_type': (KeywordTarget202110Response,),
1950
2066
  'auth': [
1951
2067
  'oauth',
1952
2068
  'oauth'
1953
2069
  ],
1954
- 'endpoint_path': '/2024-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete',
1955
- 'operation_id': 'post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id',
2070
+ 'endpoint_path': '/2024-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/append',
2071
+ 'operation_id': 'post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id',
1956
2072
  'http_method': 'POST',
1957
2073
  'servers': None,
1958
2074
  },
@@ -2002,25 +2118,25 @@ class CampaignApi(object):
2002
2118
  },
2003
2119
  api_client=api_client
2004
2120
  )
2005
- self.post_api202110_external_balance_campaigns_append_by_balance_id_endpoint = _Endpoint(
2121
+ self.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id_endpoint = _Endpoint(
2006
2122
  settings={
2007
- 'response_type': (BalanceCampaign202110PagedListResponse,),
2123
+ 'response_type': (KeywordTarget202110Response,),
2008
2124
  'auth': [
2009
2125
  'oauth',
2010
2126
  'oauth'
2011
2127
  ],
2012
- 'endpoint_path': '/2024-07/retail-media/balances/{balance-id}/campaigns/append',
2013
- 'operation_id': 'post_api202110_external_balance_campaigns_append_by_balance_id',
2128
+ 'endpoint_path': '/2024-07/retail-media/auction-line-items/{line-item-id}/targeting/keywords/delete',
2129
+ 'operation_id': 'post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id',
2014
2130
  'http_method': 'POST',
2015
2131
  'servers': None,
2016
2132
  },
2017
2133
  params_map={
2018
2134
  'all': [
2019
- 'balance_id',
2020
- 'balance_campaign202110_list_request',
2135
+ 'line_item_id',
2136
+ 'keyword_target202110_request',
2021
2137
  ],
2022
2138
  'required': [
2023
- 'balance_id',
2139
+ 'line_item_id',
2024
2140
  ],
2025
2141
  'nullable': [
2026
2142
  ],
@@ -2035,17 +2151,17 @@ class CampaignApi(object):
2035
2151
  'allowed_values': {
2036
2152
  },
2037
2153
  'openapi_types': {
2038
- 'balance_id':
2154
+ 'line_item_id':
2039
2155
  (str,),
2040
- 'balance_campaign202110_list_request':
2041
- (BalanceCampaign202110ListRequest,),
2156
+ 'keyword_target202110_request':
2157
+ (KeywordTarget202110Request,),
2042
2158
  },
2043
2159
  'attribute_map': {
2044
- 'balance_id': 'balance-id',
2160
+ 'line_item_id': 'line-item-id',
2045
2161
  },
2046
2162
  'location_map': {
2047
- 'balance_id': 'path',
2048
- 'balance_campaign202110_list_request': 'body',
2163
+ 'line_item_id': 'path',
2164
+ 'keyword_target202110_request': 'body',
2049
2165
  },
2050
2166
  'collection_format_map': {
2051
2167
  }
@@ -2060,15 +2176,15 @@ class CampaignApi(object):
2060
2176
  },
2061
2177
  api_client=api_client
2062
2178
  )
2063
- self.post_api202110_external_balance_campaigns_delete_by_balance_id_endpoint = _Endpoint(
2179
+ self.post_api202110_external_balance_campaigns_append_by_balance_id_endpoint = _Endpoint(
2064
2180
  settings={
2065
2181
  'response_type': (BalanceCampaign202110PagedListResponse,),
2066
2182
  'auth': [
2067
2183
  'oauth',
2068
2184
  'oauth'
2069
2185
  ],
2070
- 'endpoint_path': '/2024-07/retail-media/balances/{balance-id}/campaigns/delete',
2071
- 'operation_id': 'post_api202110_external_balance_campaigns_delete_by_balance_id',
2186
+ 'endpoint_path': '/2024-07/retail-media/balances/{balance-id}/campaigns/append',
2187
+ 'operation_id': 'post_api202110_external_balance_campaigns_append_by_balance_id',
2072
2188
  'http_method': 'POST',
2073
2189
  'servers': None,
2074
2190
  },
@@ -2118,83 +2234,25 @@ class CampaignApi(object):
2118
2234
  },
2119
2235
  api_client=api_client
2120
2236
  )
2121
- self.post_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint = _Endpoint(
2122
- settings={
2123
- 'response_type': (PreferredLineItem202110Response,),
2124
- 'auth': [
2125
- 'oauth',
2126
- 'oauth'
2127
- ],
2128
- 'endpoint_path': '/2024-07/retail-media/campaigns/{campaign-id}/preferred-line-items',
2129
- 'operation_id': 'post_api202110_external_campaign_preferred_line_items_by_campaign_id',
2130
- 'http_method': 'POST',
2131
- 'servers': None,
2132
- },
2133
- params_map={
2134
- 'all': [
2135
- 'campaign_id',
2136
- 'preferred_line_item_create_model202110_request',
2137
- ],
2138
- 'required': [
2139
- 'campaign_id',
2140
- ],
2141
- 'nullable': [
2142
- ],
2143
- 'enum': [
2144
- ],
2145
- 'validation': [
2146
- ]
2147
- },
2148
- root_map={
2149
- 'validations': {
2150
- },
2151
- 'allowed_values': {
2152
- },
2153
- 'openapi_types': {
2154
- 'campaign_id':
2155
- (str,),
2156
- 'preferred_line_item_create_model202110_request':
2157
- (PreferredLineItemCreateModel202110Request,),
2158
- },
2159
- 'attribute_map': {
2160
- 'campaign_id': 'campaign-id',
2161
- },
2162
- 'location_map': {
2163
- 'campaign_id': 'path',
2164
- 'preferred_line_item_create_model202110_request': 'body',
2165
- },
2166
- 'collection_format_map': {
2167
- }
2168
- },
2169
- headers_map={
2170
- 'accept': [
2171
- 'application/json'
2172
- ],
2173
- 'content_type': [
2174
- 'application/json'
2175
- ]
2176
- },
2177
- api_client=api_client
2178
- )
2179
- self.post_api202110_external_line_item_products_append_by_line_item_id_endpoint = _Endpoint(
2237
+ self.post_api202110_external_balance_campaigns_delete_by_balance_id_endpoint = _Endpoint(
2180
2238
  settings={
2181
- 'response_type': (PromotedProduct202110PagedListResponse,),
2239
+ 'response_type': (BalanceCampaign202110PagedListResponse,),
2182
2240
  'auth': [
2183
2241
  'oauth',
2184
2242
  'oauth'
2185
2243
  ],
2186
- 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/append',
2187
- 'operation_id': 'post_api202110_external_line_item_products_append_by_line_item_id',
2244
+ 'endpoint_path': '/2024-07/retail-media/balances/{balance-id}/campaigns/delete',
2245
+ 'operation_id': 'post_api202110_external_balance_campaigns_delete_by_balance_id',
2188
2246
  'http_method': 'POST',
2189
2247
  'servers': None,
2190
2248
  },
2191
2249
  params_map={
2192
2250
  'all': [
2193
- 'line_item_id',
2194
- 'promoted_product202110_list_request',
2251
+ 'balance_id',
2252
+ 'balance_campaign202110_list_request',
2195
2253
  ],
2196
2254
  'required': [
2197
- 'line_item_id',
2255
+ 'balance_id',
2198
2256
  ],
2199
2257
  'nullable': [
2200
2258
  ],
@@ -2209,17 +2267,17 @@ class CampaignApi(object):
2209
2267
  'allowed_values': {
2210
2268
  },
2211
2269
  'openapi_types': {
2212
- 'line_item_id':
2270
+ 'balance_id':
2213
2271
  (str,),
2214
- 'promoted_product202110_list_request':
2215
- (PromotedProduct202110ListRequest,),
2272
+ 'balance_campaign202110_list_request':
2273
+ (BalanceCampaign202110ListRequest,),
2216
2274
  },
2217
2275
  'attribute_map': {
2218
- 'line_item_id': 'line-item-id',
2276
+ 'balance_id': 'balance-id',
2219
2277
  },
2220
2278
  'location_map': {
2221
- 'line_item_id': 'path',
2222
- 'promoted_product202110_list_request': 'body',
2279
+ 'balance_id': 'path',
2280
+ 'balance_campaign202110_list_request': 'body',
2223
2281
  },
2224
2282
  'collection_format_map': {
2225
2283
  }
@@ -2234,25 +2292,25 @@ class CampaignApi(object):
2234
2292
  },
2235
2293
  api_client=api_client
2236
2294
  )
2237
- self.post_api202110_external_line_item_products_delete_by_line_item_id_endpoint = _Endpoint(
2295
+ self.post_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint = _Endpoint(
2238
2296
  settings={
2239
- 'response_type': (PromotedProduct202110PagedListResponse,),
2297
+ 'response_type': (PreferredLineItem202110Response,),
2240
2298
  'auth': [
2241
2299
  'oauth',
2242
2300
  'oauth'
2243
2301
  ],
2244
- 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/delete',
2245
- 'operation_id': 'post_api202110_external_line_item_products_delete_by_line_item_id',
2302
+ 'endpoint_path': '/2024-07/retail-media/campaigns/{campaign-id}/preferred-line-items',
2303
+ 'operation_id': 'post_api202110_external_campaign_preferred_line_items_by_campaign_id',
2246
2304
  'http_method': 'POST',
2247
2305
  'servers': None,
2248
2306
  },
2249
2307
  params_map={
2250
2308
  'all': [
2251
- 'line_item_id',
2252
- 'promoted_product202110_list_request',
2309
+ 'campaign_id',
2310
+ 'preferred_line_item_create_model202110_request',
2253
2311
  ],
2254
2312
  'required': [
2255
- 'line_item_id',
2313
+ 'campaign_id',
2256
2314
  ],
2257
2315
  'nullable': [
2258
2316
  ],
@@ -2267,17 +2325,17 @@ class CampaignApi(object):
2267
2325
  'allowed_values': {
2268
2326
  },
2269
2327
  'openapi_types': {
2270
- 'line_item_id':
2328
+ 'campaign_id':
2271
2329
  (str,),
2272
- 'promoted_product202110_list_request':
2273
- (PromotedProduct202110ListRequest,),
2330
+ 'preferred_line_item_create_model202110_request':
2331
+ (PreferredLineItemCreateModel202110Request,),
2274
2332
  },
2275
2333
  'attribute_map': {
2276
- 'line_item_id': 'line-item-id',
2334
+ 'campaign_id': 'campaign-id',
2277
2335
  },
2278
2336
  'location_map': {
2279
- 'line_item_id': 'path',
2280
- 'promoted_product202110_list_request': 'body',
2337
+ 'campaign_id': 'path',
2338
+ 'preferred_line_item_create_model202110_request': 'body',
2281
2339
  },
2282
2340
  'collection_format_map': {
2283
2341
  }
@@ -2292,118 +2350,6 @@ class CampaignApi(object):
2292
2350
  },
2293
2351
  api_client=api_client
2294
2352
  )
2295
- self.post_api202110_external_line_item_products_pause_by_line_item_id_endpoint = _Endpoint(
2296
- settings={
2297
- 'response_type': None,
2298
- 'auth': [
2299
- 'oauth',
2300
- 'oauth'
2301
- ],
2302
- 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/pause',
2303
- 'operation_id': 'post_api202110_external_line_item_products_pause_by_line_item_id',
2304
- 'http_method': 'POST',
2305
- 'servers': None,
2306
- },
2307
- params_map={
2308
- 'all': [
2309
- 'line_item_id',
2310
- 'promoted_product202110_list_request',
2311
- ],
2312
- 'required': [
2313
- 'line_item_id',
2314
- ],
2315
- 'nullable': [
2316
- ],
2317
- 'enum': [
2318
- ],
2319
- 'validation': [
2320
- ]
2321
- },
2322
- root_map={
2323
- 'validations': {
2324
- },
2325
- 'allowed_values': {
2326
- },
2327
- 'openapi_types': {
2328
- 'line_item_id':
2329
- (str,),
2330
- 'promoted_product202110_list_request':
2331
- (PromotedProduct202110ListRequest,),
2332
- },
2333
- 'attribute_map': {
2334
- 'line_item_id': 'line-item-id',
2335
- },
2336
- 'location_map': {
2337
- 'line_item_id': 'path',
2338
- 'promoted_product202110_list_request': 'body',
2339
- },
2340
- 'collection_format_map': {
2341
- }
2342
- },
2343
- headers_map={
2344
- 'accept': [],
2345
- 'content_type': [
2346
- 'application/json'
2347
- ]
2348
- },
2349
- api_client=api_client
2350
- )
2351
- self.post_api202110_external_line_item_products_unpause_by_line_item_id_endpoint = _Endpoint(
2352
- settings={
2353
- 'response_type': None,
2354
- 'auth': [
2355
- 'oauth',
2356
- 'oauth'
2357
- ],
2358
- 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/unpause',
2359
- 'operation_id': 'post_api202110_external_line_item_products_unpause_by_line_item_id',
2360
- 'http_method': 'POST',
2361
- 'servers': None,
2362
- },
2363
- params_map={
2364
- 'all': [
2365
- 'line_item_id',
2366
- 'promoted_product202110_list_request',
2367
- ],
2368
- 'required': [
2369
- 'line_item_id',
2370
- ],
2371
- 'nullable': [
2372
- ],
2373
- 'enum': [
2374
- ],
2375
- 'validation': [
2376
- ]
2377
- },
2378
- root_map={
2379
- 'validations': {
2380
- },
2381
- 'allowed_values': {
2382
- },
2383
- 'openapi_types': {
2384
- 'line_item_id':
2385
- (str,),
2386
- 'promoted_product202110_list_request':
2387
- (PromotedProduct202110ListRequest,),
2388
- },
2389
- 'attribute_map': {
2390
- 'line_item_id': 'line-item-id',
2391
- },
2392
- 'location_map': {
2393
- 'line_item_id': 'path',
2394
- 'promoted_product202110_list_request': 'body',
2395
- },
2396
- 'collection_format_map': {
2397
- }
2398
- },
2399
- headers_map={
2400
- 'accept': [],
2401
- 'content_type': [
2402
- 'application/json'
2403
- ]
2404
- },
2405
- api_client=api_client
2406
- )
2407
2353
  self.post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id_endpoint = _Endpoint(
2408
2354
  settings={
2409
2355
  'response_type': (AddToBasketTarget202110Response,),
@@ -3624,6 +3570,64 @@ class CampaignApi(object):
3624
3570
  },
3625
3571
  api_client=api_client
3626
3572
  )
3573
+ self.unpause_promoted_products_endpoint = _Endpoint(
3574
+ settings={
3575
+ 'response_type': None,
3576
+ 'auth': [
3577
+ 'oauth',
3578
+ 'oauth'
3579
+ ],
3580
+ 'endpoint_path': '/2024-07/retail-media/line-items/{line-item-id}/products/unpause',
3581
+ 'operation_id': 'unpause_promoted_products',
3582
+ 'http_method': 'POST',
3583
+ 'servers': None,
3584
+ },
3585
+ params_map={
3586
+ 'all': [
3587
+ 'line_item_id',
3588
+ 'promoted_product_resource_collection_input',
3589
+ ],
3590
+ 'required': [
3591
+ 'line_item_id',
3592
+ ],
3593
+ 'nullable': [
3594
+ ],
3595
+ 'enum': [
3596
+ ],
3597
+ 'validation': [
3598
+ ]
3599
+ },
3600
+ root_map={
3601
+ 'validations': {
3602
+ },
3603
+ 'allowed_values': {
3604
+ },
3605
+ 'openapi_types': {
3606
+ 'line_item_id':
3607
+ (str,),
3608
+ 'promoted_product_resource_collection_input':
3609
+ (PromotedProductResourceCollectionInput,),
3610
+ },
3611
+ 'attribute_map': {
3612
+ 'line_item_id': 'line-item-id',
3613
+ },
3614
+ 'location_map': {
3615
+ 'line_item_id': 'path',
3616
+ 'promoted_product_resource_collection_input': 'body',
3617
+ },
3618
+ 'collection_format_map': {
3619
+ }
3620
+ },
3621
+ headers_map={
3622
+ 'accept': [
3623
+ 'application/json'
3624
+ ],
3625
+ 'content_type': [
3626
+ 'application/json'
3627
+ ]
3628
+ },
3629
+ api_client=api_client
3630
+ )
3627
3631
  self.update_campaign_budget_overrides_endpoint = _Endpoint(
3628
3632
  settings={
3629
3633
  'response_type': (ValueResourceOutcomeOfCampaignBudgetOverrides,),
@@ -3831,24 +3835,25 @@ class CampaignApi(object):
3831
3835
  id
3832
3836
  return self.add_remove_keywords_endpoint.call_with_http_info(**kwargs)
3833
3837
 
3834
- def create_asset(
3838
+ def append_promoted_products(
3835
3839
  self,
3836
- asset_file,
3840
+ line_item_id,
3837
3841
  **kwargs
3838
3842
  ):
3839
- """create_asset # noqa: E501
3843
+ """append_promoted_products # noqa: E501
3840
3844
 
3841
- Creates an asset # noqa: E501
3845
+ Append a collection of promoted products to a line item # noqa: E501
3842
3846
  This method makes a synchronous HTTP request by default. To make an
3843
3847
  asynchronous HTTP request, please pass async_req=True
3844
3848
 
3845
- >>> thread = api.create_asset(asset_file, async_req=True)
3849
+ >>> thread = api.append_promoted_products(line_item_id, async_req=True)
3846
3850
  >>> result = thread.get()
3847
3851
 
3848
3852
  Args:
3849
- asset_file (file_type): The asset binary content
3853
+ line_item_id (str): ID of the line item
3850
3854
 
3851
3855
  Keyword Args:
3856
+ promoted_product_resource_collection_input (PromotedProductResourceCollectionInput): Request body whose {data} contains an array of promoted products.. [optional]
3852
3857
  _return_http_data_only (bool): response data without head status
3853
3858
  code and headers. Default is True.
3854
3859
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -3881,7 +3886,7 @@ class CampaignApi(object):
3881
3886
  async_req (bool): execute request asynchronously
3882
3887
 
3883
3888
  Returns:
3884
- AssetResponse
3889
+ None
3885
3890
  If the method is called asynchronously, returns the request
3886
3891
  thread.
3887
3892
  """
@@ -3910,10 +3915,177 @@ class CampaignApi(object):
3910
3915
  '_content_type')
3911
3916
  kwargs['_host_index'] = kwargs.get('_host_index')
3912
3917
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
3913
- kwargs['asset_file'] = \
3914
- asset_file
3918
+ kwargs['line_item_id'] = \
3919
+ line_item_id
3920
+ return self.append_promoted_products_endpoint.call_with_http_info(**kwargs)
3921
+
3922
+ def create_asset(
3923
+ self,
3924
+ asset_file,
3925
+ **kwargs
3926
+ ):
3927
+ """create_asset # noqa: E501
3928
+
3929
+ Creates an asset # noqa: E501
3930
+ This method makes a synchronous HTTP request by default. To make an
3931
+ asynchronous HTTP request, please pass async_req=True
3932
+
3933
+ >>> thread = api.create_asset(asset_file, async_req=True)
3934
+ >>> result = thread.get()
3935
+
3936
+ Args:
3937
+ asset_file (file_type): The asset binary content
3938
+
3939
+ Keyword Args:
3940
+ _return_http_data_only (bool): response data without head status
3941
+ code and headers. Default is True.
3942
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
3943
+ will be returned without reading/decoding response data.
3944
+ Default is True.
3945
+ _request_timeout (int/float/tuple): timeout setting for this request. If
3946
+ one number provided, it will be total request timeout. It can also
3947
+ be a pair (tuple) of (connection, read) timeouts.
3948
+ Default is None.
3949
+ _check_input_type (bool): specifies if type checking
3950
+ should be done one the data sent to the server.
3951
+ Default is True.
3952
+ _check_return_type (bool): specifies if type checking
3953
+ should be done one the data received from the server.
3954
+ Default is True.
3955
+ _spec_property_naming (bool): True if the variable names in the input data
3956
+ are serialized names, as specified in the OpenAPI document.
3957
+ False if the variable names in the input data
3958
+ are pythonic names, e.g. snake case (default)
3959
+ _content_type (str/None): force body content-type.
3960
+ Default is None and content-type will be predicted by allowed
3961
+ content-types and body.
3962
+ _host_index (int/None): specifies the index of the server
3963
+ that we want to use.
3964
+ Default is read from the configuration.
3965
+ _request_auths (list): set to override the auth_settings for an a single
3966
+ request; this effectively ignores the authentication
3967
+ in the spec for a single request.
3968
+ Default is None
3969
+ async_req (bool): execute request asynchronously
3970
+
3971
+ Returns:
3972
+ AssetResponse
3973
+ If the method is called asynchronously, returns the request
3974
+ thread.
3975
+ """
3976
+ kwargs['async_req'] = kwargs.get(
3977
+ 'async_req', False
3978
+ )
3979
+ kwargs['_return_http_data_only'] = kwargs.get(
3980
+ '_return_http_data_only', True
3981
+ )
3982
+ kwargs['_preload_content'] = kwargs.get(
3983
+ '_preload_content', True
3984
+ )
3985
+ kwargs['_request_timeout'] = kwargs.get(
3986
+ '_request_timeout', None
3987
+ )
3988
+ kwargs['_check_input_type'] = kwargs.get(
3989
+ '_check_input_type', True
3990
+ )
3991
+ kwargs['_check_return_type'] = kwargs.get(
3992
+ '_check_return_type', True
3993
+ )
3994
+ kwargs['_spec_property_naming'] = kwargs.get(
3995
+ '_spec_property_naming', False
3996
+ )
3997
+ kwargs['_content_type'] = kwargs.get(
3998
+ '_content_type')
3999
+ kwargs['_host_index'] = kwargs.get('_host_index')
4000
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
4001
+ kwargs['asset_file'] = \
4002
+ asset_file
3915
4003
  return self.create_asset_endpoint.call_with_http_info(**kwargs)
3916
4004
 
4005
+ def delete_promoted_products(
4006
+ self,
4007
+ line_item_id,
4008
+ **kwargs
4009
+ ):
4010
+ """delete_promoted_products # noqa: E501
4011
+
4012
+ Remove a collection of promoted products from a line item # noqa: E501
4013
+ This method makes a synchronous HTTP request by default. To make an
4014
+ asynchronous HTTP request, please pass async_req=True
4015
+
4016
+ >>> thread = api.delete_promoted_products(line_item_id, async_req=True)
4017
+ >>> result = thread.get()
4018
+
4019
+ Args:
4020
+ line_item_id (str): ID of the line item
4021
+
4022
+ Keyword Args:
4023
+ promoted_product_resource_collection_input (PromotedProductResourceCollectionInput): Request body whose {data} contains an array of promoted products.. [optional]
4024
+ _return_http_data_only (bool): response data without head status
4025
+ code and headers. Default is True.
4026
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
4027
+ will be returned without reading/decoding response data.
4028
+ Default is True.
4029
+ _request_timeout (int/float/tuple): timeout setting for this request. If
4030
+ one number provided, it will be total request timeout. It can also
4031
+ be a pair (tuple) of (connection, read) timeouts.
4032
+ Default is None.
4033
+ _check_input_type (bool): specifies if type checking
4034
+ should be done one the data sent to the server.
4035
+ Default is True.
4036
+ _check_return_type (bool): specifies if type checking
4037
+ should be done one the data received from the server.
4038
+ Default is True.
4039
+ _spec_property_naming (bool): True if the variable names in the input data
4040
+ are serialized names, as specified in the OpenAPI document.
4041
+ False if the variable names in the input data
4042
+ are pythonic names, e.g. snake case (default)
4043
+ _content_type (str/None): force body content-type.
4044
+ Default is None and content-type will be predicted by allowed
4045
+ content-types and body.
4046
+ _host_index (int/None): specifies the index of the server
4047
+ that we want to use.
4048
+ Default is read from the configuration.
4049
+ _request_auths (list): set to override the auth_settings for an a single
4050
+ request; this effectively ignores the authentication
4051
+ in the spec for a single request.
4052
+ Default is None
4053
+ async_req (bool): execute request asynchronously
4054
+
4055
+ Returns:
4056
+ None
4057
+ If the method is called asynchronously, returns the request
4058
+ thread.
4059
+ """
4060
+ kwargs['async_req'] = kwargs.get(
4061
+ 'async_req', False
4062
+ )
4063
+ kwargs['_return_http_data_only'] = kwargs.get(
4064
+ '_return_http_data_only', True
4065
+ )
4066
+ kwargs['_preload_content'] = kwargs.get(
4067
+ '_preload_content', True
4068
+ )
4069
+ kwargs['_request_timeout'] = kwargs.get(
4070
+ '_request_timeout', None
4071
+ )
4072
+ kwargs['_check_input_type'] = kwargs.get(
4073
+ '_check_input_type', True
4074
+ )
4075
+ kwargs['_check_return_type'] = kwargs.get(
4076
+ '_check_return_type', True
4077
+ )
4078
+ kwargs['_spec_property_naming'] = kwargs.get(
4079
+ '_spec_property_naming', False
4080
+ )
4081
+ kwargs['_content_type'] = kwargs.get(
4082
+ '_content_type')
4083
+ kwargs['_host_index'] = kwargs.get('_host_index')
4084
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
4085
+ kwargs['line_item_id'] = \
4086
+ line_item_id
4087
+ return self.delete_promoted_products_endpoint.call_with_http_info(**kwargs)
4088
+
3917
4089
  def fetch_keywords(
3918
4090
  self,
3919
4091
  id,
@@ -3997,24 +4169,27 @@ class CampaignApi(object):
3997
4169
  id
3998
4170
  return self.fetch_keywords_endpoint.call_with_http_info(**kwargs)
3999
4171
 
4000
- def fetch_proposal(
4172
+ def fetch_promoted_products(
4001
4173
  self,
4002
- id,
4174
+ line_item_id,
4003
4175
  **kwargs
4004
4176
  ):
4005
- """fetch_proposal # noqa: E501
4177
+ """fetch_promoted_products # noqa: E501
4006
4178
 
4007
- Includes the state of the proposal, the status of the booking and approval, as well as any comments explaining why it might have been rejected. # noqa: E501
4179
+ Retrieve a page of promoted products for a line item # noqa: E501
4008
4180
  This method makes a synchronous HTTP request by default. To make an
4009
4181
  asynchronous HTTP request, please pass async_req=True
4010
4182
 
4011
- >>> thread = api.fetch_proposal(id, async_req=True)
4183
+ >>> thread = api.fetch_promoted_products(line_item_id, async_req=True)
4012
4184
  >>> result = thread.get()
4013
4185
 
4014
4186
  Args:
4015
- id (str): ID of the line item
4187
+ line_item_id (str): ID of the line item.
4016
4188
 
4017
4189
  Keyword Args:
4190
+ offset (int): Offset of the first item to fetch. Defaults to zero.. [optional]
4191
+ limit (int): Maximum page size to fetch. Defaults to 500.. [optional]
4192
+ fields (str): A comma separated list of attribute names from the response model to compute and return. Valid values are `status` and `bidOverride` in any order. Defaults to `status`.. [optional]
4018
4193
  _return_http_data_only (bool): response data without head status
4019
4194
  code and headers. Default is True.
4020
4195
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -4047,7 +4222,7 @@ class CampaignApi(object):
4047
4222
  async_req (bool): execute request asynchronously
4048
4223
 
4049
4224
  Returns:
4050
- ProposalStatusModelResponse
4225
+ PromotedProductResourceCollectionOutcome
4051
4226
  If the method is called asynchronously, returns the request
4052
4227
  thread.
4053
4228
  """
@@ -4076,26 +4251,26 @@ class CampaignApi(object):
4076
4251
  '_content_type')
4077
4252
  kwargs['_host_index'] = kwargs.get('_host_index')
4078
4253
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
4079
- kwargs['id'] = \
4080
- id
4081
- return self.fetch_proposal_endpoint.call_with_http_info(**kwargs)
4254
+ kwargs['line_item_id'] = \
4255
+ line_item_id
4256
+ return self.fetch_promoted_products_endpoint.call_with_http_info(**kwargs)
4082
4257
 
4083
- def get_api202110_external_account_creatives_by_account_id(
4258
+ def fetch_proposal(
4084
4259
  self,
4085
- account_id,
4260
+ id,
4086
4261
  **kwargs
4087
4262
  ):
4088
- """get_api202110_external_account_creatives_by_account_id # noqa: E501
4263
+ """fetch_proposal # noqa: E501
4089
4264
 
4090
- Get account creatives # noqa: E501
4265
+ Includes the state of the proposal, the status of the booking and approval, as well as any comments explaining why it might have been rejected. # noqa: E501
4091
4266
  This method makes a synchronous HTTP request by default. To make an
4092
4267
  asynchronous HTTP request, please pass async_req=True
4093
4268
 
4094
- >>> thread = api.get_api202110_external_account_creatives_by_account_id(account_id, async_req=True)
4269
+ >>> thread = api.fetch_proposal(id, async_req=True)
4095
4270
  >>> result = thread.get()
4096
4271
 
4097
4272
  Args:
4098
- account_id (str): External account id to retrieve creatives for
4273
+ id (str): ID of the line item
4099
4274
 
4100
4275
  Keyword Args:
4101
4276
  _return_http_data_only (bool): response data without head status
@@ -4130,7 +4305,7 @@ class CampaignApi(object):
4130
4305
  async_req (bool): execute request asynchronously
4131
4306
 
4132
4307
  Returns:
4133
- Creative202110ListResponse
4308
+ ProposalStatusModelResponse
4134
4309
  If the method is called asynchronously, returns the request
4135
4310
  thread.
4136
4311
  """
@@ -4159,26 +4334,26 @@ class CampaignApi(object):
4159
4334
  '_content_type')
4160
4335
  kwargs['_host_index'] = kwargs.get('_host_index')
4161
4336
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
4162
- kwargs['account_id'] = \
4163
- account_id
4164
- return self.get_api202110_external_account_creatives_by_account_id_endpoint.call_with_http_info(**kwargs)
4337
+ kwargs['id'] = \
4338
+ id
4339
+ return self.fetch_proposal_endpoint.call_with_http_info(**kwargs)
4165
4340
 
4166
- def get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id(
4341
+ def get_api202110_external_account_creatives_by_account_id(
4167
4342
  self,
4168
- line_item_id,
4343
+ account_id,
4169
4344
  **kwargs
4170
4345
  ):
4171
- """get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id # noqa: E501
4346
+ """get_api202110_external_account_creatives_by_account_id # noqa: E501
4172
4347
 
4173
- This endpoint gets the keyword target on the specified line item. # noqa: E501
4348
+ Get account creatives # noqa: E501
4174
4349
  This method makes a synchronous HTTP request by default. To make an
4175
4350
  asynchronous HTTP request, please pass async_req=True
4176
4351
 
4177
- >>> thread = api.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id(line_item_id, async_req=True)
4352
+ >>> thread = api.get_api202110_external_account_creatives_by_account_id(account_id, async_req=True)
4178
4353
  >>> result = thread.get()
4179
4354
 
4180
4355
  Args:
4181
- line_item_id (str): The line item to interact with
4356
+ account_id (str): External account id to retrieve creatives for
4182
4357
 
4183
4358
  Keyword Args:
4184
4359
  _return_http_data_only (bool): response data without head status
@@ -4213,7 +4388,7 @@ class CampaignApi(object):
4213
4388
  async_req (bool): execute request asynchronously
4214
4389
 
4215
4390
  Returns:
4216
- KeywordTarget202110Response
4391
+ Creative202110ListResponse
4217
4392
  If the method is called asynchronously, returns the request
4218
4393
  thread.
4219
4394
  """
@@ -4242,31 +4417,28 @@ class CampaignApi(object):
4242
4417
  '_content_type')
4243
4418
  kwargs['_host_index'] = kwargs.get('_host_index')
4244
4419
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
4245
- kwargs['line_item_id'] = \
4246
- line_item_id
4247
- return self.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id_endpoint.call_with_http_info(**kwargs)
4420
+ kwargs['account_id'] = \
4421
+ account_id
4422
+ return self.get_api202110_external_account_creatives_by_account_id_endpoint.call_with_http_info(**kwargs)
4248
4423
 
4249
- def get_api202110_external_campaign_preferred_line_items_by_campaign_id(
4424
+ def get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id(
4250
4425
  self,
4251
- campaign_id,
4426
+ line_item_id,
4252
4427
  **kwargs
4253
4428
  ):
4254
- """get_api202110_external_campaign_preferred_line_items_by_campaign_id # noqa: E501
4429
+ """get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id # noqa: E501
4255
4430
 
4256
- Gets page of preferred line item objects for the given campaign id # noqa: E501
4431
+ This endpoint gets the keyword target on the specified line item. # noqa: E501
4257
4432
  This method makes a synchronous HTTP request by default. To make an
4258
4433
  asynchronous HTTP request, please pass async_req=True
4259
4434
 
4260
- >>> thread = api.get_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, async_req=True)
4435
+ >>> thread = api.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id(line_item_id, async_req=True)
4261
4436
  >>> result = thread.get()
4262
4437
 
4263
4438
  Args:
4264
- campaign_id (str): The given campaign id
4439
+ line_item_id (str): The line item to interact with
4265
4440
 
4266
4441
  Keyword Args:
4267
- limit_to_id ([str]): The ids that you would like to limit your result set to. [optional]
4268
- page_index (int): The 0 indexed page index you would like to receive given the page size. [optional]
4269
- page_size (int): The maximum number of items you would like to receive in this request. [optional]
4270
4442
  _return_http_data_only (bool): response data without head status
4271
4443
  code and headers. Default is True.
4272
4444
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -4299,7 +4471,7 @@ class CampaignApi(object):
4299
4471
  async_req (bool): execute request asynchronously
4300
4472
 
4301
4473
  Returns:
4302
- PreferredLineItem202110PagedListResponse
4474
+ KeywordTarget202110Response
4303
4475
  If the method is called asynchronously, returns the request
4304
4476
  thread.
4305
4477
  """
@@ -4328,26 +4500,26 @@ class CampaignApi(object):
4328
4500
  '_content_type')
4329
4501
  kwargs['_host_index'] = kwargs.get('_host_index')
4330
4502
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
4331
- kwargs['campaign_id'] = \
4332
- campaign_id
4333
- return self.get_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs)
4503
+ kwargs['line_item_id'] = \
4504
+ line_item_id
4505
+ return self.get_api202110_external_auction_line_item_targeting_keywords_by_line_item_id_endpoint.call_with_http_info(**kwargs)
4334
4506
 
4335
- def get_api202110_external_line_item_products_by_line_item_id(
4507
+ def get_api202110_external_campaign_preferred_line_items_by_campaign_id(
4336
4508
  self,
4337
- line_item_id,
4509
+ campaign_id,
4338
4510
  **kwargs
4339
4511
  ):
4340
- """get_api202110_external_line_item_products_by_line_item_id # noqa: E501
4512
+ """get_api202110_external_campaign_preferred_line_items_by_campaign_id # noqa: E501
4341
4513
 
4342
- This endpoint gets the promoted products on the specified line item. # noqa: E501
4514
+ Gets page of preferred line item objects for the given campaign id # noqa: E501
4343
4515
  This method makes a synchronous HTTP request by default. To make an
4344
4516
  asynchronous HTTP request, please pass async_req=True
4345
4517
 
4346
- >>> thread = api.get_api202110_external_line_item_products_by_line_item_id(line_item_id, async_req=True)
4518
+ >>> thread = api.get_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, async_req=True)
4347
4519
  >>> result = thread.get()
4348
4520
 
4349
4521
  Args:
4350
- line_item_id (str): The line item to interact with
4522
+ campaign_id (str): The given campaign id
4351
4523
 
4352
4524
  Keyword Args:
4353
4525
  limit_to_id ([str]): The ids that you would like to limit your result set to. [optional]
@@ -4385,7 +4557,7 @@ class CampaignApi(object):
4385
4557
  async_req (bool): execute request asynchronously
4386
4558
 
4387
4559
  Returns:
4388
- PromotedProduct202110PagedListResponse
4560
+ PreferredLineItem202110PagedListResponse
4389
4561
  If the method is called asynchronously, returns the request
4390
4562
  thread.
4391
4563
  """
@@ -4414,9 +4586,9 @@ class CampaignApi(object):
4414
4586
  '_content_type')
4415
4587
  kwargs['_host_index'] = kwargs.get('_host_index')
4416
4588
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
4417
- kwargs['line_item_id'] = \
4418
- line_item_id
4419
- return self.get_api202110_external_line_item_products_by_line_item_id_endpoint.call_with_http_info(**kwargs)
4589
+ kwargs['campaign_id'] = \
4590
+ campaign_id
4591
+ return self.get_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs)
4420
4592
 
4421
4593
  def get_api202110_external_preferred_line_item_by_line_item_id(
4422
4594
  self,
@@ -5948,259 +6120,7 @@ class CampaignApi(object):
5948
6120
  >>> result = thread.get()
5949
6121
 
5950
6122
  Args:
5951
- line_item_id (str): The given line item id
5952
-
5953
- Keyword Args:
5954
- _return_http_data_only (bool): response data without head status
5955
- code and headers. Default is True.
5956
- _preload_content (bool): if False, the urllib3.HTTPResponse object
5957
- will be returned without reading/decoding response data.
5958
- Default is True.
5959
- _request_timeout (int/float/tuple): timeout setting for this request. If
5960
- one number provided, it will be total request timeout. It can also
5961
- be a pair (tuple) of (connection, read) timeouts.
5962
- Default is None.
5963
- _check_input_type (bool): specifies if type checking
5964
- should be done one the data sent to the server.
5965
- Default is True.
5966
- _check_return_type (bool): specifies if type checking
5967
- should be done one the data received from the server.
5968
- Default is True.
5969
- _spec_property_naming (bool): True if the variable names in the input data
5970
- are serialized names, as specified in the OpenAPI document.
5971
- False if the variable names in the input data
5972
- are pythonic names, e.g. snake case (default)
5973
- _content_type (str/None): force body content-type.
5974
- Default is None and content-type will be predicted by allowed
5975
- content-types and body.
5976
- _host_index (int/None): specifies the index of the server
5977
- that we want to use.
5978
- Default is read from the configuration.
5979
- _request_auths (list): set to override the auth_settings for an a single
5980
- request; this effectively ignores the authentication
5981
- in the spec for a single request.
5982
- Default is None
5983
- async_req (bool): execute request asynchronously
5984
-
5985
- Returns:
5986
- AuctionLineItemResponse
5987
- If the method is called asynchronously, returns the request
5988
- thread.
5989
- """
5990
- kwargs['async_req'] = kwargs.get(
5991
- 'async_req', False
5992
- )
5993
- kwargs['_return_http_data_only'] = kwargs.get(
5994
- '_return_http_data_only', True
5995
- )
5996
- kwargs['_preload_content'] = kwargs.get(
5997
- '_preload_content', True
5998
- )
5999
- kwargs['_request_timeout'] = kwargs.get(
6000
- '_request_timeout', None
6001
- )
6002
- kwargs['_check_input_type'] = kwargs.get(
6003
- '_check_input_type', True
6004
- )
6005
- kwargs['_check_return_type'] = kwargs.get(
6006
- '_check_return_type', True
6007
- )
6008
- kwargs['_spec_property_naming'] = kwargs.get(
6009
- '_spec_property_naming', False
6010
- )
6011
- kwargs['_content_type'] = kwargs.get(
6012
- '_content_type')
6013
- kwargs['_host_index'] = kwargs.get('_host_index')
6014
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
6015
- kwargs['line_item_id'] = \
6016
- line_item_id
6017
- return self.get_api_v2_external_auction_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs)
6018
-
6019
- def get_api_v2_external_campaign_auction_line_items_by_campaign_id(
6020
- self,
6021
- campaign_id,
6022
- **kwargs
6023
- ):
6024
- """get_api_v2_external_campaign_auction_line_items_by_campaign_id # noqa: E501
6025
-
6026
- Gets page of auction line item objects for the given campaign id # noqa: E501
6027
- This method makes a synchronous HTTP request by default. To make an
6028
- asynchronous HTTP request, please pass async_req=True
6029
-
6030
- >>> thread = api.get_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id, async_req=True)
6031
- >>> result = thread.get()
6032
-
6033
- Args:
6034
- campaign_id (str): The given campaign id
6035
-
6036
- Keyword Args:
6037
- limit_to_id ([str]): The ids that you would like to limit your result set to. [optional]
6038
- page_index (int): The 0 indexed page index you would like to receive given the page size. [optional]
6039
- page_size (int): The maximum number of items you would like to receive in this request. [optional]
6040
- _return_http_data_only (bool): response data without head status
6041
- code and headers. Default is True.
6042
- _preload_content (bool): if False, the urllib3.HTTPResponse object
6043
- will be returned without reading/decoding response data.
6044
- Default is True.
6045
- _request_timeout (int/float/tuple): timeout setting for this request. If
6046
- one number provided, it will be total request timeout. It can also
6047
- be a pair (tuple) of (connection, read) timeouts.
6048
- Default is None.
6049
- _check_input_type (bool): specifies if type checking
6050
- should be done one the data sent to the server.
6051
- Default is True.
6052
- _check_return_type (bool): specifies if type checking
6053
- should be done one the data received from the server.
6054
- Default is True.
6055
- _spec_property_naming (bool): True if the variable names in the input data
6056
- are serialized names, as specified in the OpenAPI document.
6057
- False if the variable names in the input data
6058
- are pythonic names, e.g. snake case (default)
6059
- _content_type (str/None): force body content-type.
6060
- Default is None and content-type will be predicted by allowed
6061
- content-types and body.
6062
- _host_index (int/None): specifies the index of the server
6063
- that we want to use.
6064
- Default is read from the configuration.
6065
- _request_auths (list): set to override the auth_settings for an a single
6066
- request; this effectively ignores the authentication
6067
- in the spec for a single request.
6068
- Default is None
6069
- async_req (bool): execute request asynchronously
6070
-
6071
- Returns:
6072
- AuctionLineItemPagedListResponse
6073
- If the method is called asynchronously, returns the request
6074
- thread.
6075
- """
6076
- kwargs['async_req'] = kwargs.get(
6077
- 'async_req', False
6078
- )
6079
- kwargs['_return_http_data_only'] = kwargs.get(
6080
- '_return_http_data_only', True
6081
- )
6082
- kwargs['_preload_content'] = kwargs.get(
6083
- '_preload_content', True
6084
- )
6085
- kwargs['_request_timeout'] = kwargs.get(
6086
- '_request_timeout', None
6087
- )
6088
- kwargs['_check_input_type'] = kwargs.get(
6089
- '_check_input_type', True
6090
- )
6091
- kwargs['_check_return_type'] = kwargs.get(
6092
- '_check_return_type', True
6093
- )
6094
- kwargs['_spec_property_naming'] = kwargs.get(
6095
- '_spec_property_naming', False
6096
- )
6097
- kwargs['_content_type'] = kwargs.get(
6098
- '_content_type')
6099
- kwargs['_host_index'] = kwargs.get('_host_index')
6100
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
6101
- kwargs['campaign_id'] = \
6102
- campaign_id
6103
- return self.get_api_v2_external_campaign_auction_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs)
6104
-
6105
- def get_api_v2_external_line_item_by_line_item_id(
6106
- self,
6107
- line_item_id,
6108
- **kwargs
6109
- ):
6110
- """get_api_v2_external_line_item_by_line_item_id # noqa: E501
6111
-
6112
- Gets the line item for the given line item id # noqa: E501
6113
- This method makes a synchronous HTTP request by default. To make an
6114
- asynchronous HTTP request, please pass async_req=True
6115
-
6116
- >>> thread = api.get_api_v2_external_line_item_by_line_item_id(line_item_id, async_req=True)
6117
- >>> result = thread.get()
6118
-
6119
- Args:
6120
- line_item_id (str): The given line item id
6121
-
6122
- Keyword Args:
6123
- _return_http_data_only (bool): response data without head status
6124
- code and headers. Default is True.
6125
- _preload_content (bool): if False, the urllib3.HTTPResponse object
6126
- will be returned without reading/decoding response data.
6127
- Default is True.
6128
- _request_timeout (int/float/tuple): timeout setting for this request. If
6129
- one number provided, it will be total request timeout. It can also
6130
- be a pair (tuple) of (connection, read) timeouts.
6131
- Default is None.
6132
- _check_input_type (bool): specifies if type checking
6133
- should be done one the data sent to the server.
6134
- Default is True.
6135
- _check_return_type (bool): specifies if type checking
6136
- should be done one the data received from the server.
6137
- Default is True.
6138
- _spec_property_naming (bool): True if the variable names in the input data
6139
- are serialized names, as specified in the OpenAPI document.
6140
- False if the variable names in the input data
6141
- are pythonic names, e.g. snake case (default)
6142
- _content_type (str/None): force body content-type.
6143
- Default is None and content-type will be predicted by allowed
6144
- content-types and body.
6145
- _host_index (int/None): specifies the index of the server
6146
- that we want to use.
6147
- Default is read from the configuration.
6148
- _request_auths (list): set to override the auth_settings for an a single
6149
- request; this effectively ignores the authentication
6150
- in the spec for a single request.
6151
- Default is None
6152
- async_req (bool): execute request asynchronously
6153
-
6154
- Returns:
6155
- CommonLineItemResponse
6156
- If the method is called asynchronously, returns the request
6157
- thread.
6158
- """
6159
- kwargs['async_req'] = kwargs.get(
6160
- 'async_req', False
6161
- )
6162
- kwargs['_return_http_data_only'] = kwargs.get(
6163
- '_return_http_data_only', True
6164
- )
6165
- kwargs['_preload_content'] = kwargs.get(
6166
- '_preload_content', True
6167
- )
6168
- kwargs['_request_timeout'] = kwargs.get(
6169
- '_request_timeout', None
6170
- )
6171
- kwargs['_check_input_type'] = kwargs.get(
6172
- '_check_input_type', True
6173
- )
6174
- kwargs['_check_return_type'] = kwargs.get(
6175
- '_check_return_type', True
6176
- )
6177
- kwargs['_spec_property_naming'] = kwargs.get(
6178
- '_spec_property_naming', False
6179
- )
6180
- kwargs['_content_type'] = kwargs.get(
6181
- '_content_type')
6182
- kwargs['_host_index'] = kwargs.get('_host_index')
6183
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
6184
- kwargs['line_item_id'] = \
6185
- line_item_id
6186
- return self.get_api_v2_external_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs)
6187
-
6188
- def get_campaign_budget_overrides(
6189
- self,
6190
- campaign_id,
6191
- **kwargs
6192
- ):
6193
- """get_campaign_budget_overrides # noqa: E501
6194
-
6195
- Get current campaign budget overrides by given external campaign id. # noqa: E501
6196
- This method makes a synchronous HTTP request by default. To make an
6197
- asynchronous HTTP request, please pass async_req=True
6198
-
6199
- >>> thread = api.get_campaign_budget_overrides(campaign_id, async_req=True)
6200
- >>> result = thread.get()
6201
-
6202
- Args:
6203
- campaign_id (int): External campaign id.
6123
+ line_item_id (str): The given line item id
6204
6124
 
6205
6125
  Keyword Args:
6206
6126
  _return_http_data_only (bool): response data without head status
@@ -6235,7 +6155,7 @@ class CampaignApi(object):
6235
6155
  async_req (bool): execute request asynchronously
6236
6156
 
6237
6157
  Returns:
6238
- ValueResourceOutcomeOfCampaignBudgetOverrides
6158
+ AuctionLineItemResponse
6239
6159
  If the method is called asynchronously, returns the request
6240
6160
  thread.
6241
6161
  """
@@ -6264,28 +6184,31 @@ class CampaignApi(object):
6264
6184
  '_content_type')
6265
6185
  kwargs['_host_index'] = kwargs.get('_host_index')
6266
6186
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
6267
- kwargs['campaign_id'] = \
6268
- campaign_id
6269
- return self.get_campaign_budget_overrides_endpoint.call_with_http_info(**kwargs)
6187
+ kwargs['line_item_id'] = \
6188
+ line_item_id
6189
+ return self.get_api_v2_external_auction_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs)
6270
6190
 
6271
- def get_line_item_budget_overrides(
6191
+ def get_api_v2_external_campaign_auction_line_items_by_campaign_id(
6272
6192
  self,
6273
- line_item_id,
6193
+ campaign_id,
6274
6194
  **kwargs
6275
6195
  ):
6276
- """get_line_item_budget_overrides # noqa: E501
6196
+ """get_api_v2_external_campaign_auction_line_items_by_campaign_id # noqa: E501
6277
6197
 
6278
- Gets a collection of monthly and daily budget overrides for the provided line item. # noqa: E501
6198
+ Gets page of auction line item objects for the given campaign id # noqa: E501
6279
6199
  This method makes a synchronous HTTP request by default. To make an
6280
6200
  asynchronous HTTP request, please pass async_req=True
6281
6201
 
6282
- >>> thread = api.get_line_item_budget_overrides(line_item_id, async_req=True)
6202
+ >>> thread = api.get_api_v2_external_campaign_auction_line_items_by_campaign_id(campaign_id, async_req=True)
6283
6203
  >>> result = thread.get()
6284
6204
 
6285
6205
  Args:
6286
- line_item_id (str): The line item id to get budget overrides for.
6206
+ campaign_id (str): The given campaign id
6287
6207
 
6288
6208
  Keyword Args:
6209
+ limit_to_id ([str]): The ids that you would like to limit your result set to. [optional]
6210
+ page_index (int): The 0 indexed page index you would like to receive given the page size. [optional]
6211
+ page_size (int): The maximum number of items you would like to receive in this request. [optional]
6289
6212
  _return_http_data_only (bool): response data without head status
6290
6213
  code and headers. Default is True.
6291
6214
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -6318,7 +6241,7 @@ class CampaignApi(object):
6318
6241
  async_req (bool): execute request asynchronously
6319
6242
 
6320
6243
  Returns:
6321
- ValueResourceOutcomeOfLineItemBudgetOverrides
6244
+ AuctionLineItemPagedListResponse
6322
6245
  If the method is called asynchronously, returns the request
6323
6246
  thread.
6324
6247
  """
@@ -6347,29 +6270,28 @@ class CampaignApi(object):
6347
6270
  '_content_type')
6348
6271
  kwargs['_host_index'] = kwargs.get('_host_index')
6349
6272
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
6350
- kwargs['line_item_id'] = \
6351
- line_item_id
6352
- return self.get_line_item_budget_overrides_endpoint.call_with_http_info(**kwargs)
6273
+ kwargs['campaign_id'] = \
6274
+ campaign_id
6275
+ return self.get_api_v2_external_campaign_auction_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs)
6353
6276
 
6354
- def post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(
6277
+ def get_api_v2_external_line_item_by_line_item_id(
6355
6278
  self,
6356
6279
  line_item_id,
6357
6280
  **kwargs
6358
6281
  ):
6359
- """post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id # noqa: E501
6282
+ """get_api_v2_external_line_item_by_line_item_id # noqa: E501
6360
6283
 
6361
- This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. # noqa: E501
6284
+ Gets the line item for the given line item id # noqa: E501
6362
6285
  This method makes a synchronous HTTP request by default. To make an
6363
6286
  asynchronous HTTP request, please pass async_req=True
6364
6287
 
6365
- >>> thread = api.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(line_item_id, async_req=True)
6288
+ >>> thread = api.get_api_v2_external_line_item_by_line_item_id(line_item_id, async_req=True)
6366
6289
  >>> result = thread.get()
6367
6290
 
6368
6291
  Args:
6369
- line_item_id (str): The line item to interact with
6292
+ line_item_id (str): The given line item id
6370
6293
 
6371
6294
  Keyword Args:
6372
- keyword_target202110_request (KeywordTarget202110Request): . [optional]
6373
6295
  _return_http_data_only (bool): response data without head status
6374
6296
  code and headers. Default is True.
6375
6297
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -6402,7 +6324,7 @@ class CampaignApi(object):
6402
6324
  async_req (bool): execute request asynchronously
6403
6325
 
6404
6326
  Returns:
6405
- KeywordTarget202110Response
6327
+ CommonLineItemResponse
6406
6328
  If the method is called asynchronously, returns the request
6407
6329
  thread.
6408
6330
  """
@@ -6433,27 +6355,26 @@ class CampaignApi(object):
6433
6355
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
6434
6356
  kwargs['line_item_id'] = \
6435
6357
  line_item_id
6436
- return self.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id_endpoint.call_with_http_info(**kwargs)
6358
+ return self.get_api_v2_external_line_item_by_line_item_id_endpoint.call_with_http_info(**kwargs)
6437
6359
 
6438
- def post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(
6360
+ def get_campaign_budget_overrides(
6439
6361
  self,
6440
- line_item_id,
6362
+ campaign_id,
6441
6363
  **kwargs
6442
6364
  ):
6443
- """post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id # noqa: E501
6365
+ """get_campaign_budget_overrides # noqa: E501
6444
6366
 
6445
- This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. # noqa: E501
6367
+ Get current campaign budget overrides by given external campaign id. # noqa: E501
6446
6368
  This method makes a synchronous HTTP request by default. To make an
6447
6369
  asynchronous HTTP request, please pass async_req=True
6448
6370
 
6449
- >>> thread = api.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id, async_req=True)
6371
+ >>> thread = api.get_campaign_budget_overrides(campaign_id, async_req=True)
6450
6372
  >>> result = thread.get()
6451
6373
 
6452
6374
  Args:
6453
- line_item_id (str): The line item to interact with
6375
+ campaign_id (int): External campaign id.
6454
6376
 
6455
6377
  Keyword Args:
6456
- keyword_target202110_request (KeywordTarget202110Request): . [optional]
6457
6378
  _return_http_data_only (bool): response data without head status
6458
6379
  code and headers. Default is True.
6459
6380
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -6486,7 +6407,7 @@ class CampaignApi(object):
6486
6407
  async_req (bool): execute request asynchronously
6487
6408
 
6488
6409
  Returns:
6489
- KeywordTarget202110Response
6410
+ ValueResourceOutcomeOfCampaignBudgetOverrides
6490
6411
  If the method is called asynchronously, returns the request
6491
6412
  thread.
6492
6413
  """
@@ -6515,29 +6436,28 @@ class CampaignApi(object):
6515
6436
  '_content_type')
6516
6437
  kwargs['_host_index'] = kwargs.get('_host_index')
6517
6438
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
6518
- kwargs['line_item_id'] = \
6519
- line_item_id
6520
- return self.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id_endpoint.call_with_http_info(**kwargs)
6439
+ kwargs['campaign_id'] = \
6440
+ campaign_id
6441
+ return self.get_campaign_budget_overrides_endpoint.call_with_http_info(**kwargs)
6521
6442
 
6522
- def post_api202110_external_balance_campaigns_append_by_balance_id(
6443
+ def get_line_item_budget_overrides(
6523
6444
  self,
6524
- balance_id,
6445
+ line_item_id,
6525
6446
  **kwargs
6526
6447
  ):
6527
- """post_api202110_external_balance_campaigns_append_by_balance_id # noqa: E501
6448
+ """get_line_item_budget_overrides # noqa: E501
6528
6449
 
6529
- appends one or more campaigns to the specified balance # noqa: E501
6450
+ Gets a collection of monthly and daily budget overrides for the provided line item. # noqa: E501
6530
6451
  This method makes a synchronous HTTP request by default. To make an
6531
6452
  asynchronous HTTP request, please pass async_req=True
6532
6453
 
6533
- >>> thread = api.post_api202110_external_balance_campaigns_append_by_balance_id(balance_id, async_req=True)
6454
+ >>> thread = api.get_line_item_budget_overrides(line_item_id, async_req=True)
6534
6455
  >>> result = thread.get()
6535
6456
 
6536
6457
  Args:
6537
- balance_id (str): The balance to add campaigns from
6458
+ line_item_id (str): The line item id to get budget overrides for.
6538
6459
 
6539
6460
  Keyword Args:
6540
- balance_campaign202110_list_request (BalanceCampaign202110ListRequest): The campaigns to append. [optional]
6541
6461
  _return_http_data_only (bool): response data without head status
6542
6462
  code and headers. Default is True.
6543
6463
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -6570,7 +6490,7 @@ class CampaignApi(object):
6570
6490
  async_req (bool): execute request asynchronously
6571
6491
 
6572
6492
  Returns:
6573
- BalanceCampaign202110PagedListResponse
6493
+ ValueResourceOutcomeOfLineItemBudgetOverrides
6574
6494
  If the method is called asynchronously, returns the request
6575
6495
  thread.
6576
6496
  """
@@ -6599,29 +6519,29 @@ class CampaignApi(object):
6599
6519
  '_content_type')
6600
6520
  kwargs['_host_index'] = kwargs.get('_host_index')
6601
6521
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
6602
- kwargs['balance_id'] = \
6603
- balance_id
6604
- return self.post_api202110_external_balance_campaigns_append_by_balance_id_endpoint.call_with_http_info(**kwargs)
6522
+ kwargs['line_item_id'] = \
6523
+ line_item_id
6524
+ return self.get_line_item_budget_overrides_endpoint.call_with_http_info(**kwargs)
6605
6525
 
6606
- def post_api202110_external_balance_campaigns_delete_by_balance_id(
6526
+ def pause_promoted_products(
6607
6527
  self,
6608
- balance_id,
6528
+ line_item_id,
6609
6529
  **kwargs
6610
6530
  ):
6611
- """post_api202110_external_balance_campaigns_delete_by_balance_id # noqa: E501
6531
+ """pause_promoted_products # noqa: E501
6612
6532
 
6613
- Removes one or more campaigns on the specified balance # noqa: E501
6533
+ Pause a collection of promoted products associated with a line item # noqa: E501
6614
6534
  This method makes a synchronous HTTP request by default. To make an
6615
6535
  asynchronous HTTP request, please pass async_req=True
6616
6536
 
6617
- >>> thread = api.post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id, async_req=True)
6537
+ >>> thread = api.pause_promoted_products(line_item_id, async_req=True)
6618
6538
  >>> result = thread.get()
6619
6539
 
6620
6540
  Args:
6621
- balance_id (str): The balance to remove campaigns from
6541
+ line_item_id (str): ID of the line item
6622
6542
 
6623
6543
  Keyword Args:
6624
- balance_campaign202110_list_request (BalanceCampaign202110ListRequest): The campaigns to append. [optional]
6544
+ promoted_product_resource_collection_input (PromotedProductResourceCollectionInput): Request body whose {data} contains an array of promoted products.. [optional]
6625
6545
  _return_http_data_only (bool): response data without head status
6626
6546
  code and headers. Default is True.
6627
6547
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -6654,7 +6574,7 @@ class CampaignApi(object):
6654
6574
  async_req (bool): execute request asynchronously
6655
6575
 
6656
6576
  Returns:
6657
- BalanceCampaign202110PagedListResponse
6577
+ None
6658
6578
  If the method is called asynchronously, returns the request
6659
6579
  thread.
6660
6580
  """
@@ -6683,29 +6603,29 @@ class CampaignApi(object):
6683
6603
  '_content_type')
6684
6604
  kwargs['_host_index'] = kwargs.get('_host_index')
6685
6605
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
6686
- kwargs['balance_id'] = \
6687
- balance_id
6688
- return self.post_api202110_external_balance_campaigns_delete_by_balance_id_endpoint.call_with_http_info(**kwargs)
6606
+ kwargs['line_item_id'] = \
6607
+ line_item_id
6608
+ return self.pause_promoted_products_endpoint.call_with_http_info(**kwargs)
6689
6609
 
6690
- def post_api202110_external_campaign_preferred_line_items_by_campaign_id(
6610
+ def post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(
6691
6611
  self,
6692
- campaign_id,
6612
+ line_item_id,
6693
6613
  **kwargs
6694
6614
  ):
6695
- """post_api202110_external_campaign_preferred_line_items_by_campaign_id # noqa: E501
6615
+ """post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id # noqa: E501
6696
6616
 
6697
- Creates a new preferred line item with the specified settings # noqa: E501
6617
+ This endpoint appends one or more keywords to targeting on the specified line item. The resulting state of the keyword target is returned. # noqa: E501
6698
6618
  This method makes a synchronous HTTP request by default. To make an
6699
6619
  asynchronous HTTP request, please pass async_req=True
6700
6620
 
6701
- >>> thread = api.post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, async_req=True)
6621
+ >>> thread = api.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id(line_item_id, async_req=True)
6702
6622
  >>> result = thread.get()
6703
6623
 
6704
6624
  Args:
6705
- campaign_id (str): The given campaign id
6625
+ line_item_id (str): The line item to interact with
6706
6626
 
6707
6627
  Keyword Args:
6708
- preferred_line_item_create_model202110_request (PreferredLineItemCreateModel202110Request): The line item settings to create a line item with. [optional]
6628
+ keyword_target202110_request (KeywordTarget202110Request): . [optional]
6709
6629
  _return_http_data_only (bool): response data without head status
6710
6630
  code and headers. Default is True.
6711
6631
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -6738,7 +6658,7 @@ class CampaignApi(object):
6738
6658
  async_req (bool): execute request asynchronously
6739
6659
 
6740
6660
  Returns:
6741
- PreferredLineItem202110Response
6661
+ KeywordTarget202110Response
6742
6662
  If the method is called asynchronously, returns the request
6743
6663
  thread.
6744
6664
  """
@@ -6767,29 +6687,29 @@ class CampaignApi(object):
6767
6687
  '_content_type')
6768
6688
  kwargs['_host_index'] = kwargs.get('_host_index')
6769
6689
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
6770
- kwargs['campaign_id'] = \
6771
- campaign_id
6772
- return self.post_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs)
6690
+ kwargs['line_item_id'] = \
6691
+ line_item_id
6692
+ return self.post_api202110_external_auction_line_item_targeting_keywords_append_by_line_item_id_endpoint.call_with_http_info(**kwargs)
6773
6693
 
6774
- def post_api202110_external_line_item_products_append_by_line_item_id(
6694
+ def post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(
6775
6695
  self,
6776
6696
  line_item_id,
6777
6697
  **kwargs
6778
6698
  ):
6779
- """post_api202110_external_line_item_products_append_by_line_item_id # noqa: E501
6699
+ """post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id # noqa: E501
6780
6700
 
6781
- This endpoint appends one or more products to promote on the specified line item. The resulting state of the line item is returned. # noqa: E501
6701
+ This endpoint removes one or more keywords from targeting on the specified line item. The resulting state of the keyword target is returned. # noqa: E501
6782
6702
  This method makes a synchronous HTTP request by default. To make an
6783
6703
  asynchronous HTTP request, please pass async_req=True
6784
6704
 
6785
- >>> thread = api.post_api202110_external_line_item_products_append_by_line_item_id(line_item_id, async_req=True)
6705
+ >>> thread = api.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id(line_item_id, async_req=True)
6786
6706
  >>> result = thread.get()
6787
6707
 
6788
6708
  Args:
6789
6709
  line_item_id (str): The line item to interact with
6790
6710
 
6791
6711
  Keyword Args:
6792
- promoted_product202110_list_request (PromotedProduct202110ListRequest): the products to append to this line item. [optional]
6712
+ keyword_target202110_request (KeywordTarget202110Request): . [optional]
6793
6713
  _return_http_data_only (bool): response data without head status
6794
6714
  code and headers. Default is True.
6795
6715
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -6822,7 +6742,7 @@ class CampaignApi(object):
6822
6742
  async_req (bool): execute request asynchronously
6823
6743
 
6824
6744
  Returns:
6825
- PromotedProduct202110PagedListResponse
6745
+ KeywordTarget202110Response
6826
6746
  If the method is called asynchronously, returns the request
6827
6747
  thread.
6828
6748
  """
@@ -6853,27 +6773,27 @@ class CampaignApi(object):
6853
6773
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
6854
6774
  kwargs['line_item_id'] = \
6855
6775
  line_item_id
6856
- return self.post_api202110_external_line_item_products_append_by_line_item_id_endpoint.call_with_http_info(**kwargs)
6776
+ return self.post_api202110_external_auction_line_item_targeting_keywords_delete_by_line_item_id_endpoint.call_with_http_info(**kwargs)
6857
6777
 
6858
- def post_api202110_external_line_item_products_delete_by_line_item_id(
6778
+ def post_api202110_external_balance_campaigns_append_by_balance_id(
6859
6779
  self,
6860
- line_item_id,
6780
+ balance_id,
6861
6781
  **kwargs
6862
6782
  ):
6863
- """post_api202110_external_line_item_products_delete_by_line_item_id # noqa: E501
6783
+ """post_api202110_external_balance_campaigns_append_by_balance_id # noqa: E501
6864
6784
 
6865
- This endpoint removes one or more products from promotion on the specified line item. The resulting state of the line item is returned. # noqa: E501
6785
+ appends one or more campaigns to the specified balance # noqa: E501
6866
6786
  This method makes a synchronous HTTP request by default. To make an
6867
6787
  asynchronous HTTP request, please pass async_req=True
6868
6788
 
6869
- >>> thread = api.post_api202110_external_line_item_products_delete_by_line_item_id(line_item_id, async_req=True)
6789
+ >>> thread = api.post_api202110_external_balance_campaigns_append_by_balance_id(balance_id, async_req=True)
6870
6790
  >>> result = thread.get()
6871
6791
 
6872
6792
  Args:
6873
- line_item_id (str): The line item to interact with
6793
+ balance_id (str): The balance to add campaigns from
6874
6794
 
6875
6795
  Keyword Args:
6876
- promoted_product202110_list_request (PromotedProduct202110ListRequest): . [optional]
6796
+ balance_campaign202110_list_request (BalanceCampaign202110ListRequest): The campaigns to append. [optional]
6877
6797
  _return_http_data_only (bool): response data without head status
6878
6798
  code and headers. Default is True.
6879
6799
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -6906,7 +6826,7 @@ class CampaignApi(object):
6906
6826
  async_req (bool): execute request asynchronously
6907
6827
 
6908
6828
  Returns:
6909
- PromotedProduct202110PagedListResponse
6829
+ BalanceCampaign202110PagedListResponse
6910
6830
  If the method is called asynchronously, returns the request
6911
6831
  thread.
6912
6832
  """
@@ -6935,29 +6855,29 @@ class CampaignApi(object):
6935
6855
  '_content_type')
6936
6856
  kwargs['_host_index'] = kwargs.get('_host_index')
6937
6857
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
6938
- kwargs['line_item_id'] = \
6939
- line_item_id
6940
- return self.post_api202110_external_line_item_products_delete_by_line_item_id_endpoint.call_with_http_info(**kwargs)
6858
+ kwargs['balance_id'] = \
6859
+ balance_id
6860
+ return self.post_api202110_external_balance_campaigns_append_by_balance_id_endpoint.call_with_http_info(**kwargs)
6941
6861
 
6942
- def post_api202110_external_line_item_products_pause_by_line_item_id(
6862
+ def post_api202110_external_balance_campaigns_delete_by_balance_id(
6943
6863
  self,
6944
- line_item_id,
6864
+ balance_id,
6945
6865
  **kwargs
6946
6866
  ):
6947
- """post_api202110_external_line_item_products_pause_by_line_item_id # noqa: E501
6867
+ """post_api202110_external_balance_campaigns_delete_by_balance_id # noqa: E501
6948
6868
 
6949
- This endpoint pauses one or more promoted products on a specified line item. # noqa: E501
6869
+ Removes one or more campaigns on the specified balance # noqa: E501
6950
6870
  This method makes a synchronous HTTP request by default. To make an
6951
6871
  asynchronous HTTP request, please pass async_req=True
6952
6872
 
6953
- >>> thread = api.post_api202110_external_line_item_products_pause_by_line_item_id(line_item_id, async_req=True)
6873
+ >>> thread = api.post_api202110_external_balance_campaigns_delete_by_balance_id(balance_id, async_req=True)
6954
6874
  >>> result = thread.get()
6955
6875
 
6956
6876
  Args:
6957
- line_item_id (str): The line item to interact with.
6877
+ balance_id (str): The balance to remove campaigns from
6958
6878
 
6959
6879
  Keyword Args:
6960
- promoted_product202110_list_request (PromotedProduct202110ListRequest): The products from which their IDs will be used to pause.. [optional]
6880
+ balance_campaign202110_list_request (BalanceCampaign202110ListRequest): The campaigns to append. [optional]
6961
6881
  _return_http_data_only (bool): response data without head status
6962
6882
  code and headers. Default is True.
6963
6883
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -6990,7 +6910,7 @@ class CampaignApi(object):
6990
6910
  async_req (bool): execute request asynchronously
6991
6911
 
6992
6912
  Returns:
6993
- None
6913
+ BalanceCampaign202110PagedListResponse
6994
6914
  If the method is called asynchronously, returns the request
6995
6915
  thread.
6996
6916
  """
@@ -7019,29 +6939,29 @@ class CampaignApi(object):
7019
6939
  '_content_type')
7020
6940
  kwargs['_host_index'] = kwargs.get('_host_index')
7021
6941
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
7022
- kwargs['line_item_id'] = \
7023
- line_item_id
7024
- return self.post_api202110_external_line_item_products_pause_by_line_item_id_endpoint.call_with_http_info(**kwargs)
6942
+ kwargs['balance_id'] = \
6943
+ balance_id
6944
+ return self.post_api202110_external_balance_campaigns_delete_by_balance_id_endpoint.call_with_http_info(**kwargs)
7025
6945
 
7026
- def post_api202110_external_line_item_products_unpause_by_line_item_id(
6946
+ def post_api202110_external_campaign_preferred_line_items_by_campaign_id(
7027
6947
  self,
7028
- line_item_id,
6948
+ campaign_id,
7029
6949
  **kwargs
7030
6950
  ):
7031
- """post_api202110_external_line_item_products_unpause_by_line_item_id # noqa: E501
6951
+ """post_api202110_external_campaign_preferred_line_items_by_campaign_id # noqa: E501
7032
6952
 
7033
- This endpoint unpauses one or more promoted products on a specified line item. # noqa: E501
6953
+ Creates a new preferred line item with the specified settings # noqa: E501
7034
6954
  This method makes a synchronous HTTP request by default. To make an
7035
6955
  asynchronous HTTP request, please pass async_req=True
7036
6956
 
7037
- >>> thread = api.post_api202110_external_line_item_products_unpause_by_line_item_id(line_item_id, async_req=True)
6957
+ >>> thread = api.post_api202110_external_campaign_preferred_line_items_by_campaign_id(campaign_id, async_req=True)
7038
6958
  >>> result = thread.get()
7039
6959
 
7040
6960
  Args:
7041
- line_item_id (str): The line item to interact with.
6961
+ campaign_id (str): The given campaign id
7042
6962
 
7043
6963
  Keyword Args:
7044
- promoted_product202110_list_request (PromotedProduct202110ListRequest): The products from which their IDs will be used to unpause.. [optional]
6964
+ preferred_line_item_create_model202110_request (PreferredLineItemCreateModel202110Request): The line item settings to create a line item with. [optional]
7045
6965
  _return_http_data_only (bool): response data without head status
7046
6966
  code and headers. Default is True.
7047
6967
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -7074,7 +6994,7 @@ class CampaignApi(object):
7074
6994
  async_req (bool): execute request asynchronously
7075
6995
 
7076
6996
  Returns:
7077
- None
6997
+ PreferredLineItem202110Response
7078
6998
  If the method is called asynchronously, returns the request
7079
6999
  thread.
7080
7000
  """
@@ -7103,9 +7023,9 @@ class CampaignApi(object):
7103
7023
  '_content_type')
7104
7024
  kwargs['_host_index'] = kwargs.get('_host_index')
7105
7025
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
7106
- kwargs['line_item_id'] = \
7107
- line_item_id
7108
- return self.post_api202110_external_line_item_products_unpause_by_line_item_id_endpoint.call_with_http_info(**kwargs)
7026
+ kwargs['campaign_id'] = \
7027
+ campaign_id
7028
+ return self.post_api202110_external_campaign_preferred_line_items_by_campaign_id_endpoint.call_with_http_info(**kwargs)
7109
7029
 
7110
7030
  def post_api202110_external_preferred_line_item_targeting_add_to_basket_append_by_line_item_id(
7111
7031
  self,
@@ -8874,6 +8794,90 @@ class CampaignApi(object):
8874
8794
  id
8875
8795
  return self.submit_proposal_endpoint.call_with_http_info(**kwargs)
8876
8796
 
8797
+ def unpause_promoted_products(
8798
+ self,
8799
+ line_item_id,
8800
+ **kwargs
8801
+ ):
8802
+ """unpause_promoted_products # noqa: E501
8803
+
8804
+ Un-pause a collection of promoted products associated with a line item # noqa: E501
8805
+ This method makes a synchronous HTTP request by default. To make an
8806
+ asynchronous HTTP request, please pass async_req=True
8807
+
8808
+ >>> thread = api.unpause_promoted_products(line_item_id, async_req=True)
8809
+ >>> result = thread.get()
8810
+
8811
+ Args:
8812
+ line_item_id (str): ID of the line item
8813
+
8814
+ Keyword Args:
8815
+ promoted_product_resource_collection_input (PromotedProductResourceCollectionInput): Request body whose {data} contains an array of promoted products.. [optional]
8816
+ _return_http_data_only (bool): response data without head status
8817
+ code and headers. Default is True.
8818
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
8819
+ will be returned without reading/decoding response data.
8820
+ Default is True.
8821
+ _request_timeout (int/float/tuple): timeout setting for this request. If
8822
+ one number provided, it will be total request timeout. It can also
8823
+ be a pair (tuple) of (connection, read) timeouts.
8824
+ Default is None.
8825
+ _check_input_type (bool): specifies if type checking
8826
+ should be done one the data sent to the server.
8827
+ Default is True.
8828
+ _check_return_type (bool): specifies if type checking
8829
+ should be done one the data received from the server.
8830
+ Default is True.
8831
+ _spec_property_naming (bool): True if the variable names in the input data
8832
+ are serialized names, as specified in the OpenAPI document.
8833
+ False if the variable names in the input data
8834
+ are pythonic names, e.g. snake case (default)
8835
+ _content_type (str/None): force body content-type.
8836
+ Default is None and content-type will be predicted by allowed
8837
+ content-types and body.
8838
+ _host_index (int/None): specifies the index of the server
8839
+ that we want to use.
8840
+ Default is read from the configuration.
8841
+ _request_auths (list): set to override the auth_settings for an a single
8842
+ request; this effectively ignores the authentication
8843
+ in the spec for a single request.
8844
+ Default is None
8845
+ async_req (bool): execute request asynchronously
8846
+
8847
+ Returns:
8848
+ None
8849
+ If the method is called asynchronously, returns the request
8850
+ thread.
8851
+ """
8852
+ kwargs['async_req'] = kwargs.get(
8853
+ 'async_req', False
8854
+ )
8855
+ kwargs['_return_http_data_only'] = kwargs.get(
8856
+ '_return_http_data_only', True
8857
+ )
8858
+ kwargs['_preload_content'] = kwargs.get(
8859
+ '_preload_content', True
8860
+ )
8861
+ kwargs['_request_timeout'] = kwargs.get(
8862
+ '_request_timeout', None
8863
+ )
8864
+ kwargs['_check_input_type'] = kwargs.get(
8865
+ '_check_input_type', True
8866
+ )
8867
+ kwargs['_check_return_type'] = kwargs.get(
8868
+ '_check_return_type', True
8869
+ )
8870
+ kwargs['_spec_property_naming'] = kwargs.get(
8871
+ '_spec_property_naming', False
8872
+ )
8873
+ kwargs['_content_type'] = kwargs.get(
8874
+ '_content_type')
8875
+ kwargs['_host_index'] = kwargs.get('_host_index')
8876
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
8877
+ kwargs['line_item_id'] = \
8878
+ line_item_id
8879
+ return self.unpause_promoted_products_endpoint.call_with_http_info(**kwargs)
8880
+
8877
8881
  def update_campaign_budget_overrides(
8878
8882
  self,
8879
8883
  campaign_id,