criteo-api-retailmedia-sdk 2023.10.0.231113__py3-none-any.whl → 2023.10.0.240207__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 (39) hide show
  1. {criteo_api_retailmedia_sdk-2023.10.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.10.0.240207.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2023.10.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.10.0.240207.dist-info}/RECORD +34 -38
  3. {criteo_api_retailmedia_sdk-2023.10.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.10.0.240207.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2023_10/__init__.py +1 -1
  5. criteo_api_retailmedia_v2023_10/api/audience_api.py +113 -100
  6. criteo_api_retailmedia_v2023_10/api/campaign_api.py +16 -171
  7. criteo_api_retailmedia_v2023_10/api_client.py +1 -1
  8. criteo_api_retailmedia_v2023_10/configuration.py +1 -1
  9. criteo_api_retailmedia_v2023_10/model/campaign_attributes_v202301.py +4 -0
  10. criteo_api_retailmedia_v2023_10/model/campaign_v202301.py +4 -0
  11. criteo_api_retailmedia_v2023_10/model/editable_campaign_attributes_v202301.py +4 -0
  12. criteo_api_retailmedia_v2023_10/model/external_account.py +4 -0
  13. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_attributes.py → rm_legacy_audience_create_entity_v1.py} +10 -5
  14. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_v2_data.py → rm_legacy_audience_create_entity_v1_resource.py} +18 -22
  15. criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2_response.py → rm_legacy_audience_create_entity_v1_response.py} +15 -15
  16. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_v2_attributes.py → rm_legacy_audience_create_entity_v2.py} +10 -10
  17. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_body.py → rm_legacy_audience_create_entity_v2_resource.py} +18 -22
  18. criteo_api_retailmedia_v2023_10/model/{common_status_code_response.py → rm_legacy_audience_create_entity_v2_response.py} +16 -10
  19. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_request.py → rm_legacy_audience_create_input_entity_v1.py} +10 -16
  20. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_v2_request.py → rm_legacy_audience_create_input_entity_v2.py} +10 -16
  21. criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2_attributes.py → rm_legacy_audience_get_entity_v1.py} +23 -23
  22. criteo_api_retailmedia_v2023_10/model/{create_retail_media_audience_response.py → rm_legacy_audience_get_entity_v1_list_response.py} +18 -20
  23. criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2.py → rm_legacy_audience_get_entity_v1_resource.py} +24 -29
  24. criteo_api_retailmedia_v2023_10/model/{retail_media_audience_attributes.py → rm_legacy_audience_get_entity_v2.py} +15 -15
  25. criteo_api_retailmedia_v2023_10/model/{retail_media_audience_v2_list_response.py → rm_legacy_audience_get_entity_v2_list_response.py} +17 -29
  26. criteo_api_retailmedia_v2023_10/model/{resource_of_balance202110.py → rm_legacy_audience_get_entity_v2_resource.py} +11 -11
  27. criteo_api_retailmedia_v2023_10/model/rm_legacy_audience_user_behavior_create_v2.py +279 -0
  28. criteo_api_retailmedia_v2023_10/model/{user_behavior_details_v2.py → rm_legacy_audience_user_behavior_details_v2.py} +11 -11
  29. criteo_api_retailmedia_v2023_10/model/{customer_list_details.py → rm_legacy_segment_customer_list.py} +11 -5
  30. criteo_api_retailmedia_v2023_10/model/{retail_media_audience.py → rm_legacy_segment_user_behavior_create_v2.py} +44 -38
  31. criteo_api_retailmedia_v2023_10/model/{user_behavior_details.py → rm_legacy_segment_user_behavior_v1.py} +28 -28
  32. criteo_api_retailmedia_v2023_10/model/{create_user_behavior_segment_v2.py → rm_legacy_segment_user_behavior_v2.py} +7 -5
  33. criteo_api_retailmedia_v2023_10/models/__init__.py +20 -24
  34. criteo_api_retailmedia_v2023_10/model/balance202110_paged_list_response.py +0 -287
  35. criteo_api_retailmedia_v2023_10/model/create_retail_media_audience.py +0 -287
  36. criteo_api_retailmedia_v2023_10/model/create_retail_media_audience_v2.py +0 -287
  37. criteo_api_retailmedia_v2023_10/model/external_balance202110.py +0 -333
  38. criteo_api_retailmedia_v2023_10/model/get_page_of_audiences_by_account_id_response.py +0 -295
  39. {criteo_api_retailmedia_sdk-2023.10.0.231113.dist-info → criteo_api_retailmedia_sdk-2023.10.0.240207.dist-info}/top_level.txt +0 -0
