criteo-api-retailmedia-sdk 0.0.250317__py3-none-any.whl → 0.0.250327__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 (30) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/campaign_api.py +635 -41
  3. criteo_api_retailmedia_preview/api_client.py +1 -1
  4. criteo_api_retailmedia_preview/configuration.py +1 -1
  5. criteo_api_retailmedia_preview/model/brand_catalog_request_v2.py +284 -0
  6. criteo_api_retailmedia_preview/model/{external_catalog_status.py → catalog_status_v2.py} +15 -29
  7. criteo_api_retailmedia_preview/model/catalog_status_v2_response.py +281 -0
  8. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_line_item_keyword_review_report_and_metadata.py +280 -0
  9. criteo_api_retailmedia_preview/model/entity_resource_line_item_keyword_review_report.py +270 -0
  10. criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → json_api_body_without_id_of_brand_catalog_request_v2_and_brand_catalog_request_v2.py} +10 -16
  11. criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_seller_catalog_request_and_seller_catalog_request.py → json_api_body_without_id_of_seller_catalog_request_v2_and_seller_catalog_request_v2.py} +8 -8
  12. criteo_api_retailmedia_preview/model/{json_api_request_of_seller_catalog_request.py → json_api_request_of_brand_catalog_request_v2.py} +8 -8
  13. criteo_api_retailmedia_preview/model/{seller_catalog_request.py → json_api_request_of_seller_catalog_request_v2.py} +9 -9
  14. criteo_api_retailmedia_preview/model/line_item_keyword_review_report.py +311 -0
  15. criteo_api_retailmedia_preview/model/partner_billing_report_status_v1.py +4 -4
  16. criteo_api_retailmedia_preview/model/resource_of_catalog_status_v2.py +277 -0
  17. criteo_api_retailmedia_preview/model/retail_media_keywords_review.py +271 -0
  18. criteo_api_retailmedia_preview/model/retail_media_keywords_review_result.py +271 -0
  19. criteo_api_retailmedia_preview/model/review_set_state.py +278 -0
  20. criteo_api_retailmedia_preview/model/seller_catalog_request_v2.py +286 -0
  21. criteo_api_retailmedia_preview/model/{seller_identifier.py → seller_identifier_v2.py} +3 -3
  22. criteo_api_retailmedia_preview/model/value_resource_input_retail_media_keywords_review.py +262 -0
  23. criteo_api_retailmedia_preview/model/{json_api_single_response_of_catalog_status.py → value_resource_outcome_retail_media_keywords_review_result.py} +22 -35
  24. criteo_api_retailmedia_preview/model/value_resource_retail_media_keywords_review.py +266 -0
  25. criteo_api_retailmedia_preview/model/value_resource_retail_media_keywords_review_result.py +266 -0
  26. criteo_api_retailmedia_preview/models/__init__.py +20 -7
  27. {criteo_api_retailmedia_sdk-0.0.250317.dist-info → criteo_api_retailmedia_sdk-0.0.250327.dist-info}/METADATA +4 -4
  28. {criteo_api_retailmedia_sdk-0.0.250317.dist-info → criteo_api_retailmedia_sdk-0.0.250327.dist-info}/RECORD +30 -17
  29. {criteo_api_retailmedia_sdk-0.0.250317.dist-info → criteo_api_retailmedia_sdk-0.0.250327.dist-info}/WHEEL +1 -1
  30. {criteo_api_retailmedia_sdk-0.0.250317.dist-info → criteo_api_retailmedia_sdk-0.0.250327.dist-info}/top_level.txt +0 -0
@@ -23,14 +23,16 @@ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
23
23
  )
24
24
  from criteo_api_retailmedia_preview.model.add_remove_keywords_model_request import AddRemoveKeywordsModelRequest
25
25
  from criteo_api_retailmedia_preview.model.brand_preview_list_response import BrandPreviewListResponse
26
+ from criteo_api_retailmedia_preview.model.catalog_status_v2_response import CatalogStatusV2Response
26
27
  from criteo_api_retailmedia_preview.model.cpc_rate_card_preview_response import CpcRateCardPreviewResponse
27
28
  from criteo_api_retailmedia_preview.model.creative2_list_response import Creative2ListResponse
28
29
  from criteo_api_retailmedia_preview.model.creative2_response import Creative2Response
29
30
  from criteo_api_retailmedia_preview.model.creative_create_model2 import CreativeCreateModel2
30
31
  from criteo_api_retailmedia_preview.model.creative_update_model2 import CreativeUpdateModel2
31
32
  from criteo_api_retailmedia_preview.model.entity_resource_collection_outcome_brand_id_search_result_paging_offset_limit_metadata import EntityResourceCollectionOutcomeBrandIdSearchResultPagingOffsetLimitMetadata
32
- from criteo_api_retailmedia_preview.model.json_api_request_of_seller_catalog_request import JsonApiRequestOfSellerCatalogRequest
33
- from criteo_api_retailmedia_preview.model.json_api_single_response_of_catalog_status import JsonApiSingleResponseOfCatalogStatus
33
+ from criteo_api_retailmedia_preview.model.entity_resource_collection_outcome_line_item_keyword_review_report_and_metadata import EntityResourceCollectionOutcomeLineItemKeywordReviewReportAndMetadata
34
+ from criteo_api_retailmedia_preview.model.json_api_request_of_brand_catalog_request_v2 import JsonApiRequestOfBrandCatalogRequestV2
35
+ from criteo_api_retailmedia_preview.model.json_api_request_of_seller_catalog_request_v2 import JsonApiRequestOfSellerCatalogRequestV2
34
36
  from criteo_api_retailmedia_preview.model.json_api_single_response_of_line_item_bid_multipliers_v2 import JsonApiSingleResponseOfLineItemBidMultipliersV2
