criteo-api-retailmedia-sdk 0.0.240118__py3-none-any.whl → 0.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.
- criteo_api_retailmedia_preview/__init__.py +1 -1
- criteo_api_retailmedia_preview/api/accounts_api.py +181 -35
- criteo_api_retailmedia_preview/api/analytics_api.py +142 -0
- criteo_api_retailmedia_preview/api/audience_api.py +2 -313
- criteo_api_retailmedia_preview/api/campaign_api.py +443 -974
- criteo_api_retailmedia_preview/api/catalog_api.py +312 -0
- criteo_api_retailmedia_preview/api_client.py +4 -4
- criteo_api_retailmedia_preview/apis/__init__.py +1 -0
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/{creative202210.py → async_accounts_report.py} +149 -95
- criteo_api_retailmedia_preview/model/{external_catalog_request_preview.py → async_accounts_report_request.py} +13 -10
- criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +273 -0
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +57 -53
- criteo_api_retailmedia_preview/model/async_line_items_report.py +57 -54
- criteo_api_retailmedia_preview/model/{customer_list_details.py → batch_accepted_response.py} +11 -11
- criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_of_int64.py → change_details.py} +27 -26
- criteo_api_retailmedia_preview/model/{color_variable_value.py → custom_attribute.py} +17 -16
- criteo_api_retailmedia_preview/model/export_report_column.py +2 -2
- criteo_api_retailmedia_preview/model/external_account.py +4 -0
- criteo_api_retailmedia_preview/model/{files_variable_value.py → external_line_item_capping_v2.py} +22 -13
- criteo_api_retailmedia_preview/model/external_line_item_page_category_v2.py +273 -0
- criteo_api_retailmedia_preview/model/{page_type_environment.py → external_line_item_page_v2.py} +40 -29
- criteo_api_retailmedia_preview/model/{retail_media_audience_attributes.py → external_preferred_line_item_create_model_v2.py} +79 -25
- criteo_api_retailmedia_preview/model/{external_catalog_status.py → external_preferred_line_item_update_model_v2.py} +70 -47
- criteo_api_retailmedia_preview/model/{template.py → external_preferred_line_item_v2.py} +93 -70
- criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → fail_response.py} +21 -23
- criteo_api_retailmedia_preview/model/input_resource_of_preferred_line_item_create_model_v2.py +273 -0
- criteo_api_retailmedia_preview/model/{retail_media_audience.py → insertion_order_history_change_data_capture.py} +48 -42
- criteo_api_retailmedia_preview/model/installment.py +273 -0
- criteo_api_retailmedia_preview/model/{creative202210_response.py → loyalty_points.py} +15 -25
- criteo_api_retailmedia_preview/model/metadata.py +273 -0
- criteo_api_retailmedia_preview/model/page_of_insertion_order_history_change_data_capture.py +276 -0
- criteo_api_retailmedia_preview/model/{json_api_request_of_catalog_request_preview.py → preferred_line_item_create_model_v2_request.py} +8 -8
- criteo_api_retailmedia_preview/model/{common_status_code_response.py → preferred_line_item_update_model_v2_request.py} +9 -15
- criteo_api_retailmedia_preview/model/{retail_media_audience_v2_list_response.py → preferred_line_item_v2_paged_list_response.py} +21 -27
- criteo_api_retailmedia_preview/model/{creative202210_list_response.py → preferred_line_item_v2_response.py} +16 -16
- criteo_api_retailmedia_preview/model/price.py +267 -0
- criteo_api_retailmedia_preview/model/product.py +626 -0
- criteo_api_retailmedia_preview/model/{retail_media_audience_v2.py → product_importer_error.py} +37 -29
- criteo_api_retailmedia_preview/model/product_importer_warning.py +299 -0
- criteo_api_retailmedia_preview/model/product_shipping.py +293 -0
- criteo_api_retailmedia_preview/model/product_shipping_dimension.py +267 -0
- criteo_api_retailmedia_preview/model/product_shipping_weight.py +267 -0
- criteo_api_retailmedia_preview/model/product_tax.py +283 -0
- criteo_api_retailmedia_preview/model/{choice_variable_value.py → product_unit_pricing_base_measure.py} +13 -15
- criteo_api_retailmedia_preview/model/{text_variable_specification.py → product_unit_pricing_measure.py} +11 -7
- criteo_api_retailmedia_preview/model/{section.py → products_custom_batch_request.py} +13 -19
- criteo_api_retailmedia_preview/model/{retail_media_audience_v2_attributes.py → products_custom_batch_request_entry.py} +43 -29
- criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py → report_detail_error.py} +35 -15
- criteo_api_retailmedia_preview/model/report_detail_errors.py +281 -0
- criteo_api_retailmedia_preview/model/{template_variable_value.py → report_ok_response.py} +58 -43
- criteo_api_retailmedia_preview/model/{resource_of_creative202210.py → resource_of_preferred_line_item_update_model_v2.py} +9 -9
- criteo_api_retailmedia_preview/model/{resource_of_template.py → resource_of_preferred_line_item_v2.py} +9 -9
- 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/{text_variable_value.py → retail_media_brands.py} +10 -22
- 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/model/sync_attributed_transactions_report.py +37 -37
- criteo_api_retailmedia_preview/model/sync_campaigns_report.py +51 -47
- criteo_api_retailmedia_preview/model/sync_line_items_report.py +53 -50
- criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brand_account_creation.py +262 -0
- criteo_api_retailmedia_preview/model/{hyperlink_variable_value.py → value_resource_input_of_retail_media_brands.py} +15 -22
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brand_account_creation.py +266 -0
- criteo_api_retailmedia_preview/model/{value_resource_of_int64.py → value_resource_of_retail_media_brands.py} +11 -6
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation.py +266 -0
- criteo_api_retailmedia_preview/models/__init__.py +48 -42
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/RECORD +73 -66
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_preview/model/choice_option.py +0 -281
- criteo_api_retailmedia_preview/model/choice_variable_specification.py +0 -283
- criteo_api_retailmedia_preview/model/create_user_behavior_segment_v2.py +0 -309
- criteo_api_retailmedia_preview/model/creative_create_model202207.py +0 -297
- criteo_api_retailmedia_preview/model/creative_update_model202207.py +0 -297
- criteo_api_retailmedia_preview/model/files_variables_specification.py +0 -290
- criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py +0 -295
- criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py +0 -287
- criteo_api_retailmedia_preview/model/template_list_response.py +0 -281
- criteo_api_retailmedia_preview/model/template_response.py +0 -281
- criteo_api_retailmedia_preview/model/template_variable.py +0 -310
- 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.240404.dist-info}/top_level.txt +0 -0
|
@@ -23,11 +23,12 @@ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
|
|
|
23
23
|
)
|
|
24
24
|
from criteo_api_retailmedia_preview.model.grant_consent_input import GrantConsentInput
|
|
25
25
|
from criteo_api_retailmedia_preview.model.resource_outcome_of_retail_media_account import ResourceOutcomeOfRetailMediaAccount
|
|
26
|
-
from criteo_api_retailmedia_preview.model.
|
|
27
|
-
from criteo_api_retailmedia_preview.model.retail_media_seller import RetailMediaSeller
|
|
28
|
-
from criteo_api_retailmedia_preview.model.retail_media_seller_account_creation import RetailMediaSellerAccountCreation
|
|
29
|
-
from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_of_int64 import ValueResourceCollectionOutcomeOfInt64
|
|
26
|
+
from criteo_api_retailmedia_preview.model.value_resource_collection_input_of_retail_media_seller import ValueResourceCollectionInputOfRetailMediaSeller
|
|
30
27
|
from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_of_retail_media_seller import ValueResourceCollectionOutcomeOfRetailMediaSeller
|
|
28
|
+
from criteo_api_retailmedia_preview.model.value_resource_input_of_retail_media_brand_account_creation import ValueResourceInputOfRetailMediaBrandAccountCreation
|
|
29
|
+
from criteo_api_retailmedia_preview.model.value_resource_input_of_retail_media_brands import ValueResourceInputOfRetailMediaBrands
|
|
30
|
+
from criteo_api_retailmedia_preview.model.value_resource_input_of_retail_media_seller_account_creation import ValueResourceInputOfRetailMediaSellerAccountCreation
|
|
31
|
+
from criteo_api_retailmedia_preview.model.value_resource_of_retail_media_brands import ValueResourceOfRetailMediaBrands
|
|
31
32
|
|
|
32
33
|
|
|
33
34
|
class AccountsApi(object):
|
|
@@ -41,6 +42,67 @@ class AccountsApi(object):
|
|
|
41
42
|
if api_client is None:
|
|
42
43
|
api_client = ApiClient()
|
|
43
44
|
self.api_client = api_client
|
|
45
|
+
self.add_brands_endpoint = _Endpoint(
|
|
46
|
+
settings={
|
|
47
|
+
'response_type': (ValueResourceOfRetailMediaBrands,),
|
|
48
|
+
'auth': [
|
|
49
|
+
'oauth',
|
|
50
|
+
'oauth'
|
|
51
|
+
],
|
|
52
|
+
'endpoint_path': '/preview/retail-media/account-management/accounts/{accountId}/brands/add',
|
|
53
|
+
'operation_id': 'add_brands',
|
|
54
|
+
'http_method': 'POST',
|
|
55
|
+
'servers': None,
|
|
56
|
+
},
|
|
57
|
+
params_map={
|
|
58
|
+
'all': [
|
|
59
|
+
'account_id',
|
|
60
|
+
'value_resource_input_of_retail_media_brands',
|
|
61
|
+
],
|
|
62
|
+
'required': [
|
|
63
|
+
'account_id',
|
|
64
|
+
],
|
|
65
|
+
'nullable': [
|
|
66
|
+
],
|
|
67
|
+
'enum': [
|
|
68
|
+
],
|
|
69
|
+
'validation': [
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
root_map={
|
|
73
|
+
'validations': {
|
|
74
|
+
},
|
|
75
|
+
'allowed_values': {
|
|
76
|
+
},
|
|
77
|
+
'openapi_types': {
|
|
78
|
+
'account_id':
|
|
79
|
+
(str,),
|
|
80
|
+
'value_resource_input_of_retail_media_brands':
|
|
81
|
+
(ValueResourceInputOfRetailMediaBrands,),
|
|
82
|
+
},
|
|
83
|
+
'attribute_map': {
|
|
84
|
+
'account_id': 'accountId',
|
|
85
|
+
},
|
|
86
|
+
'location_map': {
|
|
87
|
+
'account_id': 'path',
|
|
88
|
+
'value_resource_input_of_retail_media_brands': 'body',
|
|
89
|
+
},
|
|
90
|
+
'collection_format_map': {
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
headers_map={
|
|
94
|
+
'accept': [
|
|
95
|
+
'application/json'
|
|
96
|
+
],
|
|
97
|
+
'content_type': [
|
|
98
|
+
'application/json-patch+json',
|
|
99
|
+
'application/json',
|
|
100
|
+
'text/json',
|
|
101
|
+
'application/*+json'
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
api_client=api_client
|
|
105
|
+
)
|
|
44
106
|
self.create_private_market_demand_brand_account_endpoint = _Endpoint(
|
|
45
107
|
settings={
|
|
46
108
|
'response_type': (ResourceOutcomeOfRetailMediaAccount,),
|
|
@@ -56,7 +118,7 @@ class AccountsApi(object):
|
|
|
56
118
|
params_map={
|
|
57
119
|
'all': [
|
|
58
120
|
'account_id',
|
|
59
|
-
'
|
|
121
|
+
'value_resource_input_of_retail_media_brand_account_creation',
|
|
60
122
|
],
|
|
61
123
|
'required': [
|
|
62
124
|
'account_id',
|
|
@@ -76,15 +138,15 @@ class AccountsApi(object):
|
|
|
76
138
|
'openapi_types': {
|
|
77
139
|
'account_id':
|
|
78
140
|
(str,),
|
|
79
|
-
'
|
|
80
|
-
(
|
|
141
|
+
'value_resource_input_of_retail_media_brand_account_creation':
|
|
142
|
+
(ValueResourceInputOfRetailMediaBrandAccountCreation,),
|
|
81
143
|
},
|
|
82
144
|
'attribute_map': {
|
|
83
145
|
'account_id': 'accountId',
|
|
84
146
|
},
|
|
85
147
|
'location_map': {
|
|
86
148
|
'account_id': 'path',
|
|
87
|
-
'
|
|
149
|
+
'value_resource_input_of_retail_media_brand_account_creation': 'body',
|
|
88
150
|
},
|
|
89
151
|
'collection_format_map': {
|
|
90
152
|
}
|
|
@@ -117,7 +179,7 @@ class AccountsApi(object):
|
|
|
117
179
|
params_map={
|
|
118
180
|
'all': [
|
|
119
181
|
'account_id',
|
|
120
|
-
'
|
|
182
|
+
'value_resource_input_of_retail_media_seller_account_creation',
|
|
121
183
|
],
|
|
122
184
|
'required': [
|
|
123
185
|
'account_id',
|
|
@@ -137,15 +199,15 @@ class AccountsApi(object):
|
|
|
137
199
|
'openapi_types': {
|
|
138
200
|
'account_id':
|
|
139
201
|
(str,),
|
|
140
|
-
'
|
|
141
|
-
(
|
|
202
|
+
'value_resource_input_of_retail_media_seller_account_creation':
|
|
203
|
+
(ValueResourceInputOfRetailMediaSellerAccountCreation,),
|
|
142
204
|
},
|
|
143
205
|
'attribute_map': {
|
|
144
206
|
'account_id': 'accountId',
|
|
145
207
|
},
|
|
146
208
|
'location_map': {
|
|
147
209
|
'account_id': 'path',
|
|
148
|
-
'
|
|
210
|
+
'value_resource_input_of_retail_media_seller_account_creation': 'body',
|
|
149
211
|
},
|
|
150
212
|
'collection_format_map': {
|
|
151
213
|
}
|
|
@@ -222,22 +284,22 @@ class AccountsApi(object):
|
|
|
222
284
|
},
|
|
223
285
|
api_client=api_client
|
|
224
286
|
)
|
|
225
|
-
self.
|
|
287
|
+
self.remove_brands_endpoint = _Endpoint(
|
|
226
288
|
settings={
|
|
227
|
-
'response_type': (
|
|
289
|
+
'response_type': (ValueResourceOfRetailMediaBrands,),
|
|
228
290
|
'auth': [
|
|
229
291
|
'oauth',
|
|
230
292
|
'oauth'
|
|
231
293
|
],
|
|
232
|
-
'endpoint_path': '/preview/retail-media/account-management/accounts/{accountId}/brands',
|
|
233
|
-
'operation_id': '
|
|
234
|
-
'http_method': '
|
|
294
|
+
'endpoint_path': '/preview/retail-media/account-management/accounts/{accountId}/brands/remove',
|
|
295
|
+
'operation_id': 'remove_brands',
|
|
296
|
+
'http_method': 'POST',
|
|
235
297
|
'servers': None,
|
|
236
298
|
},
|
|
237
299
|
params_map={
|
|
238
300
|
'all': [
|
|
239
301
|
'account_id',
|
|
240
|
-
'
|
|
302
|
+
'value_resource_input_of_retail_media_brands',
|
|
241
303
|
],
|
|
242
304
|
'required': [
|
|
243
305
|
'account_id',
|
|
@@ -257,15 +319,15 @@ class AccountsApi(object):
|
|
|
257
319
|
'openapi_types': {
|
|
258
320
|
'account_id':
|
|
259
321
|
(str,),
|
|
260
|
-
'
|
|
261
|
-
(
|
|
322
|
+
'value_resource_input_of_retail_media_brands':
|
|
323
|
+
(ValueResourceInputOfRetailMediaBrands,),
|
|
262
324
|
},
|
|
263
325
|
'attribute_map': {
|
|
264
326
|
'account_id': 'accountId',
|
|
265
327
|
},
|
|
266
328
|
'location_map': {
|
|
267
329
|
'account_id': 'path',
|
|
268
|
-
'
|
|
330
|
+
'value_resource_input_of_retail_media_brands': 'body',
|
|
269
331
|
},
|
|
270
332
|
'collection_format_map': {
|
|
271
333
|
}
|
|
@@ -298,7 +360,7 @@ class AccountsApi(object):
|
|
|
298
360
|
params_map={
|
|
299
361
|
'all': [
|
|
300
362
|
'account_id',
|
|
301
|
-
'
|
|
363
|
+
'value_resource_collection_input_of_retail_media_seller',
|
|
302
364
|
],
|
|
303
365
|
'required': [
|
|
304
366
|
'account_id',
|
|
@@ -318,15 +380,15 @@ class AccountsApi(object):
|
|
|
318
380
|
'openapi_types': {
|
|
319
381
|
'account_id':
|
|
320
382
|
(str,),
|
|
321
|
-
'
|
|
322
|
-
(
|
|
383
|
+
'value_resource_collection_input_of_retail_media_seller':
|
|
384
|
+
(ValueResourceCollectionInputOfRetailMediaSeller,),
|
|
323
385
|
},
|
|
324
386
|
'attribute_map': {
|
|
325
387
|
'account_id': 'accountId',
|
|
326
388
|
},
|
|
327
389
|
'location_map': {
|
|
328
390
|
'account_id': 'path',
|
|
329
|
-
'
|
|
391
|
+
'value_resource_collection_input_of_retail_media_seller': 'body',
|
|
330
392
|
},
|
|
331
393
|
'collection_format_map': {
|
|
332
394
|
}
|
|
@@ -345,6 +407,90 @@ class AccountsApi(object):
|
|
|
345
407
|
api_client=api_client
|
|
346
408
|
)
|
|
347
409
|
|
|
410
|
+
def add_brands(
|
|
411
|
+
self,
|
|
412
|
+
account_id,
|
|
413
|
+
**kwargs
|
|
414
|
+
):
|
|
415
|
+
"""add_brands # noqa: E501
|
|
416
|
+
|
|
417
|
+
Add brands to an account # noqa: E501
|
|
418
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
419
|
+
asynchronous HTTP request, please pass async_req=True
|
|
420
|
+
|
|
421
|
+
>>> thread = api.add_brands(account_id, async_req=True)
|
|
422
|
+
>>> result = thread.get()
|
|
423
|
+
|
|
424
|
+
Args:
|
|
425
|
+
account_id (str): the account id to update
|
|
426
|
+
|
|
427
|
+
Keyword Args:
|
|
428
|
+
value_resource_input_of_retail_media_brands (ValueResourceInputOfRetailMediaBrands): brands to associate to account. [optional]
|
|
429
|
+
_return_http_data_only (bool): response data without head status
|
|
430
|
+
code and headers. Default is True.
|
|
431
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
432
|
+
will be returned without reading/decoding response data.
|
|
433
|
+
Default is True.
|
|
434
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
435
|
+
one number provided, it will be total request timeout. It can also
|
|
436
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
437
|
+
Default is None.
|
|
438
|
+
_check_input_type (bool): specifies if type checking
|
|
439
|
+
should be done one the data sent to the server.
|
|
440
|
+
Default is True.
|
|
441
|
+
_check_return_type (bool): specifies if type checking
|
|
442
|
+
should be done one the data received from the server.
|
|
443
|
+
Default is True.
|
|
444
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
445
|
+
are serialized names, as specified in the OpenAPI document.
|
|
446
|
+
False if the variable names in the input data
|
|
447
|
+
are pythonic names, e.g. snake case (default)
|
|
448
|
+
_content_type (str/None): force body content-type.
|
|
449
|
+
Default is None and content-type will be predicted by allowed
|
|
450
|
+
content-types and body.
|
|
451
|
+
_host_index (int/None): specifies the index of the server
|
|
452
|
+
that we want to use.
|
|
453
|
+
Default is read from the configuration.
|
|
454
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
455
|
+
request; this effectively ignores the authentication
|
|
456
|
+
in the spec for a single request.
|
|
457
|
+
Default is None
|
|
458
|
+
async_req (bool): execute request asynchronously
|
|
459
|
+
|
|
460
|
+
Returns:
|
|
461
|
+
ValueResourceOfRetailMediaBrands
|
|
462
|
+
If the method is called asynchronously, returns the request
|
|
463
|
+
thread.
|
|
464
|
+
"""
|
|
465
|
+
kwargs['async_req'] = kwargs.get(
|
|
466
|
+
'async_req', False
|
|
467
|
+
)
|
|
468
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
469
|
+
'_return_http_data_only', True
|
|
470
|
+
)
|
|
471
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
472
|
+
'_preload_content', True
|
|
473
|
+
)
|
|
474
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
475
|
+
'_request_timeout', None
|
|
476
|
+
)
|
|
477
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
478
|
+
'_check_input_type', True
|
|
479
|
+
)
|
|
480
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
481
|
+
'_check_return_type', True
|
|
482
|
+
)
|
|
483
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
484
|
+
'_spec_property_naming', False
|
|
485
|
+
)
|
|
486
|
+
kwargs['_content_type'] = kwargs.get(
|
|
487
|
+
'_content_type')
|
|
488
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
489
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
490
|
+
kwargs['account_id'] = \
|
|
491
|
+
account_id
|
|
492
|
+
return self.add_brands_endpoint.call_with_http_info(**kwargs)
|
|
493
|
+
|
|
348
494
|
def create_private_market_demand_brand_account(
|
|
349
495
|
self,
|
|
350
496
|
account_id,
|
|
@@ -363,7 +509,7 @@ class AccountsApi(object):
|
|
|
363
509
|
account_id (str): Account Id for the parent private market account
|
|
364
510
|
|
|
365
511
|
Keyword Args:
|
|
366
|
-
|
|
512
|
+
value_resource_input_of_retail_media_brand_account_creation (ValueResourceInputOfRetailMediaBrandAccountCreation): Initial creation and configuration options for the new account. [optional]
|
|
367
513
|
_return_http_data_only (bool): response data without head status
|
|
368
514
|
code and headers. Default is True.
|
|
369
515
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -447,7 +593,7 @@ class AccountsApi(object):
|
|
|
447
593
|
account_id (str): Account Id for the parent private market account
|
|
448
594
|
|
|
449
595
|
Keyword Args:
|
|
450
|
-
|
|
596
|
+
value_resource_input_of_retail_media_seller_account_creation (ValueResourceInputOfRetailMediaSellerAccountCreation): Initial creation and configuration options for the new account. [optional]
|
|
451
597
|
_return_http_data_only (bool): response data without head status
|
|
452
598
|
code and headers. Default is True.
|
|
453
599
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -597,25 +743,25 @@ class AccountsApi(object):
|
|
|
597
743
|
account_id
|
|
598
744
|
return self.grant_consent_endpoint.call_with_http_info(**kwargs)
|
|
599
745
|
|
|
600
|
-
def
|
|
746
|
+
def remove_brands(
|
|
601
747
|
self,
|
|
602
748
|
account_id,
|
|
603
749
|
**kwargs
|
|
604
750
|
):
|
|
605
|
-
"""
|
|
751
|
+
"""remove_brands # noqa: E501
|
|
606
752
|
|
|
607
|
-
|
|
753
|
+
Remove a brand from an account # noqa: E501
|
|
608
754
|
This method makes a synchronous HTTP request by default. To make an
|
|
609
755
|
asynchronous HTTP request, please pass async_req=True
|
|
610
756
|
|
|
611
|
-
>>> thread = api.
|
|
757
|
+
>>> thread = api.remove_brands(account_id, async_req=True)
|
|
612
758
|
>>> result = thread.get()
|
|
613
759
|
|
|
614
760
|
Args:
|
|
615
761
|
account_id (str): the account id to update
|
|
616
762
|
|
|
617
763
|
Keyword Args:
|
|
618
|
-
|
|
764
|
+
value_resource_input_of_retail_media_brands (ValueResourceInputOfRetailMediaBrands): [optional]
|
|
619
765
|
_return_http_data_only (bool): response data without head status
|
|
620
766
|
code and headers. Default is True.
|
|
621
767
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -648,7 +794,7 @@ class AccountsApi(object):
|
|
|
648
794
|
async_req (bool): execute request asynchronously
|
|
649
795
|
|
|
650
796
|
Returns:
|
|
651
|
-
|
|
797
|
+
ValueResourceOfRetailMediaBrands
|
|
652
798
|
If the method is called asynchronously, returns the request
|
|
653
799
|
thread.
|
|
654
800
|
"""
|
|
@@ -679,7 +825,7 @@ class AccountsApi(object):
|
|
|
679
825
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
680
826
|
kwargs['account_id'] = \
|
|
681
827
|
account_id
|
|
682
|
-
return self.
|
|
828
|
+
return self.remove_brands_endpoint.call_with_http_info(**kwargs)
|
|
683
829
|
|
|
684
830
|
def update_sellers(
|
|
685
831
|
self,
|
|
@@ -699,7 +845,7 @@ class AccountsApi(object):
|
|
|
699
845
|
account_id (str): the account id to update
|
|
700
846
|
|
|
701
847
|
Keyword Args:
|
|
702
|
-
|
|
848
|
+
value_resource_collection_input_of_retail_media_seller (ValueResourceCollectionInputOfRetailMediaSeller): sellers to associate. [optional]
|
|
703
849
|
_return_http_data_only (bool): response data without head status
|
|
704
850
|
code and headers. Default is True.
|
|
705
851
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -21,6 +21,7 @@ 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.async_accounts_report_request import AsyncAccountsReportRequest
|
|
24
25
|
from criteo_api_retailmedia_preview.model.async_campaigns_report_request import AsyncCampaignsReportRequest
|
|
25
26
|
from criteo_api_retailmedia_preview.model.async_line_items_report_request import AsyncLineItemsReportRequest
|
|
26
27
|
from criteo_api_retailmedia_preview.model.async_report_response import AsyncReportResponse
|
|
@@ -42,6 +43,64 @@ class AnalyticsApi(object):
|
|
|
42
43
|
if api_client is None:
|
|
43
44
|
api_client = ApiClient()
|
|
44
45
|
self.api_client = api_client
|
|
46
|
+
self.generate_async_accounts_report_endpoint = _Endpoint(
|
|
47
|
+
settings={
|
|
48
|
+
'response_type': (AsyncReportResponse,),
|
|
49
|
+
'auth': [
|
|
50
|
+
'oauth',
|
|
51
|
+
'oauth'
|
|
52
|
+
],
|
|
53
|
+
'endpoint_path': '/preview/retail-media/reports/accounts',
|
|
54
|
+
'operation_id': 'generate_async_accounts_report',
|
|
55
|
+
'http_method': 'POST',
|
|
56
|
+
'servers': None,
|
|
57
|
+
},
|
|
58
|
+
params_map={
|
|
59
|
+
'all': [
|
|
60
|
+
'async_accounts_report_request',
|
|
61
|
+
],
|
|
62
|
+
'required': [
|
|
63
|
+
'async_accounts_report_request',
|
|
64
|
+
],
|
|
65
|
+
'nullable': [
|
|
66
|
+
],
|
|
67
|
+
'enum': [
|
|
68
|
+
],
|
|
69
|
+
'validation': [
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
root_map={
|
|
73
|
+
'validations': {
|
|
74
|
+
},
|
|
75
|
+
'allowed_values': {
|
|
76
|
+
},
|
|
77
|
+
'openapi_types': {
|
|
78
|
+
'async_accounts_report_request':
|
|
79
|
+
(AsyncAccountsReportRequest,),
|
|
80
|
+
},
|
|
81
|
+
'attribute_map': {
|
|
82
|
+
},
|
|
83
|
+
'location_map': {
|
|
84
|
+
'async_accounts_report_request': 'body',
|
|
85
|
+
},
|
|
86
|
+
'collection_format_map': {
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
headers_map={
|
|
90
|
+
'accept': [
|
|
91
|
+
'text/plain',
|
|
92
|
+
'application/json',
|
|
93
|
+
'text/json'
|
|
94
|
+
],
|
|
95
|
+
'content_type': [
|
|
96
|
+
'application/json-patch+json',
|
|
97
|
+
'application/json',
|
|
98
|
+
'text/json',
|
|
99
|
+
'application/*+json'
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
api_client=api_client
|
|
103
|
+
)
|
|
45
104
|
self.generate_async_campaigns_report_endpoint = _Endpoint(
|
|
46
105
|
settings={
|
|
47
106
|
'response_type': (AsyncReportResponse,),
|
|
@@ -441,6 +500,89 @@ class AnalyticsApi(object):
|
|
|
441
500
|
api_client=api_client
|
|
442
501
|
)
|
|
443
502
|
|
|
503
|
+
def generate_async_accounts_report(
|
|
504
|
+
self,
|
|
505
|
+
async_accounts_report_request,
|
|
506
|
+
**kwargs
|
|
507
|
+
):
|
|
508
|
+
"""generate_async_accounts_report # noqa: E501
|
|
509
|
+
|
|
510
|
+
Returns an asynchronous Accounts Report # noqa: E501
|
|
511
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
512
|
+
asynchronous HTTP request, please pass async_req=True
|
|
513
|
+
|
|
514
|
+
>>> thread = api.generate_async_accounts_report(async_accounts_report_request, async_req=True)
|
|
515
|
+
>>> result = thread.get()
|
|
516
|
+
|
|
517
|
+
Args:
|
|
518
|
+
async_accounts_report_request (AsyncAccountsReportRequest):
|
|
519
|
+
|
|
520
|
+
Keyword Args:
|
|
521
|
+
_return_http_data_only (bool): response data without head status
|
|
522
|
+
code and headers. Default is True.
|
|
523
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
524
|
+
will be returned without reading/decoding response data.
|
|
525
|
+
Default is True.
|
|
526
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
527
|
+
one number provided, it will be total request timeout. It can also
|
|
528
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
529
|
+
Default is None.
|
|
530
|
+
_check_input_type (bool): specifies if type checking
|
|
531
|
+
should be done one the data sent to the server.
|
|
532
|
+
Default is True.
|
|
533
|
+
_check_return_type (bool): specifies if type checking
|
|
534
|
+
should be done one the data received from the server.
|
|
535
|
+
Default is True.
|
|
536
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
537
|
+
are serialized names, as specified in the OpenAPI document.
|
|
538
|
+
False if the variable names in the input data
|
|
539
|
+
are pythonic names, e.g. snake case (default)
|
|
540
|
+
_content_type (str/None): force body content-type.
|
|
541
|
+
Default is None and content-type will be predicted by allowed
|
|
542
|
+
content-types and body.
|
|
543
|
+
_host_index (int/None): specifies the index of the server
|
|
544
|
+
that we want to use.
|
|
545
|
+
Default is read from the configuration.
|
|
546
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
547
|
+
request; this effectively ignores the authentication
|
|
548
|
+
in the spec for a single request.
|
|
549
|
+
Default is None
|
|
550
|
+
async_req (bool): execute request asynchronously
|
|
551
|
+
|
|
552
|
+
Returns:
|
|
553
|
+
AsyncReportResponse
|
|
554
|
+
If the method is called asynchronously, returns the request
|
|
555
|
+
thread.
|
|
556
|
+
"""
|
|
557
|
+
kwargs['async_req'] = kwargs.get(
|
|
558
|
+
'async_req', False
|
|
559
|
+
)
|
|
560
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
561
|
+
'_return_http_data_only', True
|
|
562
|
+
)
|
|
563
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
564
|
+
'_preload_content', True
|
|
565
|
+
)
|
|
566
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
567
|
+
'_request_timeout', None
|
|
568
|
+
)
|
|
569
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
570
|
+
'_check_input_type', True
|
|
571
|
+
)
|
|
572
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
573
|
+
'_check_return_type', True
|
|
574
|
+
)
|
|
575
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
576
|
+
'_spec_property_naming', False
|
|
577
|
+
)
|
|
578
|
+
kwargs['_content_type'] = kwargs.get(
|
|
579
|
+
'_content_type')
|
|
580
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
581
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
582
|
+
kwargs['async_accounts_report_request'] = \
|
|
583
|
+
async_accounts_report_request
|
|
584
|
+
return self.generate_async_accounts_report_endpoint.call_with_http_info(**kwargs)
|
|
585
|
+
|
|
444
586
|
def generate_async_campaigns_report(
|
|
445
587
|
self,
|
|
446
588
|
async_campaigns_report_request,
|