@@ -33,7 +33,6 @@ from criteo_api_retailmedia_v2023_10.model.auction_line_item_update_model_reques
33
33
  from criteo_api_retailmedia_v2023_10.model.audience_ids_update_model202110_request import AudienceIdsUpdateModel202110Request
34
34
  from criteo_api_retailmedia_v2023_10.model.audience_target202110_request import AudienceTarget202110Request
35
35
  from criteo_api_retailmedia_v2023_10.model.audience_target202110_response import AudienceTarget202110Response
36
- from criteo_api_retailmedia_v2023_10.model.balance202110_paged_list_response import Balance202110PagedListResponse
37
36
  from criteo_api_retailmedia_v2023_10.model.balance_campaign202110_list_request import BalanceCampaign202110ListRequest
38
37
  from criteo_api_retailmedia_v2023_10.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse
39
38
  from criteo_api_retailmedia_v2023_10.model.balance_response import BalanceResponse
@@ -318,74 +317,6 @@ class CampaignApi(object):
318
317
  },
319
318
  api_client=api_client
320
319
  )
321
- self.get_api202110_external_account_balances_by_account_id_endpoint = _Endpoint(
322
- settings={
323
- 'response_type': (Balance202110PagedListResponse,),
324
- 'auth': [
325
- 'oauth',
326
- 'oauth'
327
- ],
328
- 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/balances',
329
- 'operation_id': 'get_api202110_external_account_balances_by_account_id',
330
- 'http_method': 'GET',
331
- 'servers': None,
332
- },
333
- params_map={
334
- 'all': [
335
- 'account_id',
336
- 'limit_to_id',
337
- 'page_index',
338
- 'page_size',
339
- ],
340
- 'required': [
341
- 'account_id',
342
- ],
343
- 'nullable': [
344
- ],
345
- 'enum': [
346
- ],
347
- 'validation': [
348
- ]
349
- },
350
- root_map={
351
- 'validations': {
352
- },
353
- 'allowed_values': {
354
- },
355
- 'openapi_types': {
356
- 'account_id':
357
- (str,),
358
- 'limit_to_id':
359
- ([str],),
360
- 'page_index':
361
- (int,),
362
- 'page_size':
363
- (int,),
364
- },
365
- 'attribute_map': {
366
- 'account_id': 'account-id',
367
- 'limit_to_id': 'limitToId',
368
- 'page_index': 'pageIndex',
369
- 'page_size': 'pageSize',
370
- },
371
- 'location_map': {
372
- 'account_id': 'path',
373
- 'limit_to_id': 'query',
374
- 'page_index': 'query',
375
- 'page_size': 'query',
376
- },
377
- 'collection_format_map': {
378
- 'limit_to_id': 'multi',
379
- }
380
- },
381
- headers_map={
382
- 'accept': [
383
- 'application/json'
384
- ],
385
- 'content_type': [],
386
- },
387
- api_client=api_client
388
- )
389
320
  self.get_api202110_external_account_creatives_by_account_id_endpoint = _Endpoint(
390
321
  settings={
391
322
  'response_type': (Creative202110ListResponse,),
@@ -1258,7 +1189,7 @@ class CampaignApi(object):
1258
1189
  'oauth',
1259
1190
  'oauth'
1260
1191
  ],
1261
- 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/campaigns',
1192
+ 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/campaigns',
1262
1193
  'operation_id': 'get_api202301_external_account_campaigns_by_account_id',
1263
1194
  'http_method': 'GET',
1264
1195
  'servers': None,
@@ -1296,7 +1227,7 @@ class CampaignApi(object):
1296
1227
  (int,),
1297
1228
  },
1298
1229
  'attribute_map': {
1299
- 'account_id': 'accountId',
1230
+ 'account_id': 'account-id',
1300
1231
  'limit_to_id': 'limitToId',
1301
1232
  'page_index': 'pageIndex',
1302
1233
  'page_size': 'pageSize',
@@ -1432,7 +1363,7 @@ class CampaignApi(object):
1432
1363
  'oauth',
1433
1364
  'oauth'
1434
1365
  ],