35
37
  from criteo_api_retailmedia_preview.model.keywords_model_response import KeywordsModelResponse
36
38
  from criteo_api_retailmedia_preview.model.line_item_bid_multipliers_v2_request import LineItemBidMultipliersV2Request
@@ -57,8 +59,10 @@ from criteo_api_retailmedia_preview.model.sku_slim_data_preview_list_response im
57
59
  from criteo_api_retailmedia_preview.model.sku_slim_data_v2_list_response import SkuSlimDataV2ListResponse
58
60
  from criteo_api_retailmedia_preview.model.value_resource_input_brand_id_search_request import ValueResourceInputBrandIdSearchRequest
59
61
  from criteo_api_retailmedia_preview.model.value_resource_input_cpc_min_bids_request import ValueResourceInputCpcMinBidsRequest
62
+ from criteo_api_retailmedia_preview.model.value_resource_input_retail_media_keywords_review import ValueResourceInputRetailMediaKeywordsReview
60
63
  from criteo_api_retailmedia_preview.model.value_resource_outcome_cpc_min_bids_response import ValueResourceOutcomeCpcMinBidsResponse
61
64
  from criteo_api_retailmedia_preview.model.value_resource_outcome_of_recommended_keywords_result import ValueResourceOutcomeOfRecommendedKeywordsResult
65
+ from criteo_api_retailmedia_preview.model.value_resource_outcome_retail_media_keywords_review_result import ValueResourceOutcomeRetailMediaKeywordsReviewResult
62
66
 
63
67
 
64
68
  class CampaignApi(object):
@@ -531,6 +535,60 @@ class CampaignApi(object):
531
535
  },
532
536
  api_client=api_client
533
537
  )
538
+ self.get_api_external_v2_catalog_status_by_catalog_id_endpoint = _Endpoint(
539
+ settings={
540
+ 'response_type': (CatalogStatusV2Response,),
541
+ 'auth': [
542
+ 'oauth',
543
+ 'oauth'
544
+ ],
545
+ 'endpoint_path': '/preview/retail-media/catalogs/{catalogId}/status',
546
+ 'operation_id': 'get_api_external_v2_catalog_status_by_catalog_id',
547
+ 'http_method': 'GET',
548
+ 'servers': None,
549
+ },
550
+ params_map={
551
+ 'all': [
552
+ 'catalog_id',
553
+ ],
554
+ 'required': [
555
+ 'catalog_id',
556
+ ],
557
+ 'nullable': [
558
+ ],
559
+ 'enum': [
560
+ ],
561
+ 'validation': [
562
+ ]
563
+ },
564
+ root_map={
565
+ 'validations': {
566
+ },
567
+ 'allowed_values': {
568
+ },
569
+ 'openapi_types': {
570
+ 'catalog_id':
571
+ (str,),
572
+ },
573
+ 'attribute_map': {
574
+ 'catalog_id': 'catalogId',
575
+ },
576
+ 'location_map': {
577
+ 'catalog_id': 'path',
578
+ },
579
+ 'collection_format_map': {
580
+ }
581
+ },
582
+ headers_map={
583
+ 'accept': [
584
+ 'text/plain',
585
+ 'application/json',
586
+ 'text/json'
587
+ ],
588
+ 'content_type': [],
589
+ },
590
+ api_client=api_client
591
+ )
534
592
  self.get_api_v1_external_retailer_brands_by_retailer_id_endpoint = _Endpoint(
535
593
  settings={
536
594
  'response_type': (BrandPreviewListResponse,),
@@ -1124,6 +1182,82 @@ class CampaignApi(object):
1124
1182
  },
1125
1183
  api_client=api_client
1126
1184
  )
1185
+ self.in_review_report_v1_endpoint = _Endpoint(
1186
+ settings={
1187
+ 'response_type': (EntityResourceCollectionOutcomeLineItemKeywordReviewReportAndMetadata,),
1188
+ 'auth': [
1189
+ 'oauth',
1190
+ 'oauth'
1191
+ ],
1192
+ 'endpoint_path': '/preview/retail-media/accounts/{account-id}/keywords/in-review-report',
1193
+ 'operation_id': 'in_review_report_v1',
1194
+ 'http_method': 'GET',
1195
+ 'servers': None,
1196
+ },
1197
+ params_map={
1198
+ 'all': [
1199
+ 'account_id',
1200
+ 'offset',
1201
+ 'limit',
1202
+ ],
1203
+ 'required': [
1204
+ 'account_id',
1205
+ ],
1206
+ 'nullable': [
1207
+ ],
1208
+ 'enum': [
1209
+ ],
1210
+ 'validation': [
1211
+ 'offset',
1212
+ 'limit',
1213
+ ]
1214
+ },
1215
+ root_map={
1216
+ 'validations': {
1217
+ ('offset',): {
1218
+
1219
+ 'inclusive_maximum': 2147483647,
1220
+ 'inclusive_minimum': 0,
1221
+ },
1222
+ ('limit',): {
1223
+
1224
+ 'inclusive_maximum': 50,
1225
+ 'inclusive_minimum': 1,
1226
+ },
1227
+ },
1228
+ 'allowed_values': {
1229
+ },
1230
+ 'openapi_types': {
1231
+ 'account_id':
1232
+ (int,),
1233
+ 'offset':
1234
+ (int,),
1235
+ 'limit':
1236
+ (int,),
1237
+ },
1238
+ 'attribute_map': {
1239
+ 'account_id': 'account-id',
1240
+ 'offset': 'offset',
1241
+ 'limit': 'limit',
1242
+ },
1243
+ 'location_map': {
1244
+ 'account_id': 'path',
1245
+ 'offset': 'query',
1246
+ 'limit': 'query',
1247
+ },
1248
+ 'collection_format_map': {
1249
+ }
1250
+ },
1251
+ headers_map={
1252
+ 'accept': [
1253
+ 'text/plain',
1254
+ 'application/json',
1255
+ 'text/json'
1256
+ ],
1257
+ 'content_type': [],
1258
+ },
1259
+ api_client=api_client
1260
+ )
1127
1261
  self.pause_promoted_products_endpoint = _Endpoint(
1128
1262
  settings={
1129
1263
  'response_type': None,
@@ -1299,28 +1433,89 @@ class CampaignApi(object):
1299
1433
  },
1300
1434
  api_client=api_client
1301
1435
  )
