criteo-api-retailmedia-sdk 2023.7.0.240118__py3-none-any.whl → 2023.7.0.240404__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-2023.7.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.7.0.240404.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2023.7.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.7.0.240404.dist-info}/RECORD +35 -36
  3. {criteo_api_retailmedia_sdk-2023.7.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.7.0.240404.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2023_07/__init__.py +1 -1
  5. criteo_api_retailmedia_v2023_07/api/audience_api.py +113 -100
  6. criteo_api_retailmedia_v2023_07/api_client.py +1 -1
  7. criteo_api_retailmedia_v2023_07/configuration.py +1 -1
  8. criteo_api_retailmedia_v2023_07/model/async_campaigns_report.py +57 -53
  9. criteo_api_retailmedia_v2023_07/model/async_line_items_report.py +57 -54
  10. criteo_api_retailmedia_v2023_07/model/campaign_attributes_v202301.py +4 -0
  11. criteo_api_retailmedia_v2023_07/model/campaign_v202301.py +4 -0
  12. criteo_api_retailmedia_v2023_07/model/editable_campaign_attributes_v202301.py +4 -0
  13. criteo_api_retailmedia_v2023_07/model/external_account.py +4 -0
  14. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience_attributes.py → rm_legacy_audience_create_entity_v1.py} +10 -5
  15. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience_body.py → rm_legacy_audience_create_entity_v1_resource.py} +18 -22
  16. criteo_api_retailmedia_v2023_07/model/{retail_media_audience_v2_response.py → rm_legacy_audience_create_entity_v1_response.py} +15 -15
  17. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience_v2_attributes.py → rm_legacy_audience_create_entity_v2.py} +10 -10
  18. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience.py → rm_legacy_audience_create_entity_v2_resource.py} +18 -28
  19. criteo_api_retailmedia_v2023_07/model/{common_status_code_response.py → rm_legacy_audience_create_entity_v2_response.py} +16 -10
  20. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience_v2_request.py → rm_legacy_audience_create_input_entity_v1.py} +10 -16
  21. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience_request.py → rm_legacy_audience_create_input_entity_v2.py} +10 -16
  22. criteo_api_retailmedia_v2023_07/model/{retail_media_audience_v2_attributes.py → rm_legacy_audience_get_entity_v1.py} +23 -23
  23. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience_response.py → rm_legacy_audience_get_entity_v1_list_response.py} +18 -20
  24. criteo_api_retailmedia_v2023_07/model/{retail_media_audience_v2.py → rm_legacy_audience_get_entity_v1_resource.py} +24 -29
  25. criteo_api_retailmedia_v2023_07/model/{retail_media_audience_attributes.py → rm_legacy_audience_get_entity_v2.py} +15 -15
  26. criteo_api_retailmedia_v2023_07/model/{retail_media_audience_v2_list_response.py → rm_legacy_audience_get_entity_v2_list_response.py} +17 -29
  27. criteo_api_retailmedia_v2023_07/model/{create_retail_media_audience_v2_data.py → rm_legacy_audience_get_entity_v2_resource.py} +18 -22
  28. criteo_api_retailmedia_v2023_07/model/rm_legacy_audience_user_behavior_create_v2.py +279 -0
  29. criteo_api_retailmedia_v2023_07/model/{user_behavior_details_v2.py → rm_legacy_audience_user_behavior_details_v2.py} +11 -11
  30. criteo_api_retailmedia_v2023_07/model/{customer_list_details.py → rm_legacy_segment_customer_list.py} +11 -5
  31. criteo_api_retailmedia_v2023_07/model/{retail_media_audience.py → rm_legacy_segment_user_behavior_create_v2.py} +44 -38
  32. criteo_api_retailmedia_v2023_07/model/{user_behavior_details.py → rm_legacy_segment_user_behavior_v1.py} +28 -28
  33. criteo_api_retailmedia_v2023_07/model/{create_user_behavior_segment_v2.py → rm_legacy_segment_user_behavior_v2.py} +7 -5
  34. criteo_api_retailmedia_v2023_07/models/__init__.py +20 -21
  35. criteo_api_retailmedia_v2023_07/model/create_retail_media_audience_v2.py +0 -287
  36. criteo_api_retailmedia_v2023_07/model/get_page_of_audiences_by_account_id_response.py +0 -295
  37. {criteo_api_retailmedia_sdk-2023.7.0.240118.dist-info → criteo_api_retailmedia_sdk-2023.7.0.240404.dist-info}/top_level.txt +0 -0