1435
- 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/balances',
1366
+ 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/balances',
1436
1367
  'operation_id': 'get_api_v1_external_account_balances_by_account_id',
1437
1368
  'http_method': 'GET',
1438
1369
  'servers': None,
@@ -1470,7 +1401,7 @@ class CampaignApi(object):
1470
1401
  (int,),
1471
1402
  },
1472
1403
  'attribute_map': {
1473
- 'account_id': 'accountId',
1404
+ 'account_id': 'account-id',
1474
1405
  'limit_to_id': 'limitToId',
1475
1406
  'page_index': 'pageIndex',
1476
1407
  'page_size': 'pageSize',
@@ -1568,7 +1499,7 @@ class CampaignApi(object):
1568
1499
  'oauth',
1569
1500
  'oauth'
1570
1501
  ],
1571
- 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/balances/{balanceId}',
1502
+ 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/balances/{balanceId}',
1572
1503
  'operation_id': 'get_api_v1_external_account_by_account_id_and_balance_id',
1573
1504
  'http_method': 'GET',
1574
1505
  'servers': None,
@@ -1601,7 +1532,7 @@ class CampaignApi(object):
1601
1532
  (str,),
1602
1533
  },
1603
1534
  'attribute_map': {
1604
- 'account_id': 'accountId',
1535
+ 'account_id': 'account-id',
1605
1536
  'balance_id': 'balanceId',
1606
1537
  },
1607
1538
  'location_map': {
@@ -2118,7 +2049,7 @@ class CampaignApi(object):
2118
2049
  'oauth',
2119
2050
  'oauth'
2120
2051
  ],
2121
- 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/balances/{balanceId}',
2052
+ 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/balances/{balanceId}',
2122
2053
  'operation_id': 'patch_api_v1_external_account_by_account_id_and_balance_id',
2123
2054
  'http_method': 'PATCH',
2124
2055
  'servers': None,
@@ -2154,7 +2085,7 @@ class CampaignApi(object):
2154
2085
  (UpdateBalanceModelRequest,),
2155
2086
  },
2156
2087
  'attribute_map': {
2157
- 'account_id': 'accountId',
2088
+ 'account_id': 'account-id',
2158
2089
  'balance_id': 'balanceId',
2159
2090
  },
2160
2091
  'location_map': {
@@ -3164,7 +3095,7 @@ class CampaignApi(object):
3164
3095
  'oauth',
3165
3096
  'oauth'
3166
3097
  ],
3167
- 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/campaigns',
3098
+ 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/campaigns',
3168
3099
  'operation_id': 'post_api202301_external_account_campaigns_by_account_id',
3169
3100
  'http_method': 'POST',
3170
3101
  'servers': None,
@@ -3196,7 +3127,7 @@ class CampaignApi(object):
3196
3127
  (PostCampaignV202301,),
3197
3128
  },
3198
3129
  'attribute_map': {
3199
- 'account_id': 'accountId',
3130
+ 'account_id': 'account-id',
3200
3131
  },
3201
3132
  'location_map': {
3202
3133
  'account_id': 'path',
@@ -3222,7 +3153,7 @@ class CampaignApi(object):
3222
3153
  'oauth',
3223
3154
  'oauth'
3224
3155
  ],
3225
- 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/balances/{balanceId}/add-funds',
3156
+ 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/balances/{balanceId}/add-funds',
3226
3157
  'operation_id': 'post_api_v1_external_account_add_funds_by_account_id_and_balance_id',
3227
3158
  'http_method': 'POST',
3228
3159
  'servers': None,
@@ -3258,7 +3189,7 @@ class CampaignApi(object):
3258
3189
  (AddFundsToBalanceRequest,),
3259
3190
  },
3260
3191
  'attribute_map': {
3261
- 'account_id': 'accountId',
3192
+ 'account_id': 'account-id',
3262
3193
  'balance_id': 'balanceId',
3263
3194
  },
3264
3195
  'location_map': {
@@ -3286,7 +3217,7 @@ class CampaignApi(object):
3286
3217
  'oauth',
3287
3218
  'oauth'
3288
3219
  ],