1302
- self.post_api_v1_external_account_catalogs_sellers_by_account_id_endpoint = _Endpoint(
1436
+ self.post_api_external_v2_account_brand_catalog_export_by_account_id_endpoint = _Endpoint(
1437
+ settings={
1438
+ 'response_type': (CatalogStatusV2Response,),
1439
+ 'auth': [
1440
+ 'oauth',
1441
+ 'oauth'
1442
+ ],
1443
+ 'endpoint_path': '/preview/retail-media/accounts/{accountId}/brand-catalog-export',
1444
+ 'operation_id': 'post_api_external_v2_account_brand_catalog_export_by_account_id',
1445
+ 'http_method': 'POST',
1446
+ 'servers': None,
1447
+ },
1448
+ params_map={
1449
+ 'all': [
1450
+ 'account_id',
1451
+ 'json_api_request_of_brand_catalog_request_v2',
1452
+ ],
1453
+ 'required': [
1454
+ 'account_id',
1455
+ ],
1456
+ 'nullable': [
1457
+ 'json_api_request_of_brand_catalog_request_v2',
1458
+ ],
1459
+ 'enum': [
1460
+ ],
1461
+ 'validation': [
1462
+ ]
1463
+ },
1464
+ root_map={
1465
+ 'validations': {
1466
+ },
1467
+ 'allowed_values': {
1468
+ },
1469
+ 'openapi_types': {
1470
+ 'account_id':
1471
+ (str,),
1472
+ 'json_api_request_of_brand_catalog_request_v2':
1473
+ (JsonApiRequestOfBrandCatalogRequestV2,),
1474
+ },
1475
+ 'attribute_map': {
1476
+ 'account_id': 'accountId',
1477
+ },
1478
+ 'location_map': {
1479
+ 'account_id': 'path',
1480
+ 'json_api_request_of_brand_catalog_request_v2': 'body',
1481
+ },
1482
+ 'collection_format_map': {
1483
+ }
1484
+ },
1485
+ headers_map={
1486
+ 'accept': [
1487
+ 'text/plain',
1488
+ 'application/json',
1489
+ 'text/json'
1490
+ ],
1491
+ 'content_type': [
1492
+ 'application/json'
1493
+ ]
1494
+ },
1495
+ api_client=api_client
1496
+ )
1497
+ self.post_api_external_v2_account_seller_catalog_export_by_account_id_endpoint = _Endpoint(
1303
1498
  settings={
1304
- 'response_type': (JsonApiSingleResponseOfCatalogStatus,),
1499
+ 'response_type': (CatalogStatusV2Response,),
1305
1500
  'auth': [
1306
1501
  'oauth',
1307
1502
  'oauth'
1308
1503
  ],
1309
- 'endpoint_path': '/preview/retail-media/accounts/{accountId}/catalogs/sellers',
1310
- 'operation_id': 'post_api_v1_external_account_catalogs_sellers_by_account_id',
1504
+ 'endpoint_path': '/preview/retail-media/accounts/{accountId}/seller-catalog-export',
1505
+ 'operation_id': 'post_api_external_v2_account_seller_catalog_export_by_account_id',
1311
1506
  'http_method': 'POST',
1312
1507
  'servers': None,
1313
1508
  },
1314
1509
  params_map={
1315
1510
  'all': [
1316
1511
  'account_id',
1317
- 'json_api_request_of_seller_catalog_request',
1512
+ 'json_api_request_of_seller_catalog_request_v2',
1318
1513
  ],
1319
1514
  'required': [
1320
1515
  'account_id',
1321
1516
  ],
1322
1517
  'nullable': [
1323
- 'json_api_request_of_seller_catalog_request',
1518
+ 'json_api_request_of_seller_catalog_request_v2',
1324
1519
  ],
1325
1520
  'enum': [
1326
1521
  ],
@@ -1335,15 +1530,15 @@ class CampaignApi(object):
1335
1530
  'openapi_types': {
1336
1531
  'account_id':
1337
1532
  (str,),
1338
- 'json_api_request_of_seller_catalog_request':
1339
- (JsonApiRequestOfSellerCatalogRequest,),
1533
+ 'json_api_request_of_seller_catalog_request_v2':
1534
+ (JsonApiRequestOfSellerCatalogRequestV2,),
1340
1535
  },
1341
1536
  'attribute_map': {
1342
1537
  'account_id': 'accountId',
1343
1538
  },
1344
1539
  'location_map': {
1345
1540
  'account_id': 'path',
1346
- 'json_api_request_of_seller_catalog_request': 'body',
1541
+ 'json_api_request_of_seller_catalog_request_v2': 'body',
1347
1542
  },
1348
1543
  'collection_format_map': {
1349
1544
  }
@@ -2233,6 +2428,69 @@ class CampaignApi(object):
2233
2428
  },
2234
2429
  api_client=api_client
2235
2430
  )
2431
+ self.update_keyword_reviews_v1_endpoint = _Endpoint(
2432
+ settings={
2433
+ 'response_type': (ValueResourceOutcomeRetailMediaKeywordsReviewResult,),
2434
+ 'auth': [
2435
+ 'oauth',
2436
+ 'oauth'
2437
+ ],
2438
+ 'endpoint_path': '/preview/retail-media/line-items/{line-item-id}/keywords/review',
2439
+ 'operation_id': 'update_keyword_reviews_v1',
2440
+ 'http_method': 'POST',
2441
+ 'servers': None,
2442
+ },
2443
+ params_map={
2444
+ 'all': [
2445
+ 'line_item_id',
2446
+ 'value_resource_input_retail_media_keywords_review',
2447
+ ],
2448
+ 'required': [
2449
+ 'line_item_id',
2450
+ ],
2451
+ 'nullable': [
2452
+ ],
2453
+ 'enum': [
2454
+ ],
2455
+ 'validation': [
2456
+ ]
2457
+ },
2458
+ root_map={
2459
+ 'validations': {
2460
+ },
2461
+ 'allowed_values': {
2462
+ },
2463
+ 'openapi_types': {
2464
+ 'line_item_id':
2465
+ (int,),
2466
+ 'value_resource_input_retail_media_keywords_review':
2467
+ (ValueResourceInputRetailMediaKeywordsReview,),
2468
+ },
2469
+ 'attribute_map': {
2470
+ 'line_item_id': 'line-item-id',
2471
+ },
2472
+ 'location_map': {
2473
+ 'line_item_id': 'path',
2474
+ 'value_resource_input_retail_media_keywords_review': 'body',
2475
+ },
2476
+ 'collection_format_map': {
2477
+ }
2478
+ },
2479
+ headers_map={
2480
+ 'accept': [
2481
+ 'text/plain',
2482
+ 'application/json',
2483
+ 'text/json'
2484
+ ],
2485
+ 'content_type': [
2486
+ 'application/json-patch+json',
2487
+ 'application/json',
2488
+ 'text/json',
2489
+ 'application/*+json'
2490
+ ]
2491
+ },
2492
+ api_client=api_client
2493
+ )
2236
2494
 
2237
2495
  def add_remove_keywords(
2238
2496
  self,
@@ -2912,26 +3170,24 @@ class CampaignApi(object):
2912
3170
  product_button_id
2913
3171
  return self.get_api202210_external_line_item_product_buttons_by_line_item_id_product_button_id_endpoint.call_with_http_info(**kwargs)
2914
3172
 
2915
- def get_api_v1_external_retailer_brands_by_retailer_id(
3173
+ def get_api_external_v2_catalog_status_by_catalog_id(
2916
3174
  self,
2917
- retailer_id,
3175
+ catalog_id,
2918
3176
  **kwargs
2919
3177
  ):
2920
- """get_api_v1_external_retailer_brands_by_retailer_id # noqa: E501
3178
+ """get_api_external_v2_catalog_status_by_catalog_id # noqa: E501
2921
3179
 
2922
- Gets the brands for the given retailer # noqa: E501
3180
+ Check the status of a catalog request. # noqa: E501
2923
3181
  This method makes a synchronous HTTP request by default. To make an
2924
3182
  asynchronous HTTP request, please pass async_req=True
2925
3183
 
2926
- >>> thread = api.get_api_v1_external_retailer_brands_by_retailer_id(retailer_id, async_req=True)
3184
+ >>> thread = api.get_api_external_v2_catalog_status_by_catalog_id(catalog_id, async_req=True)
2927
3185
  >>> result = thread.get()
2928
3186
 
2929
3187
  Args:
2930
- retailer_id (int): The retailer id for which brands should be fetched.
3188
+ catalog_id (str): A catalog ID returned from an account catalog request.
2931
3189
 
2932
3190
  Keyword Args:
2933
- sku_stock_type_filter (str): Filter to narrow down brands [first-party|third-party|first-and-third-party]. Defaults to first-and-third-party. [optional]
2934
- brand_type (str): Filter to narrow down brands [all|uc|retailer]. Defaults to uc. [optional]
2935
3191
  _return_http_data_only (bool): response data without head status
2936
3192
  code and headers. Default is True.
2937
3193
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -2964,7 +3220,7 @@ class CampaignApi(object):
2964
3220
  async_req (bool): execute request asynchronously
2965
3221
 
2966
3222
  Returns:
2967
- BrandPreviewListResponse
3223
+ CatalogStatusV2Response
2968
3224
  If the method is called asynchronously, returns the request
2969
3225
  thread.
2970
3226
  """
@@ -2993,30 +3249,30 @@ class CampaignApi(object):
2993
3249
  '_content_type')
2994
3250
  kwargs['_host_index'] = kwargs.get('_host_index')
2995
3251
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
2996
- kwargs['retailer_id'] = \
2997
- retailer_id
2998
- return self.get_api_v1_external_retailer_brands_by_retailer_id_endpoint.call_with_http_info(**kwargs)
3252
+ kwargs['catalog_id'] = \
3253
+ catalog_id
3254
+ return self.get_api_external_v2_catalog_status_by_catalog_id_endpoint.call_with_http_info(**kwargs)
2999
3255
 
3000
- def get_api_v1_external_retailer_by_retailer_id_seller_by_seller(
3256
+ def get_api_v1_external_retailer_brands_by_retailer_id(
3001
3257
  self,
3002
3258
  retailer_id,
3003
- seller,
3004
3259
  **kwargs
3005
3260
  ):
3006
- """get_api_v1_external_retailer_by_retailer_id_seller_by_seller # noqa: E501
3261
+ """get_api_v1_external_retailer_brands_by_retailer_id # noqa: E501
3007
3262
 
3008
- Endpoint to get market place seller id and name # noqa: E501
3263
+ Gets the brands for the given retailer # noqa: E501
3009
3264
  This method makes a synchronous HTTP request by default. To make an
3010
3265
  asynchronous HTTP request, please pass async_req=True
3011
3266
 
3012
- >>> thread = api.get_api_v1_external_retailer_by_retailer_id_seller_by_seller(retailer_id, seller, async_req=True)
3267
+ >>> thread = api.get_api_v1_external_retailer_brands_by_retailer_id(retailer_id, async_req=True)
3013
3268
  >>> result = thread.get()
3014
3269
 
3015
3270
  Args:
3016
- retailer_id (int): The retailer id for which seller should be fetched.
3017
- seller (str): The seller id or seller name which should be validated.
3271
+ retailer_id (int): The retailer id for which brands should be fetched.
3018
3272
 
3019
3273
  Keyword Args:
3274
+ sku_stock_type_filter (str): Filter to narrow down brands [first-party|third-party|first-and-third-party]. Defaults to first-and-third-party. [optional]
3275
+ brand_type (str): Filter to narrow down brands [all|uc|retailer]. Defaults to uc. [optional]
3020
3276
  _return_http_data_only (bool): response data without head status
3021
3277
  code and headers. Default is True.
3022
3278
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -3049,7 +3305,7 @@ class CampaignApi(object):
3049
3305
  async_req (bool): execute request asynchronously
3050
3306
 
3051
3307
  Returns:
3052
- SellerPreviewResponse
3308
+ BrandPreviewListResponse
3053
3309
  If the method is called asynchronously, returns the request
3054
3310
  thread.
3055
3311
  """
@@ -3080,11 +3336,96 @@ class CampaignApi(object):
3080
3336
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
3081
3337
  kwargs['retailer_id'] = \
3082
3338
  retailer_id
3083
- kwargs['seller'] = \
3084
- seller
3085
- return self.get_api_v1_external_retailer_by_retailer_id_seller_by_seller_endpoint.call_with_http_info(**kwargs)
3339
+ return self.get_api_v1_external_retailer_brands_by_retailer_id_endpoint.call_with_http_info(**kwargs)
3086
3340
 
3087
- def get_api_v1_external_retailer_category_cpc_rates_by_retailer_id(
3341
+ def get_api_v1_external_retailer_by_retailer_id_seller_by_seller(
3342
+ self,
3343
+ retailer_id,
3344
+ seller,
3345
+ **kwargs
3346
+ ):
3347
+ """get_api_v1_external_retailer_by_retailer_id_seller_by_seller # noqa: E501
3348
+
3349
+ Endpoint to get market place seller id and name # noqa: E501
3350
+ This method makes a synchronous HTTP request by default. To make an
3351
+ asynchronous HTTP request, please pass async_req=True
3352
+
3353
+ >>> thread = api.get_api_v1_external_retailer_by_retailer_id_seller_by_seller(retailer_id, seller, async_req=True)
3354
+ >>> result = thread.get()
3355
+
3356
+ Args:
3357
+ retailer_id (int): The retailer id for which seller should be fetched.
3358
+ seller (str): The seller id or seller name which should be validated.
3359
+
3360
+ Keyword Args:
3361
+ _return_http_data_only (bool): response data without head status
3362
+ code and headers. Default is True.
3363
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
3364
+ will be returned without reading/decoding response data.
3365
+ Default is True.
3366
+ _request_timeout (int/float/tuple): timeout setting for this request. If
3367
+ one number provided, it will be total request timeout. It can also
3368
+ be a pair (tuple) of (connection, read) timeouts.
3369
+ Default is None.
3370
+ _check_input_type (bool): specifies if type checking
3371
+ should be done one the data sent to the server.
3372
+ Default is True.
3373
+ _check_return_type (bool): specifies if type checking
3374
+ should be done one the data received from the server.
3375
+ Default is True.
3376
+ _spec_property_naming (bool): True if the variable names in the input data
3377
+ are serialized names, as specified in the OpenAPI document.
3378
+ False if the variable names in the input data
3379
+ are pythonic names, e.g. snake case (default)
3380
+ _content_type (str/None): force body content-type.
3381
+ Default is None and content-type will be predicted by allowed
3382
+ content-types and body.
3383
+ _host_index (int/None): specifies the index of the server
3384
+ that we want to use.
3385
+ Default is read from the configuration.
3386
+ _request_auths (list): set to override the auth_settings for an a single
3387
+ request; this effectively ignores the authentication
3388
+ in the spec for a single request.
3389
+ Default is None
3390
+ async_req (bool): execute request asynchronously
3391
+
3392
+ Returns:
3393
+ SellerPreviewResponse
3394
+ If the method is called asynchronously, returns the request
3395
+ thread.
3396
+ """
3397
+ kwargs['async_req'] = kwargs.get(
3398
+ 'async_req', False
3399
+ )
3400
+ kwargs['_return_http_data_only'] = kwargs.get(
3401
+ '_return_http_data_only', True
3402
+ )
3403
+ kwargs['_preload_content'] = kwargs.get(
3404
+ '_preload_content', True
3405
+ )
3406
+ kwargs['_request_timeout'] = kwargs.get(
3407
+ '_request_timeout', None
3408
+ )
3409
+ kwargs['_check_input_type'] = kwargs.get(
3410
+ '_check_input_type', True
3411
+ )
3412
+ kwargs['_check_return_type'] = kwargs.get(
3413
+ '_check_return_type', True
3414
+ )
3415
+ kwargs['_spec_property_naming'] = kwargs.get(
3416
+ '_spec_property_naming', False
3417
+ )
3418
+ kwargs['_content_type'] = kwargs.get(
3419
+ '_content_type')
3420
+ kwargs['_host_index'] = kwargs.get('_host_index')
3421
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
3422
+ kwargs['retailer_id'] = \
3423
+ retailer_id
3424
+ kwargs['seller'] = \
3425
+ seller
3426
+ return self.get_api_v1_external_retailer_by_retailer_id_seller_by_seller_endpoint.call_with_http_info(**kwargs)
3427
+
3428
+ def get_api_v1_external_retailer_category_cpc_rates_by_retailer_id(
3088
3429
  self,
3089
3430
  retailer_id,
3090
3431
  **kwargs
@@ -3757,6 +4098,91 @@ class CampaignApi(object):
3757
4098
  external_line_item_id
3758
4099
  return self.get_recommended_keywords_endpoint.call_with_http_info(**kwargs)
3759
4100
 
4101
+ def in_review_report_v1(
4102
+ self,
4103
+ account_id,
4104
+ **kwargs
4105
+ ):
4106
+ """in_review_report_v1 # noqa: E501
4107
+
4108
+ Generate a list of reports for line items which contain one or more actionable keyword reviews # noqa: E501
4109
+ This method makes a synchronous HTTP request by default. To make an
4110
+ asynchronous HTTP request, please pass async_req=True
4111
+
4112
+ >>> thread = api.in_review_report_v1(account_id, async_req=True)
4113
+ >>> result = thread.get()
4114
+
4115
+ Args:
4116
+ account_id (int): The account to generate a report for
4117
+
4118
+ Keyword Args:
4119
+ offset (int): Offset for pagination. [optional] if omitted the server will use the default value of 0
4120
+ limit (int): Number of items per page. [optional] if omitted the server will use the default value of 25
4121
+ _return_http_data_only (bool): response data without head status
4122
+ code and headers. Default is True.
4123
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
4124
+ will be returned without reading/decoding response data.
4125
+ Default is True.
4126
+ _request_timeout (int/float/tuple): timeout setting for this request. If
4127
+ one number provided, it will be total request timeout. It can also
4128
+ be a pair (tuple) of (connection, read) timeouts.
4129
+ Default is None.
4130
+ _check_input_type (bool): specifies if type checking
4131
+ should be done one the data sent to the server.
4132
+ Default is True.
4133
+ _check_return_type (bool): specifies if type checking
4134
+ should be done one the data received from the server.
4135
+ Default is True.
4136
+ _spec_property_naming (bool): True if the variable names in the input data
4137
+ are serialized names, as specified in the OpenAPI document.
4138
+ False if the variable names in the input data
4139
+ are pythonic names, e.g. snake case (default)
4140
+ _content_type (str/None): force body content-type.
4141
+ Default is None and content-type will be predicted by allowed
4142
+ content-types and body.
4143
+ _host_index (int/None): specifies the index of the server
4144
+ that we want to use.
4145
+ Default is read from the configuration.
4146
+ _request_auths (list): set to override the auth_settings for an a single
4147
+ request; this effectively ignores the authentication
4148
+ in the spec for a single request.
4149
+ Default is None
4150
+ async_req (bool): execute request asynchronously
4151
+
4152
+ Returns:
4153
+ EntityResourceCollectionOutcomeLineItemKeywordReviewReportAndMetadata
4154
+ If the method is called asynchronously, returns the request
4155
+ thread.
4156
+ """
4157
+ kwargs['async_req'] = kwargs.get(
4158
+ 'async_req', False
4159
+ )
4160
+ kwargs['_return_http_data_only'] = kwargs.get(
4161
+ '_return_http_data_only', True
4162
+ )
4163
+ kwargs['_preload_content'] = kwargs.get(
4164
+ '_preload_content', True
4165
+ )
4166
+ kwargs['_request_timeout'] = kwargs.get(
4167
+ '_request_timeout', None
4168
+ )
4169
+ kwargs['_check_input_type'] = kwargs.get(
4170
+ '_check_input_type', True
4171
+ )
4172
+ kwargs['_check_return_type'] = kwargs.get(
4173
+ '_check_return_type', True
4174
+ )
4175
+ kwargs['_spec_property_naming'] = kwargs.get(
4176
+ '_spec_property_naming', False
4177
+ )
4178
+ kwargs['_content_type'] = kwargs.get(
4179
+ '_content_type')
4180
+ kwargs['_host_index'] = kwargs.get('_host_index')
4181
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
4182
+ kwargs['account_id'] = \
4183
+ account_id
4184
+ return self.in_review_report_v1_endpoint.call_with_http_info(**kwargs)
4185
+
3760
4186
  def pause_promoted_products(
3761
4187
  self,
3762
4188
  line_item_id,
@@ -4012,25 +4438,25 @@ class CampaignApi(object):
4012
4438
  line_item_id
4013
4439
  return self.post_api202210_external_line_item_product_buttons_create_by_line_item_id_endpoint.call_with_http_info(**kwargs)
4014
4440
 
4015
- def post_api_v1_external_account_catalogs_sellers_by_account_id(
4441
+ def post_api_external_v2_account_brand_catalog_export_by_account_id(
4016
4442
  self,
4017
4443
  account_id,
4018
4444
  **kwargs
4019
4445
  ):
4020
- """post_api_v1_external_account_catalogs_sellers_by_account_id # noqa: E501
4446
+ """post_api_external_v2_account_brand_catalog_export_by_account_id # noqa: E501
4021
4447
 
4022
4448
  Create a request for a Catalog available to the indicated account. # noqa: E501
4023
4449
  This method makes a synchronous HTTP request by default. To make an
4024
4450
  asynchronous HTTP request, please pass async_req=True
4025
4451
 
4026
- >>> thread = api.post_api_v1_external_account_catalogs_sellers_by_account_id(account_id, async_req=True)
4452
+ >>> thread = api.post_api_external_v2_account_brand_catalog_export_by_account_id(account_id, async_req=True)
4027
4453
  >>> result = thread.get()
4028
4454
 
4029
4455
  Args:
4030
4456
  account_id (str): The account to request the catalog for.
4031
4457
 
4032
4458
  Keyword Args:
4033
- json_api_request_of_seller_catalog_request (JsonApiRequestOfSellerCatalogRequest): [optional]
4459
+ json_api_request_of_brand_catalog_request_v2 (JsonApiRequestOfBrandCatalogRequestV2): [optional]
4034
4460
  _return_http_data_only (bool): response data without head status
4035
4461
  code and headers. Default is True.
4036
4462
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -4063,7 +4489,7 @@ class CampaignApi(object):
4063
4489
  async_req (bool): execute request asynchronously
4064
4490
 
4065
4491
  Returns:
4066
- JsonApiSingleResponseOfCatalogStatus
4492
+ CatalogStatusV2Response
4067
4493
  If the method is called asynchronously, returns the request
4068
4494
  thread.
4069
4495
  """
@@ -4094,7 +4520,91 @@ class CampaignApi(object):
4094
4520
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
4095
4521
  kwargs['account_id'] = \
4096
4522
  account_id
4097
- return self.post_api_v1_external_account_catalogs_sellers_by_account_id_endpoint.call_with_http_info(**kwargs)
4523
+ return self.post_api_external_v2_account_brand_catalog_export_by_account_id_endpoint.call_with_http_info(**kwargs)
4524
+
4525
+ def post_api_external_v2_account_seller_catalog_export_by_account_id(
4526
+ self,
4527
+ account_id,
4528
+ **kwargs
4529
+ ):
4530
+ """post_api_external_v2_account_seller_catalog_export_by_account_id # noqa: E501
4531
+
4532
+ Create a request for a Catalog available to the indicated account. # noqa: E501
4533
+ This method makes a synchronous HTTP request by default. To make an
4534
+ asynchronous HTTP request, please pass async_req=True
4535
+
4536
+ >>> thread = api.post_api_external_v2_account_seller_catalog_export_by_account_id(account_id, async_req=True)
4537
+ >>> result = thread.get()
4538
+
4539
+ Args:
4540
+ account_id (str): The account to request the catalog for.
4541
+
4542
+ Keyword Args:
4543
+ json_api_request_of_seller_catalog_request_v2 (JsonApiRequestOfSellerCatalogRequestV2): [optional]
4544
+ _return_http_data_only (bool): response data without head status
4545
+ code and headers. Default is True.
4546
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
4547
+ will be returned without reading/decoding response data.
4548
+ Default is True.
4549
+ _request_timeout (int/float/tuple): timeout setting for this request. If
4550
+ one number provided, it will be total request timeout. It can also
4551
+ be a pair (tuple) of (connection, read) timeouts.
4552
+ Default is None.
4553
+ _check_input_type (bool): specifies if type checking
4554
+ should be done one the data sent to the server.
4555
+ Default is True.
4556
+ _check_return_type (bool): specifies if type checking
4557
+ should be done one the data received from the server.
4558
+ Default is True.
4559
+ _spec_property_naming (bool): True if the variable names in the input data
4560
+ are serialized names, as specified in the OpenAPI document.
4561
+ False if the variable names in the input data
4562
+ are pythonic names, e.g. snake case (default)
4563
+ _content_type (str/None): force body content-type.
4564
+ Default is None and content-type will be predicted by allowed
4565
+ content-types and body.
4566
+ _host_index (int/None): specifies the index of the server
4567
+ that we want to use.
4568
+ Default is read from the configuration.
4569
+ _request_auths (list): set to override the auth_settings for an a single
4570
+ request; this effectively ignores the authentication
4571
+ in the spec for a single request.
4572
+ Default is None
4573
+ async_req (bool): execute request asynchronously
4574
+
4575
+ Returns:
4576
+ CatalogStatusV2Response
4577
+ If the method is called asynchronously, returns the request
4578
+ thread.
4579
+ """
4580
+ kwargs['async_req'] = kwargs.get(
4581
+ 'async_req', False
4582
+ )
4583
+ kwargs['_return_http_data_only'] = kwargs.get(
4584
+ '_return_http_data_only', True
4585
+ )
4586
+ kwargs['_preload_content'] = kwargs.get(
4587
+ '_preload_content', True
4588
+ )
4589
+ kwargs['_request_timeout'] = kwargs.get(
4590
+ '_request_timeout', None
4591
+ )
4592
+ kwargs['_check_input_type'] = kwargs.get(
4593
+ '_check_input_type', True
4594
+ )
4595
+ kwargs['_check_return_type'] = kwargs.get(
4596
+ '_check_return_type', True
4597
+ )
4598
+ kwargs['_spec_property_naming'] = kwargs.get(
4599
+ '_spec_property_naming', False
4600
+ )
4601
+ kwargs['_content_type'] = kwargs.get(
4602
+ '_content_type')
4603
+ kwargs['_host_index'] = kwargs.get('_host_index')
4604
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
4605
+ kwargs['account_id'] = \
4606
+ account_id
4607
+ return self.post_api_external_v2_account_seller_catalog_export_by_account_id_endpoint.call_with_http_info(**kwargs)
4098
4608
 
4099
4609
  def post_api_v1_external_catalogs_sku_retrieval(
4100
4610
  self,
@@ -5199,3 +5709,87 @@ class CampaignApi(object):
5199
5709
  line_item_id
5200
5710
  return self.unpause_promoted_products_endpoint.call_with_http_info(**kwargs)
5201
5711
 
5712
+ def update_keyword_reviews_v1(
5713
+ self,
5714
+ line_item_id,
5715
+ **kwargs
5716
+ ):
5717
+ """update_keyword_reviews_v1 # noqa: E501
5718
+
5719
+ Update the status of keyword reviews under a line item # noqa: E501
5720
+ This method makes a synchronous HTTP request by default. To make an
5721
+ asynchronous HTTP request, please pass async_req=True
5722
+
5723
+ >>> thread = api.update_keyword_reviews_v1(line_item_id, async_req=True)
5724
+ >>> result = thread.get()
5725
+
5726
+ Args:
5727
+ line_item_id (int): The line item to update keyword review statuses for
5728
+
5729
+ Keyword Args:
5730
+ value_resource_input_retail_media_keywords_review (ValueResourceInputRetailMediaKeywordsReview): Request object containing a list of Phrase-ReviewState pairs to update. [optional]
5731
+ _return_http_data_only (bool): response data without head status
5732
+ code and headers. Default is True.
5733
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
5734
+ will be returned without reading/decoding response data.
5735
+ Default is True.
5736
+ _request_timeout (int/float/tuple): timeout setting for this request. If
5737
+ one number provided, it will be total request timeout. It can also
5738
+ be a pair (tuple) of (connection, read) timeouts.
5739
+ Default is None.
5740
+ _check_input_type (bool): specifies if type checking
5741
+ should be done one the data sent to the server.
5742
+ Default is True.
5743
+ _check_return_type (bool): specifies if type checking
5744
+ should be done one the data received from the server.
5745
+ Default is True.
5746
+ _spec_property_naming (bool): True if the variable names in the input data
5747
+ are serialized names, as specified in the OpenAPI document.
5748
+ False if the variable names in the input data
5749
+ are pythonic names, e.g. snake case (default)
5750
+ _content_type (str/None): force body content-type.
5751
+ Default is None and content-type will be predicted by allowed
5752
+ content-types and body.
5753
+ _host_index (int/None): specifies the index of the server
5754
+ that we want to use.
5755
+ Default is read from the configuration.
5756
+ _request_auths (list): set to override the auth_settings for an a single
5757
+ request; this effectively ignores the authentication
5758
+ in the spec for a single request.
5759
+ Default is None
5760
+ async_req (bool): execute request asynchronously
5761
+
5762
+ Returns:
5763
+ ValueResourceOutcomeRetailMediaKeywordsReviewResult
5764
+ If the method is called asynchronously, returns the request
5765
+ thread.
5766
+ """
5767
+ kwargs['async_req'] = kwargs.get(
5768
+ 'async_req', False
5769
+ )
5770
+ kwargs['_return_http_data_only'] = kwargs.get(
5771
+ '_return_http_data_only', True
5772
+ )
5773
+ kwargs['_preload_content'] = kwargs.get(
5774
+ '_preload_content', True
5775
+ )
5776
+ kwargs['_request_timeout'] = kwargs.get(
5777
+ '_request_timeout', None
5778
+ )
5779
+ kwargs['_check_input_type'] = kwargs.get(
5780
+ '_check_input_type', True
5781
+ )
5782
+ kwargs['_check_return_type'] = kwargs.get(
5783
+ '_check_return_type', True
5784
+ )
5785
+ kwargs['_spec_property_naming'] = kwargs.get(
5786
+ '_spec_property_naming', False
5787
+ )
5788
+ kwargs['_content_type'] = kwargs.get(
5789
+ '_content_type')
5790
+ kwargs['_host_index'] = kwargs.get('_host_index')
5791
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
5792
+ kwargs['line_item_id'] = \
5793
+ line_item_id
5794
+ return self.update_keyword_reviews_v1_endpoint.call_with_http_info(**kwargs)
5795
+