@@ -21,13 +21,12 @@ from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401
21
21
  none_type,
22
22
  validate_and_convert_types
23
23
  )
24
- from criteo_api_retailmedia_v2023_07.model.common_status_code_response import CommonStatusCodeResponse
25
- from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_request import CreateRetailMediaAudienceRequest
26
- from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_response import CreateRetailMediaAudienceResponse
27
- from criteo_api_retailmedia_v2023_07.model.create_retail_media_audience_v2_request import CreateRetailMediaAudienceV2Request
28
- from criteo_api_retailmedia_v2023_07.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse
29
- from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse
30
- from criteo_api_retailmedia_v2023_07.model.retail_media_audience_v2_response import RetailMediaAudienceV2Response
24
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_create_entity_v1_response import RmLegacyAudienceCreateEntityV1Response
25
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_create_entity_v2_response import RmLegacyAudienceCreateEntityV2Response
26
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_create_input_entity_v1 import RmLegacyAudienceCreateInputEntityV1
27
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_create_input_entity_v2 import RmLegacyAudienceCreateInputEntityV2
28
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_get_entity_v1_list_response import RmLegacyAudienceGetEntityV1ListResponse
29
+ from criteo_api_retailmedia_v2023_07.model.rm_legacy_audience_get_entity_v2_list_response import RmLegacyAudienceGetEntityV2ListResponse
31
30
 
32
31
 
33
32
  class AudienceApi(object):
@@ -41,26 +40,26 @@ class AudienceApi(object):
41
40
  if api_client is None:
42
41
  api_client = ApiClient()
43
42
  self.api_client = api_client