3289
- 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/balances',
3220
+ 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/balances',
3290
3221
  'operation_id': 'post_api_v1_external_account_balances_by_account_id',
3291
3222
  'http_method': 'POST',
3292
3223
  'servers': None,
@@ -3318,7 +3249,7 @@ class CampaignApi(object):
3318
3249
  (CreateBalanceRequest,),
3319
3250
  },
3320
3251
  'attribute_map': {
3321
- 'account_id': 'accountId',
3252
+ 'account_id': 'account-id',
3322
3253
  },
3323
3254
  'location_map': {
3324
3255
  'account_id': 'path',
@@ -3402,7 +3333,7 @@ class CampaignApi(object):
3402
3333
  'oauth',
3403
3334
  'oauth'
3404
3335
  ],
3405
- 'endpoint_path': '/2023-10/retail-media/accounts/{accountId}/balances/{balanceId}/change-dates',
3336
+ 'endpoint_path': '/2023-10/retail-media/accounts/{account-id}/balances/{balanceId}/change-dates',
3406
3337
  'operation_id': 'post_api_v1_external_account_change_dates_by_account_id_and_balance_id',
3407
3338
  'http_method': 'POST',
3408
3339
  'servers': None,
@@ -3438,7 +3369,7 @@ class CampaignApi(object):
3438
3369
  (ChangeDatesOfBalanceRequest,),
3439
3370
  },
3440
3371
  'attribute_map': {
3441
- 'account_id': 'accountId',
3372
+ 'account_id': 'account-id',
3442
3373
  'balance_id': 'balanceId',
3443
3374
  },
