criteo-api-retailmedia-sdk 0.0.240118__py3-none-any.whl → 0.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.
- criteo_api_retailmedia_preview/__init__.py +1 -1
- criteo_api_retailmedia_preview/api/audience_api.py +2 -313
- criteo_api_retailmedia_preview/api_client.py +1 -1
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/external_account.py +4 -0
- criteo_api_retailmedia_preview/model/retail_media_account.py +4 -0
- criteo_api_retailmedia_preview/model/retail_media_brand_account_creation.py +4 -0
- criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +4 -0
- criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2.py +3 -3
- criteo_api_retailmedia_preview/models/__init__.py +0 -11
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/RECORD +14 -25
- criteo_api_retailmedia_preview/model/common_status_code_response.py +0 -275
- criteo_api_retailmedia_preview/model/create_user_behavior_segment_v2.py +0 -309
- criteo_api_retailmedia_preview/model/customer_list_details.py +0 -269
- criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py +0 -295
- criteo_api_retailmedia_preview/model/retail_media_audience.py +0 -297
- criteo_api_retailmedia_preview/model/retail_media_audience_attributes.py +0 -291
- criteo_api_retailmedia_preview/model/retail_media_audience_v2.py +0 -291
- criteo_api_retailmedia_preview/model/retail_media_audience_v2_attributes.py +0 -291
- criteo_api_retailmedia_preview/model/retail_media_audience_v2_list_response.py +0 -293
- criteo_api_retailmedia_preview/model/user_behavior_details.py +0 -306
- criteo_api_retailmedia_preview/model/user_behavior_details_v2.py +0 -279
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/WHEEL +0 -0
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240207.dist-info}/top_level.txt +0 -0
|
@@ -21,9 +21,6 @@ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
|
|
|
21
21
|
none_type,
|
|
22
22
|
validate_and_convert_types
|
|
23
23
|
)
|
|
24
|
-
from criteo_api_retailmedia_preview.model.common_status_code_response import CommonStatusCodeResponse
|
|
25
|
-
from criteo_api_retailmedia_preview.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse
|
|
26
|
-
from criteo_api_retailmedia_preview.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse
|
|
27
24
|
from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v1_list_response import RmLegacyAudienceGetEntityV1ListResponse
|
|
28
25
|
from criteo_api_retailmedia_preview.model.rm_legacy_audience_get_entity_v2_list_response import RmLegacyAudienceGetEntityV2ListResponse
|
|
29
26
|
|
|
@@ -39,142 +36,6 @@ class AudienceApi(object):
|
|
|
39
36
|
if api_client is None:
|
|
40
37
|
api_client = ApiClient()
|
|
41
38
|
self.api_client = api_client
|
|
42
|
-
self.get_audiences_by_account_id_endpoint = _Endpoint(
|
|
43
|
-
settings={
|
|
44
|
-
'response_type': (GetPageOfAudiencesByAccountIdResponse,),
|
|
45
|
-
'auth': [
|
|
46
|
-
'oauth',
|
|
47
|
-
'oauth'
|
|
48
|
-
],
|
|
49
|
-
'endpoint_path': '/preview/retail-media/accounts/{accountId}/audiences',
|
|
50
|
-
'operation_id': 'get_audiences_by_account_id',
|
|
51
|
-
'http_method': 'GET',
|
|
52
|
-
'servers': None,
|
|
53
|
-
},
|
|
54
|
-
params_map={
|
|
55
|
-
'all': [
|
|
56
|
-
'account_id',
|
|
57
|
-
'limit_to_id',
|
|
58
|
-
'page_size',
|
|
59
|
-
'page_index',
|
|
60
|
-
],
|
|
61
|
-
'required': [
|
|
62
|
-
'account_id',
|
|
63
|
-
],
|
|
64
|
-
'nullable': [
|
|
65
|
-
],
|
|
66
|
-
'enum': [
|
|
67
|
-
],
|
|
68
|
-
'validation': [
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
root_map={
|
|
72
|
-
'validations': {
|
|
73
|
-
},
|
|
74
|
-
'allowed_values': {
|
|
75
|
-
},
|
|
76
|
-
'openapi_types': {
|
|
77
|
-
'account_id':
|
|
78
|
-
(str,),
|
|
79
|
-
'limit_to_id':
|
|
80
|
-
([str],),
|
|
81
|
-
'page_size':
|
|
82
|
-
(int,),
|
|
83
|
-
'page_index':
|
|
84
|
-
(int,),
|
|
85
|
-
},
|
|
86
|
-
'attribute_map': {
|
|
87
|
-
'account_id': 'accountId',
|
|
88
|
-
'limit_to_id': 'limitToId',
|
|
89
|
-
'page_size': 'pageSize',
|
|
90
|
-
'page_index': 'pageIndex',
|
|
91
|
-
},
|
|
92
|
-
'location_map': {
|
|
93
|
-
'account_id': 'path',
|
|
94
|
-
'limit_to_id': 'query',
|
|
95
|
-
'page_size': 'query',
|
|
96
|
-
'page_index': 'query',
|
|
97
|
-
},
|
|
98
|
-
'collection_format_map': {
|
|
99
|
-
'limit_to_id': 'multi',
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
headers_map={
|
|
103
|
-
'accept': [
|
|
104
|
-
'application/json'
|
|
105
|
-
],
|
|
106
|
-
'content_type': [],
|
|
107
|
-
},
|
|
108
|
-
api_client=api_client
|
|
109
|
-
)
|
|
110
|
-
self.get_retail_media_audience_v2_list_by_account_id_endpoint = _Endpoint(
|
|
111
|
-
settings={
|
|
112
|
-
'response_type': (RetailMediaAudienceV2ListResponse,),
|
|
113
|
-
'auth': [
|
|
114
|
-
'oauth',
|
|
115
|
-
'oauth'
|
|
116
|
-
],
|
|
117
|
-
'endpoint_path': '/preview/retail-media/v2/accounts/{accountId}/audiences',
|
|
118
|
-
'operation_id': 'get_retail_media_audience_v2_list_by_account_id',
|
|
119
|
-
'http_method': 'GET',
|
|
120
|
-
'servers': None,
|
|
121
|
-
},
|
|
122
|
-
params_map={
|
|
123
|
-
'all': [
|
|
124
|
-
'account_id',
|
|
125
|
-
'limit_to_id',
|
|
126
|
-
'page_size',
|
|
127
|
-
'page_index',
|
|
128
|
-
],
|
|
129
|
-
'required': [
|
|
130
|
-
'account_id',
|
|
131
|
-
],
|
|
132
|
-
'nullable': [
|
|
133
|
-
],
|
|
134
|
-
'enum': [
|
|
135
|
-
],
|
|
136
|
-
'validation': [
|
|
137
|
-
]
|
|
138
|
-
},
|
|
139
|
-
root_map={
|
|
140
|
-
'validations': {
|
|
141
|
-
},
|
|
142
|
-
'allowed_values': {
|
|
143
|
-
},
|
|
144
|
-
'openapi_types': {
|
|
145
|
-
'account_id':
|
|
146
|
-
(int,),
|
|
147
|
-
'limit_to_id':
|
|
148
|
-
([int],),
|
|
149
|
-
'page_size':
|
|
150
|
-
(int,),
|
|
151
|
-
'page_index':
|
|
152
|
-
(int,),
|
|
153
|
-
},
|
|
154
|
-
'attribute_map': {
|
|
155
|
-
'account_id': 'accountId',
|
|
156
|
-
'limit_to_id': 'limitToId',
|
|
157
|
-
'page_size': 'pageSize',
|
|
158
|
-
'page_index': 'pageIndex',
|
|
159
|
-
},
|
|
160
|
-
'location_map': {
|
|
161
|
-
'account_id': 'path',
|
|
162
|
-
'limit_to_id': 'query',
|
|
163
|
-
'page_size': 'query',
|
|
164
|
-
'page_index': 'query',
|
|
165
|
-
},
|
|
166
|
-
'collection_format_map': {
|
|
167
|
-
'limit_to_id': 'multi',
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
headers_map={
|
|
171
|
-
'accept': [
|
|
172
|
-
'application/json'
|
|
173
|
-
],
|
|
174
|
-
'content_type': [],
|
|
175
|
-
},
|
|
176
|
-
api_client=api_client
|
|
177
|
-
)
|
|
178
39
|
self.legacy_get_audience_v1_endpoint = _Endpoint(
|
|
179
40
|
settings={
|
|
180
41
|
'response_type': (RmLegacyAudienceGetEntityV1ListResponse,),
|
|
@@ -182,7 +43,7 @@ class AudienceApi(object):
|
|
|
182
43
|
'oauth',
|
|
183
44
|
'oauth'
|
|
184
45
|
],
|
|
185
|
-
'endpoint_path': '/preview/retail-media/
|
|
46
|
+
'endpoint_path': '/preview/retail-media/accounts/{accountId}/audiences',
|
|
186
47
|
'operation_id': 'legacy_get_audience_v1',
|
|
187
48
|
'http_method': 'GET',
|
|
188
49
|
'servers': None,
|
|
@@ -252,7 +113,7 @@ class AudienceApi(object):
|
|
|
252
113
|
'oauth',
|
|
253
114
|
'oauth'
|
|
254
115
|
],
|
|
255
|
-
'endpoint_path': '/preview/retail-media/
|
|
116
|
+
'endpoint_path': '/preview/retail-media/v2/accounts/{accountId}/audiences',
|
|
256
117
|
'operation_id': 'legacy_get_audience_v2',
|
|
257
118
|
'http_method': 'GET',
|
|
258
119
|
'servers': None,
|
|
@@ -316,178 +177,6 @@ class AudienceApi(object):
|
|
|
316
177
|
api_client=api_client
|
|
317
178
|
)
|
|
318
179
|
|
|
319
|
-
def get_audiences_by_account_id(
|
|
320
|
-
self,
|
|
321
|
-
account_id,
|
|
322
|
-
**kwargs
|
|
323
|
-
):
|
|
324
|
-
"""get_audiences_by_account_id # noqa: E501
|
|
325
|
-
|
|
326
|
-
Get a page of audiences for a given account ID # noqa: E501
|
|
327
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
328
|
-
asynchronous HTTP request, please pass async_req=True
|
|
329
|
-
|
|
330
|
-
>>> thread = api.get_audiences_by_account_id(account_id, async_req=True)
|
|
331
|
-
>>> result = thread.get()
|
|
332
|
-
|
|
333
|
-
Args:
|
|
334
|
-
account_id (str): External account ID which owns audience.
|
|
335
|
-
|
|
336
|
-
Keyword Args:
|
|
337
|
-
limit_to_id ([str]): Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2. [optional]
|
|
338
|
-
page_size (int): Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. [optional]
|
|
339
|
-
page_index (int): Returns the specified page of results given a pageSize; pages are 0-indexed. [optional]
|
|
340
|
-
_return_http_data_only (bool): response data without head status
|
|
341
|
-
code and headers. Default is True.
|
|
342
|
-
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
343
|
-
will be returned without reading/decoding response data.
|
|
344
|
-
Default is True.
|
|
345
|
-
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
346
|
-
one number provided, it will be total request timeout. It can also
|
|
347
|
-
be a pair (tuple) of (connection, read) timeouts.
|
|
348
|
-
Default is None.
|
|
349
|
-
_check_input_type (bool): specifies if type checking
|
|
350
|
-
should be done one the data sent to the server.
|
|
351
|
-
Default is True.
|
|
352
|
-
_check_return_type (bool): specifies if type checking
|
|
353
|
-
should be done one the data received from the server.
|
|
354
|
-
Default is True.
|
|
355
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
356
|
-
are serialized names, as specified in the OpenAPI document.
|
|
357
|
-
False if the variable names in the input data
|
|
358
|
-
are pythonic names, e.g. snake case (default)
|
|
359
|
-
_content_type (str/None): force body content-type.
|
|
360
|
-
Default is None and content-type will be predicted by allowed
|
|
361
|
-
content-types and body.
|
|
362
|
-
_host_index (int/None): specifies the index of the server
|
|
363
|
-
that we want to use.
|
|
364
|
-
Default is read from the configuration.
|
|
365
|
-
_request_auths (list): set to override the auth_settings for an a single
|
|
366
|
-
request; this effectively ignores the authentication
|
|
367
|
-
in the spec for a single request.
|
|
368
|
-
Default is None
|
|
369
|
-
async_req (bool): execute request asynchronously
|
|
370
|
-
|
|
371
|
-
Returns:
|
|
372
|
-
GetPageOfAudiencesByAccountIdResponse
|
|
373
|
-
If the method is called asynchronously, returns the request
|
|
374
|
-
thread.
|
|
375
|
-
"""
|
|
376
|
-
kwargs['async_req'] = kwargs.get(
|
|
377
|
-
'async_req', False
|
|
378
|
-
)
|
|
379
|
-
kwargs['_return_http_data_only'] = kwargs.get(
|
|
380
|
-
'_return_http_data_only', True
|
|
381
|
-
)
|
|
382
|
-
kwargs['_preload_content'] = kwargs.get(
|
|
383
|
-
'_preload_content', True
|
|
384
|
-
)
|
|
385
|
-
kwargs['_request_timeout'] = kwargs.get(
|
|
386
|
-
'_request_timeout', None
|
|
387
|
-
)
|
|
388
|
-
kwargs['_check_input_type'] = kwargs.get(
|
|
389
|
-
'_check_input_type', True
|
|
390
|
-
)
|
|
391
|
-
kwargs['_check_return_type'] = kwargs.get(
|
|
392
|
-
'_check_return_type', True
|
|
393
|
-
)
|
|
394
|
-
kwargs['_spec_property_naming'] = kwargs.get(
|
|
395
|
-
'_spec_property_naming', False
|
|
396
|
-
)
|
|
397
|
-
kwargs['_content_type'] = kwargs.get(
|
|
398
|
-
'_content_type')
|
|
399
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
400
|
-
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
401
|
-
kwargs['account_id'] = \
|
|
402
|
-
account_id
|
|
403
|
-
return self.get_audiences_by_account_id_endpoint.call_with_http_info(**kwargs)
|
|
404
|
-
|
|
405
|
-
def get_retail_media_audience_v2_list_by_account_id(
|
|
406
|
-
self,
|
|
407
|
-
account_id,
|
|
408
|
-
**kwargs
|
|
409
|
-
):
|
|
410
|
-
"""get_retail_media_audience_v2_list_by_account_id # noqa: E501
|
|
411
|
-
|
|
412
|
-
Get a page of audiences for a given account ID # noqa: E501
|
|
413
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
414
|
-
asynchronous HTTP request, please pass async_req=True
|
|
415
|
-
|
|
416
|
-
>>> thread = api.get_retail_media_audience_v2_list_by_account_id(account_id, async_req=True)
|
|
417
|
-
>>> result = thread.get()
|
|
418
|
-
|
|
419
|
-
Args:
|
|
420
|
-
account_id (int): External account ID which owns audience.
|
|
421
|
-
|
|
422
|
-
Keyword Args:
|
|
423
|
-
limit_to_id ([int]): Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2. [optional]
|
|
424
|
-
page_size (int): Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page. [optional]
|
|
425
|
-
page_index (int): Returns the specified page of results given a pageSize; pages are 0-indexed. [optional]
|
|
426
|
-
_return_http_data_only (bool): response data without head status
|
|
427
|
-
code and headers. Default is True.
|
|
428
|
-
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
429
|
-
will be returned without reading/decoding response data.
|
|
430
|
-
Default is True.
|
|
431
|
-
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
432
|
-
one number provided, it will be total request timeout. It can also
|
|
433
|
-
be a pair (tuple) of (connection, read) timeouts.
|
|
434
|
-
Default is None.
|
|
435
|
-
_check_input_type (bool): specifies if type checking
|
|
436
|
-
should be done one the data sent to the server.
|
|
437
|
-
Default is True.
|
|
438
|
-
_check_return_type (bool): specifies if type checking
|
|
439
|
-
should be done one the data received from the server.
|
|
440
|
-
Default is True.
|
|
441
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
442
|
-
are serialized names, as specified in the OpenAPI document.
|
|
443
|
-
False if the variable names in the input data
|
|
444
|
-
are pythonic names, e.g. snake case (default)
|
|
445
|
-
_content_type (str/None): force body content-type.
|
|
446
|
-
Default is None and content-type will be predicted by allowed
|
|
447
|
-
content-types and body.
|
|
448
|
-
_host_index (int/None): specifies the index of the server
|
|
449
|
-
that we want to use.
|
|
450
|
-
Default is read from the configuration.
|
|
451
|
-
_request_auths (list): set to override the auth_settings for an a single
|
|
452
|
-
request; this effectively ignores the authentication
|
|
453
|
-
in the spec for a single request.
|
|
454
|
-
Default is None
|
|
455
|
-
async_req (bool): execute request asynchronously
|
|
456
|
-
|
|
457
|
-
Returns:
|
|
458
|
-
RetailMediaAudienceV2ListResponse
|
|
459
|
-
If the method is called asynchronously, returns the request
|
|
460
|
-
thread.
|
|
461
|
-
"""
|
|
462
|
-
kwargs['async_req'] = kwargs.get(
|
|
463
|
-
'async_req', False
|
|
464
|
-
)
|
|
465
|
-
kwargs['_return_http_data_only'] = kwargs.get(
|
|
466
|
-
'_return_http_data_only', True
|
|
467
|
-
)
|
|
468
|
-
kwargs['_preload_content'] = kwargs.get(
|
|
469
|
-
'_preload_content', True
|
|
470
|
-
)
|
|
471
|
-
kwargs['_request_timeout'] = kwargs.get(
|
|
472
|
-
'_request_timeout', None
|
|
473
|
-
)
|
|
474
|
-
kwargs['_check_input_type'] = kwargs.get(
|
|
475
|
-
'_check_input_type', True
|
|
476
|
-
)
|
|
477
|
-
kwargs['_check_return_type'] = kwargs.get(
|
|
478
|
-
'_check_return_type', True
|
|
479
|
-
)
|
|
480
|
-
kwargs['_spec_property_naming'] = kwargs.get(
|
|
481
|
-
'_spec_property_naming', False
|
|
482
|
-
)
|
|
483
|
-
kwargs['_content_type'] = kwargs.get(
|
|
484
|
-
'_content_type')
|
|
485
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
486
|
-
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
487
|
-
kwargs['account_id'] = \
|
|
488
|
-
account_id
|
|
489
|
-
return self.get_retail_media_audience_v2_list_by_account_id_endpoint.call_with_http_info(**kwargs)
|
|
490
|
-
|
|
491
180
|
def legacy_get_audience_v1(
|
|
492
181
|
self,
|
|
493
182
|
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/0.0.
|
|
79
|
+
self.user_agent = 'OpenAPI-Generator/0.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: Preview\n"\
|
|
398
|
-
"SDK Package Version: 0.0.
|
|
398
|
+
"SDK Package Version: 0.0.240207".\
|
|
399
399
|
format(env=sys.platform, pyversion=sys.version)
|
|
400
400
|
|
|
401
401
|
def get_host_settings(self):
|
|
@@ -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)
|
|
@@ -88,6 +88,7 @@ class RetailMediaAccount(ModelNormal):
|
|
|
88
88
|
"""
|
|
89
89
|
return {
|
|
90
90
|
'name': (str, none_type,), # noqa: E501
|
|
91
|
+
'company_name': (str, none_type,), # noqa: E501
|
|
91
92
|
'type': (str, none_type,), # noqa: E501
|
|
92
93
|
'sub_type': (str, none_type,), # noqa: E501
|
|
93
94
|
'country_ids': ([int], none_type,), # noqa: E501
|
|
@@ -103,6 +104,7 @@ class RetailMediaAccount(ModelNormal):
|
|
|
103
104
|
|
|
104
105
|
attribute_map = {
|
|
105
106
|
'name': 'name', # noqa: E501
|
|
107
|
+
'company_name': 'companyName', # noqa: E501
|
|
106
108
|
'type': 'type', # noqa: E501
|
|
107
109
|
'sub_type': 'subType', # noqa: E501
|
|
108
110
|
'country_ids': 'countryIds', # noqa: E501
|
|
@@ -153,6 +155,7 @@ class RetailMediaAccount(ModelNormal):
|
|
|
153
155
|
through its discriminator because we passed in
|
|
154
156
|
_visited_composed_classes = (Animal,)
|
|
155
157
|
name (str, none_type): account name. [optional] # noqa: E501
|
|
158
|
+
company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
|
|
156
159
|
type (str, none_type): Type for the account. [optional] # noqa: E501
|
|
157
160
|
sub_type (str, none_type): subtype for the account. [optional] # noqa: E501
|
|
158
161
|
country_ids ([int], none_type): list of countries associated with the account. [optional] # noqa: E501
|
|
@@ -245,6 +248,7 @@ class RetailMediaAccount(ModelNormal):
|
|
|
245
248
|
through its discriminator because we passed in
|
|
246
249
|
_visited_composed_classes = (Animal,)
|
|
247
250
|
name (str, none_type): account name. [optional] # noqa: E501
|
|
251
|
+
company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
|
|
248
252
|
type (str, none_type): Type for the account. [optional] # noqa: E501
|
|
249
253
|
sub_type (str, none_type): subtype for the account. [optional] # noqa: E501
|
|
250
254
|
country_ids ([int], none_type): list of countries associated with the account. [optional] # noqa: E501
|
|
@@ -76,6 +76,7 @@ class RetailMediaBrandAccountCreation(ModelNormal):
|
|
|
76
76
|
"""
|
|
77
77
|
return {
|
|
78
78
|
'name': (str, none_type,), # noqa: E501
|
|
79
|
+
'company_name': (str, none_type,), # noqa: E501
|
|
79
80
|
'brands': ([int], none_type,), # noqa: E501
|
|
80
81
|
}
|
|
81
82
|
|
|
@@ -86,6 +87,7 @@ class RetailMediaBrandAccountCreation(ModelNormal):
|
|
|
86
87
|
|
|
87
88
|
attribute_map = {
|
|
88
89
|
'name': 'name', # noqa: E501
|
|
90
|
+
'company_name': 'companyName', # noqa: E501
|
|
89
91
|
'brands': 'brands', # noqa: E501
|
|
90
92
|
}
|
|
91
93
|
|
|
@@ -131,6 +133,7 @@ class RetailMediaBrandAccountCreation(ModelNormal):
|
|
|
131
133
|
through its discriminator because we passed in
|
|
132
134
|
_visited_composed_classes = (Animal,)
|
|
133
135
|
name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501
|
|
136
|
+
company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
|
|
134
137
|
brands ([int], none_type): list of brands to link to the new account. [optional] # noqa: E501
|
|
135
138
|
"""
|
|
136
139
|
|
|
@@ -218,6 +221,7 @@ class RetailMediaBrandAccountCreation(ModelNormal):
|
|
|
218
221
|
through its discriminator because we passed in
|
|
219
222
|
_visited_composed_classes = (Animal,)
|
|
220
223
|
name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501
|
|
224
|
+
company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
|
|
221
225
|
brands ([int], none_type): list of brands to link to the new account. [optional] # noqa: E501
|
|
222
226
|
"""
|
|
223
227
|
|
|
@@ -81,6 +81,7 @@ class RetailMediaSellerAccountCreation(ModelNormal):
|
|
|
81
81
|
lazy_import()
|
|
82
82
|
return {
|
|
83
83
|
'name': (str, none_type,), # noqa: E501
|
|
84
|
+
'company_name': (str, none_type,), # noqa: E501
|
|
84
85
|
'sellers': ([RetailMediaSeller], none_type,), # noqa: E501
|
|
85
86
|
}
|
|
86
87
|
|
|
@@ -91,6 +92,7 @@ class RetailMediaSellerAccountCreation(ModelNormal):
|
|
|
91
92
|
|
|
92
93
|
attribute_map = {
|
|
93
94
|
'name': 'name', # noqa: E501
|
|
95
|
+
'company_name': 'companyName', # noqa: E501
|
|
94
96
|
'sellers': 'sellers', # noqa: E501
|
|
95
97
|
}
|
|
96
98
|
|
|
@@ -136,6 +138,7 @@ class RetailMediaSellerAccountCreation(ModelNormal):
|
|
|
136
138
|
through its discriminator because we passed in
|
|
137
139
|
_visited_composed_classes = (Animal,)
|
|
138
140
|
name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501
|
|
141
|
+
company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
|
|
139
142
|
sellers ([RetailMediaSeller], none_type): list of sellers to associate to the new account. [optional] # noqa: E501
|
|
140
143
|
"""
|
|
141
144
|
|
|
@@ -223,6 +226,7 @@ class RetailMediaSellerAccountCreation(ModelNormal):
|
|
|
223
226
|
through its discriminator because we passed in
|
|
224
227
|
_visited_composed_classes = (Animal,)
|
|
225
228
|
name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501
|
|
229
|
+
company_name (str, none_type): Display name for reporting the owning entity of ads for the Digital Services Act in the European Union. [optional] # noqa: E501
|
|
226
230
|
sellers ([RetailMediaSeller], none_type): list of sellers to associate to the new account. [optional] # noqa: E501
|
|
227
231
|
"""
|
|
228
232
|
|
|
@@ -89,7 +89,7 @@ class RmLegacyAudienceGetEntityV2(ModelNormal):
|
|
|
89
89
|
"""
|
|
90
90
|
lazy_import()
|
|
91
91
|
return {
|
|
92
|
-
'retailer_id': (
|
|
92
|
+
'retailer_id': (str,), # noqa: E501
|
|
93
93
|
'name': (str,), # noqa: E501
|
|
94
94
|
'user_behavior_details': (RmLegacyAudienceUserBehaviorDetailsV2,), # noqa: E501
|
|
95
95
|
'customer_list_details': (RmLegacySegmentCustomerList,), # noqa: E501
|
|
@@ -118,7 +118,7 @@ class RmLegacyAudienceGetEntityV2(ModelNormal):
|
|
|
118
118
|
"""RmLegacyAudienceGetEntityV2 - a model defined in OpenAPI
|
|
119
119
|
|
|
120
120
|
Args:
|
|
121
|
-
retailer_id (
|
|
121
|
+
retailer_id (str): ID of the retailer associated with this audience
|
|
122
122
|
name (str): Name of the audience
|
|
123
123
|
|
|
124
124
|
Keyword Args:
|
|
@@ -211,7 +211,7 @@ class RmLegacyAudienceGetEntityV2(ModelNormal):
|
|
|
211
211
|
"""RmLegacyAudienceGetEntityV2 - a model defined in OpenAPI
|
|
212
212
|
|
|
213
213
|
Args:
|
|
214
|
-
retailer_id (
|
|
214
|
+
retailer_id (str): ID of the retailer associated with this audience
|
|
215
215
|
name (str): Name of the audience
|
|
216
216
|
|
|
217
217
|
Keyword Args:
|
|
@@ -33,17 +33,14 @@ from criteo_api_retailmedia_preview.model.choice_variable_value import ChoiceVar
|
|
|
33
33
|
from criteo_api_retailmedia_preview.model.color_variable_value import ColorVariableValue
|
|
34
34
|
from criteo_api_retailmedia_preview.model.common_error import CommonError
|
|
35
35
|
from criteo_api_retailmedia_preview.model.common_problem import CommonProblem
|
|
36
|
-
from criteo_api_retailmedia_preview.model.common_status_code_response import CommonStatusCodeResponse
|
|
37
36
|
from criteo_api_retailmedia_preview.model.common_warning import CommonWarning
|
|
38
37
|
from criteo_api_retailmedia_preview.model.cpc_rate_card_preview import CpcRateCardPreview
|
|
39
38
|
from criteo_api_retailmedia_preview.model.cpc_rate_card_preview_response import CpcRateCardPreviewResponse
|
|
40
|
-
from criteo_api_retailmedia_preview.model.create_user_behavior_segment_v2 import CreateUserBehaviorSegmentV2
|
|
41
39
|
from criteo_api_retailmedia_preview.model.creative202210 import Creative202210
|
|
42
40
|
from criteo_api_retailmedia_preview.model.creative202210_list_response import Creative202210ListResponse
|
|
43
41
|
from criteo_api_retailmedia_preview.model.creative202210_response import Creative202210Response
|
|
44
42
|
from criteo_api_retailmedia_preview.model.creative_create_model202207 import CreativeCreateModel202207
|
|
45
43
|
from criteo_api_retailmedia_preview.model.creative_update_model202207 import CreativeUpdateModel202207
|
|
46
|
-
from criteo_api_retailmedia_preview.model.customer_list_details import CustomerListDetails
|
|
47
44
|
from criteo_api_retailmedia_preview.model.daily_line_item_budget_override import DailyLineItemBudgetOverride
|
|
48
45
|
from criteo_api_retailmedia_preview.model.export_report_column import ExportReportColumn
|
|
49
46
|
from criteo_api_retailmedia_preview.model.export_report_meta_data import ExportReportMetaData
|
|
@@ -56,7 +53,6 @@ from criteo_api_retailmedia_preview.model.external_product_button_response impor
|
|
|
56
53
|
from criteo_api_retailmedia_preview.model.external_retailer import ExternalRetailer
|
|
57
54
|
from criteo_api_retailmedia_preview.model.files_variable_value import FilesVariableValue
|
|
58
55
|
from criteo_api_retailmedia_preview.model.files_variables_specification import FilesVariablesSpecification
|
|
59
|
-
from criteo_api_retailmedia_preview.model.get_page_of_audiences_by_account_id_response import GetPageOfAudiencesByAccountIdResponse
|
|
60
56
|
from criteo_api_retailmedia_preview.model.grant_consent_input import GrantConsentInput
|
|
61
57
|
from criteo_api_retailmedia_preview.model.grant_consent_model import GrantConsentModel
|
|
62
58
|
from criteo_api_retailmedia_preview.model.grant_consent_model_value_resource import GrantConsentModelValueResource
|
|
@@ -112,11 +108,6 @@ from criteo_api_retailmedia_preview.model.resource_of_sku_slim_data_v2 import Re
|
|
|
112
108
|
from criteo_api_retailmedia_preview.model.resource_of_template import ResourceOfTemplate
|
|
113
109
|
from criteo_api_retailmedia_preview.model.resource_outcome_of_retail_media_account import ResourceOutcomeOfRetailMediaAccount
|
|
114
110
|
from criteo_api_retailmedia_preview.model.retail_media_account import RetailMediaAccount
|
|
115
|
-
from criteo_api_retailmedia_preview.model.retail_media_audience import RetailMediaAudience
|
|
116
|
-
from criteo_api_retailmedia_preview.model.retail_media_audience_attributes import RetailMediaAudienceAttributes
|
|
117
|
-
from criteo_api_retailmedia_preview.model.retail_media_audience_v2 import RetailMediaAudienceV2
|
|
118
|
-
from criteo_api_retailmedia_preview.model.retail_media_audience_v2_attributes import RetailMediaAudienceV2Attributes
|
|
119
|
-
from criteo_api_retailmedia_preview.model.retail_media_audience_v2_list_response import RetailMediaAudienceV2ListResponse
|
|
120
111
|
from criteo_api_retailmedia_preview.model.retail_media_brand_account_creation import RetailMediaBrandAccountCreation
|
|
121
112
|
from criteo_api_retailmedia_preview.model.retail_media_externalv1_add_remove_keyword_model import RetailMediaExternalv1AddRemoveKeywordModel
|
|
122
113
|
from criteo_api_retailmedia_preview.model.retail_media_externalv1_add_remove_keywords_model import RetailMediaExternalv1AddRemoveKeywordsModel
|
|
@@ -184,8 +175,6 @@ from criteo_api_retailmedia_preview.model.template_variable import TemplateVaria
|
|
|
184
175
|
from criteo_api_retailmedia_preview.model.template_variable_value import TemplateVariableValue
|
|
185
176
|
from criteo_api_retailmedia_preview.model.text_variable_specification import TextVariableSpecification
|
|
186
177
|
from criteo_api_retailmedia_preview.model.text_variable_value import TextVariableValue
|
|
187
|
-
from criteo_api_retailmedia_preview.model.user_behavior_details import UserBehaviorDetails
|
|
188
|
-
from criteo_api_retailmedia_preview.model.user_behavior_details_v2 import UserBehaviorDetailsV2
|
|
189
178
|
from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_of_int64 import ValueResourceCollectionOutcomeOfInt64
|
|
190
179
|
from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_of_retail_media_seller import ValueResourceCollectionOutcomeOfRetailMediaSeller
|
|
191
180
|
from criteo_api_retailmedia_preview.model.value_resource_input_of_campaign_budget_overrides import ValueResourceInputOfCampaignBudgetOverrides
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: criteo-api-retailmedia-sdk
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.240207
|
|
4
4
|
Summary: Criteo API SDK
|
|
5
5
|
Home-page: https://github.com/criteo/criteo-api-python-sdk
|
|
6
6
|
Author: Criteo
|
|
@@ -26,9 +26,9 @@ IMPORTANT: This Python package links to Criteo production environment. Any test
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
```sh
|
|
29
|
-
pip install criteo-api-retailmedia-sdk==0.0.
|
|
29
|
+
pip install criteo-api-retailmedia-sdk==0.0.240207
|
|
30
30
|
```
|
|
31
|
-
(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.
|
|
31
|
+
(you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.240207`)
|
|
32
32
|
|
|
33
33
|
Then import the package:
|
|
34
34
|
```python
|