44
- self.create_audience_endpoint = _Endpoint(
43
+ self.legacy_create_audience_v1_endpoint = _Endpoint(
45
44
  settings={
46
- 'response_type': (CreateRetailMediaAudienceResponse,),
45
+ 'response_type': (RmLegacyAudienceCreateEntityV1Response,),
47
46
  'auth': [
48
47
  'oauth',
49
48
  'oauth'
50
49
  ],
51
50
  'endpoint_path': '/2023-07/retail-media/accounts/{accountId}/audiences',
52
- 'operation_id': 'create_audience',
51
+ 'operation_id': 'legacy_create_audience_v1',
53
52
  'http_method': 'POST',
54
53
  'servers': None,
55
54
  },
56
55
  params_map={
57
56
  'all': [
58
57
  'account_id',
59
- 'create_retail_media_audience_request',
58
+ 'rm_legacy_audience_create_input_entity_v1',
60
59
  ],
61
60
  'required': [
62
61
  'account_id',
63
- 'create_retail_media_audience_request',
62
+ 'rm_legacy_audience_create_input_entity_v1',
64
63
  ],
65
64
  'nullable': [
66
65
  ],
@@ -77,49 +76,55 @@ class AudienceApi(object):
77
76
  'openapi_types': {
78
77
  'account_id':
79
78
  (int,),
80
- 'create_retail_media_audience_request':
81
- (CreateRetailMediaAudienceRequest,),
79
+ 'rm_legacy_audience_create_input_entity_v1':
80
+ (RmLegacyAudienceCreateInputEntityV1,),
82
81
  },
83
82
  'attribute_map': {
84
83
  'account_id': 'accountId',
85
84
  },
86
85
  'location_map': {
87
86
  'account_id': 'path',
88
- 'create_retail_media_audience_request': 'body',
87
+ 'rm_legacy_audience_create_input_entity_v1': 'body',
89
88
  },
90
89
  'collection_format_map': {
91
90
  }
92
91
  },
93
92
  headers_map={
94
93
  'accept': [
95
- 'application/json'
94
+ 'text/plain',
95
+ 'application/json',
96
+ 'text/json'
96
97
  ],
97
98
  'content_type': [
98
- 'application/json'
99
+ 'application/json-patch+json',
100
+ 'application/json',
101
+ 'text/json',
102
+ 'application/*+json'
99
103
  ]
100
104
  },
101
105
  api_client=api_client
102
106
  )
103
- self.create_retail_media_audience_v2_endpoint = _Endpoint(
107
+ self.legacy_get_audience_v1_endpoint = _Endpoint(
104
108
  settings={
105
- 'response_type': (RetailMediaAudienceV2Response,),
109
+ 'response_type': (RmLegacyAudienceGetEntityV1ListResponse,),
106
110
  'auth': [
107
111
  'oauth',
108
112
  'oauth'
109
113
  ],
110
- 'endpoint_path': '/2023-07/retail-media/v2/accounts/{accountId}/audiences',
111
- 'operation_id': 'create_retail_media_audience_v2',
112
- 'http_method': 'POST',
114
+ 'endpoint_path': '/2023-07/retail-media/accounts/{accountId}/audiences',
115
+ 'operation_id': 'legacy_get_audience_v1',
116
+ 'http_method': 'GET',
113
117
  'servers': None,
114
118
  },
115
119
  params_map={
116
120
  'all': [
117
121
  'account_id',
118
- 'create_retail_media_audience_v2_request',
122
+ 'limit_to_id',
123
+ 'page_size',
124
+ 'page_index',
119
125
  ],
120
126
  'required': [
121
127
  'account_id',
122
- 'create_retail_media_audience_v2_request',
123
128
  ],
124
129
  'nullable': [
125
130
  ],
@@ -136,38 +141,48 @@ class AudienceApi(object):
136
141
  'openapi_types': {
137
142
  'account_id':
138
143
  (int,),
139
- 'create_retail_media_audience_v2_request':
140
- (CreateRetailMediaAudienceV2Request,),
144
+ 'limit_to_id':
145
+ ([int],),
146
+ 'page_size':
147
+ (int,),
148
+ 'page_index':
149
+ (int,),
141
150
  },
142
151
  'attribute_map': {
143
152
  'account_id': 'accountId',
153
+ 'limit_to_id': 'limitToId',
154
+ 'page_size': 'pageSize',
155
+ 'page_index': 'pageIndex',
144
156
  },
145
157
  'location_map': {
146
158
  'account_id': 'path',
147
- 'create_retail_media_audience_v2_request': 'body',
159
+ 'limit_to_id': 'query',
160
+ 'page_size': 'query',
161
+ 'page_index': 'query',
148
162
  },
149
163
  'collection_format_map': {
164
+ 'limit_to_id': 'multi',
150
165
  }
151
166
  },
152
167
  headers_map={
153
168
  'accept': [
154
- 'application/json'
169
+ 'text/plain',
170
+ 'application/json',
171
+ 'text/json'
155
172
  ],
156
- 'content_type': [
157
- 'application/json'
158
- ]
173
+ 'content_type': [],
159
174
  },
160
175
  api_client=api_client
161
176
  )
162
- self.get_audiences_by_account_id_endpoint = _Endpoint(
177
+ self.legacy_get_audience_v2_endpoint = _Endpoint(
163
178
  settings={
164
- 'response_type': (GetPageOfAudiencesByAccountIdResponse,),
179
+ 'response_type': (RmLegacyAudienceGetEntityV2ListResponse,),
165
180
  'auth': [
166
181
  'oauth',
167
182
  'oauth'
168
183
  ],
169
- 'endpoint_path': '/2023-07/retail-media/accounts/{accountId}/audiences',
170
- 'operation_id': 'get_audiences_by_account_id',
184
+ 'endpoint_path': '/2023-07/retail-media/v2/accounts/{accountId}/audiences',
185
+ 'operation_id': 'legacy_get_audience_v2',
171
186
  'http_method': 'GET',
172
187
  'servers': None,
173
188
  },
@@ -195,9 +210,9 @@ class AudienceApi(object):
195
210
  },
196
211
  'openapi_types': {
197
212
  'account_id':
198
- (str,),
213
+ (int,),
199
214
  'limit_to_id':
200
- ([str],),
215
+ ([int],),
201
216
  'page_size':
202
217
  (int,),
203
218
  'page_index':
@@ -221,33 +236,34 @@ class AudienceApi(object):
221
236
  },
222
237
  headers_map={
223
238
  'accept': [
224
- 'application/json'
239
+ 'text/plain',
240
+ 'application/json',
241
+ 'text/json'
225
242
  ],
226
243
  'content_type': [],
227
244
  },
228
245
  api_client=api_client
229
246
  )
230
- self.get_retail_media_audience_v2_list_by_account_id_endpoint = _Endpoint(
247
+ self.legacy_update_audience_v2_endpoint = _Endpoint(
231
248
  settings={
232
- 'response_type': (RetailMediaAudienceV2ListResponse,),
249
+ 'response_type': (RmLegacyAudienceCreateEntityV2Response,),
233
250
  'auth': [
234
251
  'oauth',
235
252
  'oauth'
236
253
  ],
237
254
  'endpoint_path': '/2023-07/retail-media/v2/accounts/{accountId}/audiences',
238
- 'operation_id': 'get_retail_media_audience_v2_list_by_account_id',
239
- 'http_method': 'GET',
255
+ 'operation_id': 'legacy_update_audience_v2',
256
+ 'http_method': 'POST',
240
257
  'servers': None,
241
258
  },
242
259
  params_map={
243
260
  'all': [
244
261
  'account_id',
245
- 'limit_to_id',
246
- 'page_size',
247
- 'page_index',
262
+ 'rm_legacy_audience_create_input_entity_v2',
248
263
  ],
249
264
  'required': [
250
265
  'account_id',
266
+ 'rm_legacy_audience_create_input_entity_v2',
251
267
  ],
252
268
  'nullable': [
253
269
  ],
@@ -264,56 +280,53 @@ class AudienceApi(object):
264
280
  'openapi_types': {
265
281
  'account_id':
266
282
  (int,),
267
- 'limit_to_id':
268
- ([int],),
269
- 'page_size':
270
- (int,),
271
- 'page_index':
272
- (int,),
283
+ 'rm_legacy_audience_create_input_entity_v2':
284
+ (RmLegacyAudienceCreateInputEntityV2,),
273
285
  },
274
286
  'attribute_map': {
275
287
  'account_id': 'accountId',
276
- 'limit_to_id': 'limitToId',
277
- 'page_size': 'pageSize',
278
- 'page_index': 'pageIndex',
279
288
  },
280
289
  'location_map': {
281
290
  'account_id': 'path',
282
- 'limit_to_id': 'query',
283
- 'page_size': 'query',
284
- 'page_index': 'query',
291
+ 'rm_legacy_audience_create_input_entity_v2': 'body',
285
292
  },
286
293
  'collection_format_map': {
287
- 'limit_to_id': 'multi',
288
294
  }
289
295
  },
290
296
  headers_map={
291
297
  'accept': [
292
- 'application/json'
298
+ 'text/plain',
299
+ 'application/json',
300
+ 'text/json'
293
301
  ],
294
- 'content_type': [],
302
+ 'content_type': [
303
+ 'application/json-patch+json',
304
+ 'application/json',
305
+ 'text/json',
306
+ 'application/*+json'
307
+ ]
295
308
  },
296
309
  api_client=api_client
297
310
  )
298
311
 
299
- def create_audience(
312
+ def legacy_create_audience_v1(
300
313
  self,
301
314
  account_id,
302
- create_retail_media_audience_request,
315
+ rm_legacy_audience_create_input_entity_v1,
303
316
  **kwargs
304
317
  ):
305
- """create_audience # noqa: E501
318
+ """legacy_create_audience_v1 # noqa: E501
306
319
 
307
- Create an audience for a given account ID # noqa: E501
320
+ Create an Audience (deprecated Public API) # noqa: E501
308
321
  This method makes a synchronous HTTP request by default. To make an
309
322
  asynchronous HTTP request, please pass async_req=True
310
323
 
311
- >>> thread = api.create_audience(account_id, create_retail_media_audience_request, async_req=True)
324
+ >>> thread = api.legacy_create_audience_v1(account_id, rm_legacy_audience_create_input_entity_v1, async_req=True)
312
325
  >>> result = thread.get()
313
326
 
314
327
  Args:
315
328
  account_id (int): ID of the account to which this audience belongs.
316
- create_retail_media_audience_request (CreateRetailMediaAudienceRequest):
329
+ rm_legacy_audience_create_input_entity_v1 (RmLegacyAudienceCreateInputEntityV1): Audience creation request.
317
330
 
318
331
  Keyword Args:
319
332
  _return_http_data_only (bool): response data without head status
@@ -348,7 +361,7 @@ class AudienceApi(object):
348
361
  async_req (bool): execute request asynchronously
349
362
 
350
363
  Returns:
351
- CreateRetailMediaAudienceResponse
364
+ RmLegacyAudienceCreateEntityV1Response
352
365
  If the method is called asynchronously, returns the request
353
366
  thread.
354
367
  """
@@ -379,30 +392,31 @@ class AudienceApi(object):
379
392
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
380
393
  kwargs['account_id'] = \
381
394
  account_id
382
- kwargs['create_retail_media_audience_request'] = \
383
- create_retail_media_audience_request
384
- return self.create_audience_endpoint.call_with_http_info(**kwargs)
395
+ kwargs['rm_legacy_audience_create_input_entity_v1'] = \
396
+ rm_legacy_audience_create_input_entity_v1
397
+ return self.legacy_create_audience_v1_endpoint.call_with_http_info(**kwargs)
385
398
 
386
- def create_retail_media_audience_v2(
399
+ def legacy_get_audience_v1(
387
400
  self,
388
401
  account_id,
389
- create_retail_media_audience_v2_request,
390
402
  **kwargs
391
403
  ):
392
- """create_retail_media_audience_v2 # noqa: E501
404
+ """legacy_get_audience_v1 # noqa: E501
393
405
 
394
- Create an audience for a given account ID # noqa: E501
406
+ Get a page of Audiences. (deprecated Public API) # noqa: E501
395
407
  This method makes a synchronous HTTP request by default. To make an
396
408
  asynchronous HTTP request, please pass async_req=True
397
409
 
398
- >>> thread = api.create_retail_media_audience_v2(account_id, create_retail_media_audience_v2_request, async_req=True)
410
+ >>> thread = api.legacy_get_audience_v1(account_id, async_req=True)
399
411
  >>> result = thread.get()
400
412
 
401
413
  Args:
402
414
  account_id (int): ID of the account to which this audience belongs.
403
- create_retail_media_audience_v2_request (CreateRetailMediaAudienceV2Request):
404
415
 
405
416
  Keyword Args:
417
+ limit_to_id ([int]): Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2. [optional]
418
+ page_size (int): Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page.. [optional]
419
+ page_index (int): Returns the specified page of results given a pageSize; pages are 0-indexed.. [optional]
406
420
  _return_http_data_only (bool): response data without head status
407
421
  code and headers. Default is True.
408
422
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -435,7 +449,7 @@ class AudienceApi(object):
435
449
  async_req (bool): execute request asynchronously
436
450
 
437
451
  Returns:
438
- RetailMediaAudienceV2Response
452
+ RmLegacyAudienceGetEntityV1ListResponse
439
453
  If the method is called asynchronously, returns the request
440
454
  thread.
441
455
  """
@@ -466,31 +480,29 @@ class AudienceApi(object):
466
480
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
467
481
  kwargs['account_id'] = \
468
482
  account_id
469
- kwargs['create_retail_media_audience_v2_request'] = \
470
- create_retail_media_audience_v2_request
471
- return self.create_retail_media_audience_v2_endpoint.call_with_http_info(**kwargs)
483
+ return self.legacy_get_audience_v1_endpoint.call_with_http_info(**kwargs)
472
484
 
473
- def get_audiences_by_account_id(
485
+ def legacy_get_audience_v2(
474
486
  self,
475
487
  account_id,
476
488
  **kwargs
477
489
  ):
478
- """get_audiences_by_account_id # noqa: E501
490
+ """legacy_get_audience_v2 # noqa: E501
479
491
 
480
- Get a page of audiences for a given account ID # noqa: E501
492
+ Get a page of Audiences. (deprecated Public API) # noqa: E501
481
493
  This method makes a synchronous HTTP request by default. To make an
482
494
  asynchronous HTTP request, please pass async_req=True
483
495
 
484
- >>> thread = api.get_audiences_by_account_id(account_id, async_req=True)
496
+ >>> thread = api.legacy_get_audience_v2(account_id, async_req=True)
485
497
  >>> result = thread.get()
486
498
 
487
499
  Args:
488
- account_id (str): External account ID which owns audience.
500
+ account_id (int): ID of the account to which this audience belongs.
489
501
 
490
502
  Keyword Args:
491
- limit_to_id ([str]): Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2. [optional]
492
- page_size (int): Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. [optional]
493
- page_index (int): Returns the specified page of results given a pageSize; pages are 0-indexed. [optional]
503
+ limit_to_id ([int]): Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2. [optional]
504
+ page_size (int): Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page.. [optional]
505
+ page_index (int): Returns the specified page of results given a pageSize; pages are 0-indexed.. [optional]
494
506
  _return_http_data_only (bool): response data without head status
495
507
  code and headers. Default is True.
496
508
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -523,7 +535,7 @@ class AudienceApi(object):
523
535
  async_req (bool): execute request asynchronously
524
536
 
525
537
  Returns:
526
- GetPageOfAudiencesByAccountIdResponse
538
+ RmLegacyAudienceGetEntityV2ListResponse
527
539
  If the method is called asynchronously, returns the request
528
540
  thread.
529
541
  """
@@ -554,29 +566,28 @@ class AudienceApi(object):
554
566
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
555
567
  kwargs['account_id'] = \
556
568
  account_id
557
- return self.get_audiences_by_account_id_endpoint.call_with_http_info(**kwargs)
569
+ return self.legacy_get_audience_v2_endpoint.call_with_http_info(**kwargs)
558
570
 
559
- def get_retail_media_audience_v2_list_by_account_id(
571
+ def legacy_update_audience_v2(
560
572
  self,
561
573
  account_id,
574
+ rm_legacy_audience_create_input_entity_v2,
562
575
  **kwargs
563
576
  ):
564
- """get_retail_media_audience_v2_list_by_account_id # noqa: E501
577
+ """legacy_update_audience_v2 # noqa: E501
565
578
 
566
- Get a page of audiences for a given account ID # noqa: E501
579
+ Create an Audience (deprecated Public API) # noqa: E501
567
580
  This method makes a synchronous HTTP request by default. To make an
568
581
  asynchronous HTTP request, please pass async_req=True
569
582
 
570
- >>> thread = api.get_retail_media_audience_v2_list_by_account_id(account_id, async_req=True)
583
+ >>> thread = api.legacy_update_audience_v2(account_id, rm_legacy_audience_create_input_entity_v2, async_req=True)
571
584
  >>> result = thread.get()
572
585
 
573
586
  Args:
574
- account_id (int): External account ID which owns audience.
587
+ account_id (int): ID of the account to which this audience belongs.
588
+ rm_legacy_audience_create_input_entity_v2 (RmLegacyAudienceCreateInputEntityV2): Audience creation request.
575
589
 
576
590
  Keyword Args:
577
- limit_to_id ([int]): Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2. [optional]
578
- page_size (int): Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. [optional]
579
- page_index (int): Returns the specified page of results given a pageSize; pages are 0-indexed. [optional]
580
591
  _return_http_data_only (bool): response data without head status
581
592
  code and headers. Default is True.
582
593
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -609,7 +620,7 @@ class AudienceApi(object):
609
620
  async_req (bool): execute request asynchronously
610
621
 
611
622
  Returns:
612
- RetailMediaAudienceV2ListResponse
623
+ RmLegacyAudienceCreateEntityV2Response
613
624
  If the method is called asynchronously, returns the request
614
625
  thread.
615
626
  """
@@ -640,5 +651,7 @@ class AudienceApi(object):
640
651
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
641
652
  kwargs['account_id'] = \
642
653
  account_id
643
- return self.get_retail_media_audience_v2_list_by_account_id_endpoint.call_with_http_info(**kwargs)
654
+ kwargs['rm_legacy_audience_create_input_entity_v2'] = \
655
+ rm_legacy_audience_create_input_entity_v2
656
+ return self.legacy_update_audience_v2_endpoint.call_with_http_info(**kwargs)
644
657
 
@@ -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.07.0.240118/python'
79
+ self.user_agent = 'OpenAPI-Generator/2023.07.0.240404/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-07\n"\
398
- "SDK Package Version: 2023.07.0.240118".\
398
+ "SDK Package Version: 2023.07.0.240404".\
399
399
  format(env=sys.platform, pyversion=sys.version)
400
400
 
401
401
  def get_host_settings(self):