3444
3375
  'location_map': {
@@ -4437,92 +4368,6 @@ class CampaignApi(object):
4437
4368
  id
4438
4369
  return self.fetch_proposal_endpoint.call_with_http_info(**kwargs)
4439
4370
 
4440
- def get_api202110_external_account_balances_by_account_id(
4441
- self,
4442
- account_id,
4443
- **kwargs
4444
- ):
4445
- """get_api202110_external_account_balances_by_account_id # noqa: E501
4446
-
4447
- Gets page of balance objects for the given account id # noqa: E501
4448
- This method makes a synchronous HTTP request by default. To make an
4449
- asynchronous HTTP request, please pass async_req=True
4450
-
4451
- >>> thread = api.get_api202110_external_account_balances_by_account_id(account_id, async_req=True)
4452
- >>> result = thread.get()
4453
-
4454
- Args:
4455
- account_id (str): The account to get balances for
4456
-
4457
- Keyword Args:
4458
- limit_to_id ([str]): The ids that you would like to limit your result set to. [optional]
4459
- page_index (int): The 0 indexed page index you would like to receive given the page size. [optional]
4460
- page_size (int): The maximum number of items you would like to receive in this request. [optional]
4461
- _return_http_data_only (bool): response data without head status
4462
- code and headers. Default is True.
4463
- _preload_content (bool): if False, the urllib3.HTTPResponse object
4464
- will be returned without reading/decoding response data.
4465
- Default is True.
4466
- _request_timeout (int/float/tuple): timeout setting for this request. If
4467
- one number provided, it will be total request timeout. It can also
4468
- be a pair (tuple) of (connection, read) timeouts.
4469
- Default is None.
4470
- _check_input_type (bool): specifies if type checking
4471
- should be done one the data sent to the server.
4472
- Default is True.
4473
- _check_return_type (bool): specifies if type checking
4474
- should be done one the data received from the server.
4475
- Default is True.
4476
- _spec_property_naming (bool): True if the variable names in the input data
4477
- are serialized names, as specified in the OpenAPI document.
4478
- False if the variable names in the input data
4479
- are pythonic names, e.g. snake case (default)
4480
- _content_type (str/None): force body content-type.
4481
- Default is None and content-type will be predicted by allowed
4482
- content-types and body.
4483
- _host_index (int/None): specifies the index of the server
4484
- that we want to use.
4485
- Default is read from the configuration.
4486
- _request_auths (list): set to override the auth_settings for an a single
4487
- request; this effectively ignores the authentication
4488
- in the spec for a single request.
4489
- Default is None
4490
- async_req (bool): execute request asynchronously
4491
-
4492
- Returns:
4493
- Balance202110PagedListResponse
4494
- If the method is called asynchronously, returns the request
4495
- thread.
4496
- """
4497
- kwargs['async_req'] = kwargs.get(
4498
- 'async_req', False
4499
- )
4500
- kwargs['_return_http_data_only'] = kwargs.get(
4501
- '_return_http_data_only', True
4502
- )
4503
- kwargs['_preload_content'] = kwargs.get(
4504
- '_preload_content', True
4505
- )
4506
- kwargs['_request_timeout'] = kwargs.get(
4507
- '_request_timeout', None
4508
- )
4509
- kwargs['_check_input_type'] = kwargs.get(
4510
- '_check_input_type', True
4511
- )
4512
- kwargs['_check_return_type'] = kwargs.get(
4513
- '_check_return_type', True
4514
- )
4515
- kwargs['_spec_property_naming'] = kwargs.get(
4516
- '_spec_property_naming', False
4517
- )
4518
- kwargs['_content_type'] = kwargs.get(
4519
- '_content_type')
4520
- kwargs['_host_index'] = kwargs.get('_host_index')
4521
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
4522
- kwargs['account_id'] = \
4523
- account_id
4524
- return self.get_api202110_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs)
4525
-
4526
4371
  def get_api202110_external_account_creatives_by_account_id(
4527
4372
  self,
4528
4373
  account_id,
@@ -76,7 +76,7 @@ class ApiClient(object):
76
76
  self.default_headers[header_name] = header_value
77
77
  self.cookie = cookie
78
78
  # Set default User-Agent.
79
- self.user_agent = 'OpenAPI-Generator/2023.10.0.231113/python'
79
+ self.user_agent = 'OpenAPI-Generator/2023.10.0.240207/python'
80
80
 
81
81
  def __enter__(self):
82
82
  return self
@@ -395,7 +395,7 @@ class Configuration(object):
395
395
  "OS: {env}\n"\
396
396
  "Python Version: {pyversion}\n"\
397
397
  "Version of the API: 2023-10\n"\
398
- "SDK Package Version: 2023.10.0.231113".\
398
+ "SDK Package Version: 2023.10.0.240207".\
399
399
  format(env=sys.platform, pyversion=sys.version)
400
400
 
401
401
  def get_host_settings(self):
@@ -131,6 +131,7 @@ class CampaignAttributesV202301(ModelNormal):
131
131
  'daily_pacing': (float, none_type,), # noqa: E501
132
132
  'click_attribution_scope': (str, none_type,), # noqa: E501
133
133
  'view_attribution_scope': (str, none_type,), # noqa: E501
134
+ 'company_name': (str, none_type,), # noqa: E501
134
135
  }
135
136
 
136
137
  @cached_property
@@ -152,6 +153,7 @@ class CampaignAttributesV202301(ModelNormal):
152
153
  'daily_pacing': 'dailyPacing', # noqa: E501
153
154
  'click_attribution_scope': 'clickAttributionScope', # noqa: E501
154
155
  'view_attribution_scope': 'viewAttributionScope', # noqa: E501
156
+ 'company_name': 'companyName', # noqa: E501
155
157
  }
156
158
 
157
159
  read_only_vars = {
@@ -210,6 +212,7 @@ class CampaignAttributesV202301(ModelNormal):
210
212
  daily_pacing (float, none_type): [optional] # noqa: E501
211
213
  click_attribution_scope (str, none_type): [optional] # noqa: E501
212
214
  view_attribution_scope (str, none_type): [optional] # noqa: E501
215
+ company_name (str, none_type): [optional] # noqa: E501
213
216
  """
214
217
 
215
218
  _check_type = kwargs.pop('_check_type', True)
@@ -314,6 +317,7 @@ class CampaignAttributesV202301(ModelNormal):
314
317
  daily_pacing (float, none_type): [optional] # noqa: E501
315
318
  click_attribution_scope (str, none_type): [optional] # noqa: E501
316
319
  view_attribution_scope (str, none_type): [optional] # noqa: E501
320
+ company_name (str, none_type): [optional] # noqa: E501
317
321
  """
318
322
 
319
323
  _check_type = kwargs.pop('_check_type', True)
@@ -145,6 +145,7 @@ class CampaignV202301(ModelNormal):
145
145
  'daily_pacing': (float, none_type,), # noqa: E501
146
146
  'click_attribution_scope': (str, none_type,), # noqa: E501
147
147
  'view_attribution_scope': (str, none_type,), # noqa: E501
148
+ 'company_name': (str, none_type,), # noqa: E501
148
149
  }
149
150
 
150
151
  @cached_property
@@ -173,6 +174,7 @@ class CampaignV202301(ModelNormal):
173
174
  'daily_pacing': 'dailyPacing', # noqa: E501
174
175
  'click_attribution_scope': 'clickAttributionScope', # noqa: E501
175
176
  'view_attribution_scope': 'viewAttributionScope', # noqa: E501
177
+ 'company_name': 'companyName', # noqa: E501
176
178
  }
177
179
 
178
180
  read_only_vars = {
@@ -238,6 +240,7 @@ class CampaignV202301(ModelNormal):
238
240
  daily_pacing (float, none_type): [optional] # noqa: E501
239
241
  click_attribution_scope (str, none_type): [optional] # noqa: E501
240
242
  view_attribution_scope (str, none_type): [optional] # noqa: E501
243
+ company_name (str, none_type): [optional] # noqa: E501
241
244
  """
242
245
 
243
246
  _check_type = kwargs.pop('_check_type', True)
@@ -355,6 +358,7 @@ class CampaignV202301(ModelNormal):
355
358
  daily_pacing (float, none_type): [optional] # noqa: E501
356
359
  click_attribution_scope (str, none_type): [optional] # noqa: E501
357
360
  view_attribution_scope (str, none_type): [optional] # noqa: E501
361
+ company_name (str, none_type): [optional] # noqa: E501
358
362
  """
359
363
 
360
364
  _check_type = kwargs.pop('_check_type', True)
@@ -124,6 +124,7 @@ class EditableCampaignAttributesV202301(ModelNormal):
124
124
  'daily_pacing': (float, none_type,), # noqa: E501
125
125
  'click_attribution_scope': (str, none_type,), # noqa: E501
126
126
  'view_attribution_scope': (str, none_type,), # noqa: E501
127
+ 'company_name': (str, none_type,), # noqa: E501
127
128
  }
128
129
 
129
130
  @cached_property
@@ -143,6 +144,7 @@ class EditableCampaignAttributesV202301(ModelNormal):
143
144
  'daily_pacing': 'dailyPacing', # noqa: E501
144
145
  'click_attribution_scope': 'clickAttributionScope', # noqa: E501
145
146
  'view_attribution_scope': 'viewAttributionScope', # noqa: E501
147
+ 'company_name': 'companyName', # noqa: E501
146
148
  }
147
149
 
148
150
  read_only_vars = {
@@ -199,6 +201,7 @@ class EditableCampaignAttributesV202301(ModelNormal):
199
201
  daily_pacing (float, none_type): [optional] # noqa: E501
200
202
  click_attribution_scope (str, none_type): [optional] # noqa: E501
201
203
  view_attribution_scope (str, none_type): [optional] # noqa: E501
204
+ company_name (str, none_type): [optional] # noqa: E501
202
205
  """
203
206
 
204
207
  _check_type = kwargs.pop('_check_type', True)
@@ -303,6 +306,7 @@ class EditableCampaignAttributesV202301(ModelNormal):
303
306
  daily_pacing (float, none_type): [optional] # noqa: E501
304
307
  click_attribution_scope (str, none_type): [optional] # noqa: E501
305
308
  view_attribution_scope (str, none_type): [optional] # noqa: E501
309
+ company_name (str, none_type): [optional] # noqa: E501
306
310
  """
307
311
 
308
312
  _check_type = kwargs.pop('_check_type', True)
@@ -107,6 +107,7 @@ class ExternalAccount(ModelNormal):
107
107
  'parent_account_label': (str,), # noqa: E501
108
108
  'time_zone': (str,), # noqa: E501
109
109
  'subtype': (str, none_type,), # noqa: E501
110
+ 'company_name': (str, none_type,), # noqa: E501
110
111
  }
111
112
 
112
113
  @cached_property
@@ -122,6 +123,7 @@ class ExternalAccount(ModelNormal):
122
123
  'parent_account_label': 'parentAccountLabel', # noqa: E501
123
124
  'time_zone': 'timeZone', # noqa: E501
124
125
  'subtype': 'subtype', # noqa: E501
126
+ 'company_name': 'companyName', # noqa: E501
125
127
  }
126
128
 
127
129
  read_only_vars = {
@@ -174,6 +176,7 @@ class ExternalAccount(ModelNormal):
174
176
  through its discriminator because we passed in
175
177
  _visited_composed_classes = (Animal,)
176
178
  subtype (str, none_type): [optional] # noqa: E501
179
+ company_name (str, none_type): [optional] # noqa: E501
177
180
  """
178
181
 
179
182
  _check_type = kwargs.pop('_check_type', True)
@@ -274,6 +277,7 @@ class ExternalAccount(ModelNormal):
274
277
  through its discriminator because we passed in
275
278
  _visited_composed_classes = (Animal,)
276
279
  subtype (str, none_type): [optional] # noqa: E501
280
+ company_name (str, none_type): [optional] # noqa: E501
277
281
  """
278
282
 
279
283
  _check_type = kwargs.pop('_check_type', True)
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
 
33
- class CreateRetailMediaAudienceAttributes(ModelNormal):
33
+ class RmLegacyAudienceCreateEntityV1(ModelNormal):
34
34
  """NOTE: This class is auto generated by OpenAPI Generator.
35
35
  Ref: https://openapi-generator.tech
36
36
 
@@ -58,6 +58,7 @@ class CreateRetailMediaAudienceAttributes(ModelNormal):
58
58
  ('user_type',): {
59
59
  'VIEWER': "viewer",
60
60
  'BUYER': "buyer",
61
+ 'ADDTOCARTER': "addToCarter",
61
62
  },
62
63
  ('lookback_window',): {
63
64
  'P7D': "P7D",
@@ -73,6 +74,10 @@ class CreateRetailMediaAudienceAttributes(ModelNormal):
73
74
  }
74
75
 
75
76
  validations = {
77
+ ('brand_ids',): {
78
+ },
79
+ ('category_ids',): {
80
+ },
76
81
  }
77
82
 
78
83
  @cached_property
@@ -126,13 +131,13 @@ class CreateRetailMediaAudienceAttributes(ModelNormal):
126
131
  @classmethod
127
132
  @convert_js_args_to_python_args
128
133
  def _from_openapi_data(cls, user_type, lookback_window, retailer_id, name, *args, **kwargs): # noqa: E501
129
- """CreateRetailMediaAudienceAttributes - a model defined in OpenAPI
134
+ """RmLegacyAudienceCreateEntityV1 - a model defined in OpenAPI
130
135
 
131
136
  Args:
132
137
  user_type (str): Type of the user
133
138
  lookback_window (str): Length of lookback window
134
139
  retailer_id (int): ID of the retailer associated with this audience
135
- name (str): Name of the audience.
140
+ name (str): Name of the audience
136
141
 
137
142
  Keyword Args:
138
143
  _check_type (bool): if True, values for parameters in openapi_types
@@ -223,13 +228,13 @@ class CreateRetailMediaAudienceAttributes(ModelNormal):
223
228
 
224
229
  @convert_js_args_to_python_args
225
230
  def __init__(self, user_type, lookback_window, retailer_id, name, *args, **kwargs): # noqa: E501
226
- """CreateRetailMediaAudienceAttributes - a model defined in OpenAPI
231
+ """RmLegacyAudienceCreateEntityV1 - a model defined in OpenAPI
227
232
 
228
233
  Args:
229
234
  user_type (str): Type of the user
230
235
  lookback_window (str): Length of lookback window
231
236
  retailer_id (int): ID of the retailer associated with this audience
232
- name (str): Name of the audience.
237
+ name (str): Name of the audience
233
238
 
234
239
  Keyword Args:
235
240
  _check_type (bool): if True, values for parameters in openapi_types
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_v2023_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2023_10.model.create_retail_media_audience_v2_attributes import CreateRetailMediaAudienceV2Attributes
34
- globals()['CreateRetailMediaAudienceV2Attributes'] = CreateRetailMediaAudienceV2Attributes
33
+ from criteo_api_retailmedia_v2023_10.model.rm_legacy_audience_create_entity_v1 import RmLegacyAudienceCreateEntityV1
34
+ globals()['RmLegacyAudienceCreateEntityV1'] = RmLegacyAudienceCreateEntityV1
35
35
 
36
36
 
37
- class CreateRetailMediaAudienceV2Data(ModelNormal):
37
+ class RmLegacyAudienceCreateEntityV1Resource(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -87,8 +87,9 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'type': (str,), # noqa: E501
91
- 'attributes': (CreateRetailMediaAudienceV2Attributes,), # noqa: E501
90
+ 'attributes': (RmLegacyAudienceCreateEntityV1,), # noqa: E501
91
+ 'id': (str, none_type,), # noqa: E501
92
+ 'type': (str, none_type,), # noqa: E501
92
93
  }
93
94
 
94
95
  @cached_property
@@ -97,8 +98,9 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
97
98
 
98
99
 
99
100
  attribute_map = {
100
- 'type': 'type', # noqa: E501
101
101
  'attributes': 'attributes', # noqa: E501
102
+ 'id': 'id', # noqa: E501
103
+ 'type': 'type', # noqa: E501
102
104
  }
103
105
 
104
106
  read_only_vars = {
@@ -108,12 +110,8 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
108
110
 
109
111
  @classmethod
110
112
  @convert_js_args_to_python_args
111
- def _from_openapi_data(cls, type, attributes, *args, **kwargs): # noqa: E501
112
- """CreateRetailMediaAudienceV2Data - a model defined in OpenAPI
113
-
114
- Args:
115
- type (str): the name of the entity type
116
- attributes (CreateRetailMediaAudienceV2Attributes):
113
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
114
+ """RmLegacyAudienceCreateEntityV1Resource - a model defined in OpenAPI
117
115
 
118
116
  Keyword Args:
119
117
  _check_type (bool): if True, values for parameters in openapi_types
@@ -146,6 +144,9 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
146
144
  Animal class but this time we won't travel
147
145
  through its discriminator because we passed in
148
146
  _visited_composed_classes = (Animal,)
147
+ attributes (RmLegacyAudienceCreateEntityV1): [optional] # noqa: E501
148
+ id (str, none_type): Id of the entity. [optional] # noqa: E501
149
+ type (str, none_type): [optional] # noqa: E501
149
150
  """
150
151
 
151
152
  _check_type = kwargs.pop('_check_type', True)
@@ -177,8 +178,6 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
177
178
  self._configuration = _configuration
178
179
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
179
180
 
180
- self.type = type
181
- self.attributes = attributes
182
181
  for var_name, var_value in kwargs.items():
183
182
  if var_name not in self.attribute_map and \
184
183
  self._configuration is not None and \
@@ -199,12 +198,8 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
199
198
  ])
200
199
 
201
200
  @convert_js_args_to_python_args
202
- def __init__(self, type, attributes, *args, **kwargs): # noqa: E501
203
- """CreateRetailMediaAudienceV2Data - a model defined in OpenAPI
204
-
205
- Args:
206
- type (str): the name of the entity type
207
- attributes (CreateRetailMediaAudienceV2Attributes):
201
+ def __init__(self, *args, **kwargs): # noqa: E501
202
+ """RmLegacyAudienceCreateEntityV1Resource - a model defined in OpenAPI
208
203
 
209
204
  Keyword Args:
210
205
  _check_type (bool): if True, values for parameters in openapi_types
@@ -237,6 +232,9 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
237
232
  Animal class but this time we won't travel
238
233
  through its discriminator because we passed in
239
234
  _visited_composed_classes = (Animal,)
235
+ attributes (RmLegacyAudienceCreateEntityV1): [optional] # noqa: E501
236
+ id (str, none_type): Id of the entity. [optional] # noqa: E501
237
+ type (str, none_type): [optional] # noqa: E501
240
238
  """
241
239
 
242
240
  _check_type = kwargs.pop('_check_type', True)
@@ -266,8 +264,6 @@ class CreateRetailMediaAudienceV2Data(ModelNormal):
266
264
  self._configuration = _configuration
267
265
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
268
266
 
269
- self.type = type
270
- self.attributes = attributes
271
267
  for var_name, var_value in kwargs.items():
272
268
  if var_name not in self.attribute_map and \
273
269
  self._configuration is not None and \