criteo-api-retailmedia-sdk 0.0.241029__py3-none-any.whl → 0.0.250205__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 +23 -324
- criteo_api_retailmedia_preview/api/analytics_api.py +142 -0
- criteo_api_retailmedia_preview/api/balance_api.py +0 -159
- criteo_api_retailmedia_preview/api/campaign_api.py +226 -859
- criteo_api_retailmedia_preview/api/on_site_recommendation_api.py +0 -1
- criteo_api_retailmedia_preview/api_client.py +4 -4
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/async_accounts_report.py +44 -0
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +44 -0
- criteo_api_retailmedia_preview/model/{retail_media_contactlist_amendment_attributes.py → async_fill_rate_report.py} +80 -31
- criteo_api_retailmedia_preview/model/{add_funds_to_balance_v2_request.py → async_fill_rate_report_request.py} +8 -8
- criteo_api_retailmedia_preview/model/{http_validation_error.py → async_fill_rate_report_resource.py} +13 -9
- criteo_api_retailmedia_preview/model/async_line_items_report.py +44 -0
- criteo_api_retailmedia_preview/model/balance_response_v2_response.py +1 -1
- criteo_api_retailmedia_preview/model/{resource_of_sku_search_result.py → brand_id_search_request.py} +21 -20
- criteo_api_retailmedia_preview/model/{external_retailer.py → brand_id_search_result.py} +26 -26
- criteo_api_retailmedia_preview/model/category.py +3 -3
- criteo_api_retailmedia_preview/model/change_details_v1.py +8 -18
- criteo_api_retailmedia_preview/model/{external_choice_variable_value.py → choice_variable_value.py} +4 -10
- criteo_api_retailmedia_preview/model/{external_color_variable_value.py → color_variable_value.py} +5 -11
- criteo_api_retailmedia_preview/model/{sku_search_request.py → cpc_min_bids_request.py} +11 -16
- criteo_api_retailmedia_preview/model/{page_of_insertion_order_history_change_data_capture_v2.py → cpc_min_bids_response.py} +19 -21
- criteo_api_retailmedia_preview/model/cpc_rate_card_preview.py +6 -6
- criteo_api_retailmedia_preview/model/{external_creative_v2.py → creative2.py} +23 -30
- criteo_api_retailmedia_preview/model/{resource_outcome_of_retail_media_account.py → creative2_list_response.py} +9 -9
- criteo_api_retailmedia_preview/model/{resource_collection_outcome_of_sku_search_result.py → creative2_response.py} +9 -9
- criteo_api_retailmedia_preview/model/{external_creative_create_model_v2.py → creative_create_model2.py} +9 -16
- criteo_api_retailmedia_preview/model/{external_creative_update_model_v2.py → creative_update_model2.py} +9 -16
- criteo_api_retailmedia_preview/model/{resource_of_retail_media_account.py → entity_resource_brand_id_search_result.py} +13 -13
- criteo_api_retailmedia_preview/model/{creative_v2_list_response.py → entity_resource_collection_outcome_brand_id_search_result.py} +17 -24
- criteo_api_retailmedia_preview/model/{entity_resource_collection_outcome_of_retail_media_account.py → entity_resource_collection_outcome_of_retail_media_child_account.py} +15 -9
- criteo_api_retailmedia_preview/model/{entity_resource_of_retail_media_account.py → entity_resource_of_retail_media_child_account.py} +9 -9
- criteo_api_retailmedia_preview/model/external_line_item_bid_multipliers_v2.py +1 -1
- criteo_api_retailmedia_preview/model/{external_retail_media_account.py → external_retail_media_child_account.py} +4 -8
- criteo_api_retailmedia_preview/model/{external_files_variable_value.py → files_variable_value.py} +4 -10
- criteo_api_retailmedia_preview/model/{external_hyperlink_variable_value.py → hyperlink_variable_value.py} +5 -11
- criteo_api_retailmedia_preview/model/json_api_request_of_seller_catalog_request.py +1 -1
- criteo_api_retailmedia_preview/model/line_item_bid_multipliers_v2_request.py +1 -1
- criteo_api_retailmedia_preview/model/line_item_bid_multipliers_v2_response.py +1 -1
- criteo_api_retailmedia_preview/model/message.py +5 -5
- criteo_api_retailmedia_preview/model/offset_page_metadata.py +279 -0
- criteo_api_retailmedia_preview/model/outcome.py +268 -0
- criteo_api_retailmedia_preview/model/{external_page_type_environment.py → page_type_environment2.py} +4 -10
- criteo_api_retailmedia_preview/model/placement_preview.py +4 -0
- criteo_api_retailmedia_preview/model/report_ok_response.py +18 -18
- criteo_api_retailmedia_preview/model/{proposal_status_model_resource.py → resource_of_creative2.py} +14 -14
- criteo_api_retailmedia_preview/model/resource_of_line_item_bid_multipliers_v2.py +1 -1
- criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_v2.py +1 -1
- criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment.py +31 -18
- criteo_api_retailmedia_preview/model/retail_media_seller.py +4 -0
- criteo_api_retailmedia_preview/model/sdk_api_rest_common_problem.py +296 -0
- criteo_api_retailmedia_preview/model/seller_catalog_request.py +1 -1
- criteo_api_retailmedia_preview/model/{sku_search_request_body.py → seller_search.py} +18 -25
- criteo_api_retailmedia_preview/model/sku_data_preview.py +27 -27
- criteo_api_retailmedia_preview/model/{external_brand.py → sku_min_bid.py} +18 -22
- criteo_api_retailmedia_preview/model/sku_slim_data_v2.py +9 -13
- criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +4 -0
- criteo_api_retailmedia_preview/model/sync_campaigns_report.py +1 -11
- criteo_api_retailmedia_preview/model/sync_line_items_report.py +1 -11
- criteo_api_retailmedia_preview/model/{external_template_variable_value.py → template_variable_value.py} +36 -43
- criteo_api_retailmedia_preview/model/{location_inner.py → text_variable_value.py} +9 -11
- criteo_api_retailmedia_preview/model/{value_resource_of_retail_media_seller_account_creation.py → value_resource_brand_id_search_request.py} +10 -10
- criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_retail_media_seller.py +8 -8
- criteo_api_retailmedia_preview/model/value_resource_cpc_min_bids_request.py +266 -0
- criteo_api_retailmedia_preview/model/value_resource_cpc_min_bids_response.py +266 -0
- criteo_api_retailmedia_preview/model/value_resource_input_brand_id_search_request.py +262 -0
- criteo_api_retailmedia_preview/model/{external_text_variable_value.py → value_resource_input_cpc_min_bids_request.py} +13 -14
- criteo_api_retailmedia_preview/model/{value_resource_collection_input_of_retail_media_seller.py → value_resource_input_of_seller_search.py} +8 -8
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller.py +2 -2
- criteo_api_retailmedia_preview/model/{value_resource_input_of_retail_media_seller_account_creation.py → value_resource_of_seller_search.py} +13 -9
- criteo_api_retailmedia_preview/model/{proposal_status_model_response.py → value_resource_outcome_cpc_min_bids_response.py} +19 -19
- criteo_api_retailmedia_preview/model/{external_video_variable_value.py → video_variable_value.py} +4 -10
- criteo_api_retailmedia_preview/models/__init__.py +39 -54
- {criteo_api_retailmedia_sdk-0.0.241029.dist-info → criteo_api_retailmedia_sdk-0.0.250205.dist-info}/METADATA +14 -5
- {criteo_api_retailmedia_sdk-0.0.241029.dist-info → criteo_api_retailmedia_sdk-0.0.250205.dist-info}/RECORD +78 -93
- {criteo_api_retailmedia_sdk-0.0.241029.dist-info → criteo_api_retailmedia_sdk-0.0.250205.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_preview/model/add_funds_to_balance_v2.py +0 -277
- criteo_api_retailmedia_preview/model/approval_status_model.py +0 -292
- criteo_api_retailmedia_preview/model/botmessage.py +0 -329
- criteo_api_retailmedia_preview/model/change_details_v2.py +0 -275
- criteo_api_retailmedia_preview/model/creative_v2_response.py +0 -281
- criteo_api_retailmedia_preview/model/external_account.py +0 -330
- criteo_api_retailmedia_preview/model/insertion_order_history_change_data_capture_v2.py +0 -303
- criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_account_and_account.py +0 -285
- criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_brand_and_brand.py +0 -285
- criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py +0 -285
- criteo_api_retailmedia_preview/model/json_api_page_response_of_account.py +0 -295
- criteo_api_retailmedia_preview/model/json_api_page_response_of_brand.py +0 -295
- criteo_api_retailmedia_preview/model/json_api_page_response_of_retailer.py +0 -295
- criteo_api_retailmedia_preview/model/negotiation_state_model.py +0 -293
- criteo_api_retailmedia_preview/model/proposal_status_model.py +0 -284
- criteo_api_retailmedia_preview/model/resource_of_add_funds_to_balance_v2.py +0 -277
- criteo_api_retailmedia_preview/model/resource_of_creative_v2.py +0 -277
- criteo_api_retailmedia_preview/model/retail_media_account.py +0 -301
- criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +0 -274
- criteo_api_retailmedia_preview/model/sku_search_result.py +0 -313
- criteo_api_retailmedia_preview/model/validation_error.py +0 -287
- {criteo_api_retailmedia_sdk-0.0.241029.dist-info → criteo_api_retailmedia_sdk-0.0.250205.dist-info}/top_level.txt +0 -0
|
@@ -21,13 +21,11 @@ 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.
|
|
24
|
+
from criteo_api_retailmedia_preview.model.entity_resource_collection_outcome_of_retail_media_child_account import EntityResourceCollectionOutcomeOfRetailMediaChildAccount
|
|
25
25
|
from criteo_api_retailmedia_preview.model.grant_consent_input import GrantConsentInput
|
|
26
|
-
from criteo_api_retailmedia_preview.model.
|
|
27
|
-
from criteo_api_retailmedia_preview.model.resource_outcome_of_retail_media_account import ResourceOutcomeOfRetailMediaAccount
|
|
28
|
-
from criteo_api_retailmedia_preview.model.value_resource_collection_input_of_retail_media_seller import ValueResourceCollectionInputOfRetailMediaSeller
|
|
26
|
+
from criteo_api_retailmedia_preview.model.outcome import Outcome
|
|
29
27
|
from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_of_retail_media_seller import ValueResourceCollectionOutcomeOfRetailMediaSeller
|
|
30
|
-
from criteo_api_retailmedia_preview.model.
|
|
28
|
+
from criteo_api_retailmedia_preview.model.value_resource_input_of_seller_search import ValueResourceInputOfSellerSearch
|
|
31
29
|
|
|
32
30
|
|
|
33
31
|
class AccountsApi(object):
|
|
@@ -41,70 +39,9 @@ class AccountsApi(object):
|
|
|
41
39
|
if api_client is None:
|
|
42
40
|
api_client = ApiClient()
|
|
43
41
|
self.api_client = api_client
|
|
44
|
-
self.create_private_market_demand_seller_account_endpoint = _Endpoint(
|
|
45
|
-
settings={
|
|
46
|
-
'response_type': (ResourceOutcomeOfRetailMediaAccount,),
|
|
47
|
-
'auth': [
|
|
48
|
-
'oauth',
|
|
49
|
-
'oauth'
|
|
50
|
-
],
|
|
51
|
-
'endpoint_path': '/preview/retail-media/account-management/accounts/{accountId}/create-seller-account',
|
|
52
|
-
'operation_id': 'create_private_market_demand_seller_account',
|
|
53
|
-
'http_method': 'POST',
|
|
54
|
-
'servers': None,
|
|
55
|
-
},
|
|
56
|
-
params_map={
|
|
57
|
-
'all': [
|
|
58
|
-
'account_id',
|
|
59
|
-
'value_resource_input_of_retail_media_seller_account_creation',
|
|
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
|
-
'value_resource_input_of_retail_media_seller_account_creation':
|
|
80
|
-
(ValueResourceInputOfRetailMediaSellerAccountCreation,),
|
|
81
|
-
},
|
|
82
|
-
'attribute_map': {
|
|
83
|
-
'account_id': 'accountId',
|
|
84
|
-
},
|
|
85
|
-
'location_map': {
|
|
86
|
-
'account_id': 'path',
|
|
87
|
-
'value_resource_input_of_retail_media_seller_account_creation': 'body',
|
|
88
|
-
},
|
|
89
|
-
'collection_format_map': {
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
headers_map={
|
|
93
|
-
'accept': [
|
|
94
|
-
'application/json'
|
|
95
|
-
],
|
|
96
|
-
'content_type': [
|
|
97
|
-
'application/json-patch+json',
|
|
98
|
-
'application/json',
|
|
99
|
-
'text/json',
|
|
100
|
-
'application/*+json'
|
|
101
|
-
]
|
|
102
|
-
},
|
|
103
|
-
api_client=api_client
|
|
104
|
-
)
|
|
105
42
|
self.get_api_external_v1_account_private_market_child_accounts_by_account_id_endpoint = _Endpoint(
|
|
106
43
|
settings={
|
|
107
|
-
'response_type': (
|
|
44
|
+
'response_type': (EntityResourceCollectionOutcomeOfRetailMediaChildAccount,),
|
|
108
45
|
'auth': [
|
|
109
46
|
'oauth',
|
|
110
47
|
'oauth'
|
|
@@ -164,69 +101,6 @@ class AccountsApi(object):
|
|
|
164
101
|
},
|
|
165
102
|
api_client=api_client
|
|
166
103
|
)
|
|
167
|
-
self.get_api_v1_external_accounts_endpoint = _Endpoint(
|
|
168
|
-
settings={
|
|
169
|
-
'response_type': (JsonApiPageResponseOfAccount,),
|
|
170
|
-
'auth': [
|
|
171
|
-
'oauth',
|
|
172
|
-
'oauth'
|
|
173
|
-
],
|
|
174
|
-
'endpoint_path': '/preview/retail-media/accounts',
|
|
175
|
-
'operation_id': 'get_api_v1_external_accounts',
|
|
176
|
-
'http_method': 'GET',
|
|
177
|
-
'servers': None,
|
|
178
|
-
},
|
|
179
|
-
params_map={
|
|
180
|
-
'all': [
|
|
181
|
-
'limit_to_id',
|
|
182
|
-
'page_index',
|
|
183
|
-
'page_size',
|
|
184
|
-
],
|
|
185
|
-
'required': [],
|
|
186
|
-
'nullable': [
|
|
187
|
-
],
|
|
188
|
-
'enum': [
|
|
189
|
-
],
|
|
190
|
-
'validation': [
|
|
191
|
-
]
|
|
192
|
-
},
|
|
193
|
-
root_map={
|
|
194
|
-
'validations': {
|
|
195
|
-
},
|
|
196
|
-
'allowed_values': {
|
|
197
|
-
},
|
|
198
|
-
'openapi_types': {
|
|
199
|
-
'limit_to_id':
|
|
200
|
-
([str],),
|
|
201
|
-
'page_index':
|
|
202
|
-
(int,),
|
|
203
|
-
'page_size':
|
|
204
|
-
(int,),
|
|
205
|
-
},
|
|
206
|
-
'attribute_map': {
|
|
207
|
-
'limit_to_id': 'limitToId',
|
|
208
|
-
'page_index': 'pageIndex',
|
|
209
|
-
'page_size': 'pageSize',
|
|
210
|
-
},
|
|
211
|
-
'location_map': {
|
|
212
|
-
'limit_to_id': 'query',
|
|
213
|
-
'page_index': 'query',
|
|
214
|
-
'page_size': 'query',
|
|
215
|
-
},
|
|
216
|
-
'collection_format_map': {
|
|
217
|
-
'limit_to_id': 'multi',
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
headers_map={
|
|
221
|
-
'accept': [
|
|
222
|
-
'text/plain',
|
|
223
|
-
'application/json',
|
|
224
|
-
'text/json'
|
|
225
|
-
],
|
|
226
|
-
'content_type': [],
|
|
227
|
-
},
|
|
228
|
-
api_client=api_client
|
|
229
|
-
)
|
|
230
104
|
self.grant_consent_endpoint = _Endpoint(
|
|
231
105
|
settings={
|
|
232
106
|
'response_type': None,
|
|
@@ -286,26 +160,23 @@ class AccountsApi(object):
|
|
|
286
160
|
},
|
|
287
161
|
api_client=api_client
|
|
288
162
|
)
|
|
289
|
-
self.
|
|
163
|
+
self.search_sellers_endpoint = _Endpoint(
|
|
290
164
|
settings={
|
|
291
165
|
'response_type': (ValueResourceCollectionOutcomeOfRetailMediaSeller,),
|
|
292
166
|
'auth': [
|
|
293
167
|
'oauth',
|
|
294
168
|
'oauth'
|
|
295
169
|
],
|
|
296
|
-
'endpoint_path': '/preview/retail-media/
|
|
297
|
-
'operation_id': '
|
|
298
|
-
'http_method': '
|
|
170
|
+
'endpoint_path': '/preview/retail-media/accounts/sellers/search',
|
|
171
|
+
'operation_id': 'search_sellers',
|
|
172
|
+
'http_method': 'POST',
|
|
299
173
|
'servers': None,
|
|
300
174
|
},
|
|
301
175
|
params_map={
|
|
302
176
|
'all': [
|
|
303
|
-
'
|
|
304
|
-
'value_resource_collection_input_of_retail_media_seller',
|
|
305
|
-
],
|
|
306
|
-
'required': [
|
|
307
|
-
'account_id',
|
|
177
|
+
'value_resource_input_of_seller_search',
|
|
308
178
|
],
|
|
179
|
+
'required': [],
|
|
309
180
|
'nullable': [
|
|
310
181
|
],
|
|
311
182
|
'enum': [
|
|
@@ -319,24 +190,22 @@ class AccountsApi(object):
|
|
|
319
190
|
'allowed_values': {
|
|
320
191
|
},
|
|
321
192
|
'openapi_types': {
|
|
322
|
-
'
|
|
323
|
-
(
|
|
324
|
-
'value_resource_collection_input_of_retail_media_seller':
|
|
325
|
-
(ValueResourceCollectionInputOfRetailMediaSeller,),
|
|
193
|
+
'value_resource_input_of_seller_search':
|
|
194
|
+
(ValueResourceInputOfSellerSearch,),
|
|
326
195
|
},
|
|
327
196
|
'attribute_map': {
|
|
328
|
-
'account_id': 'accountId',
|
|
329
197
|
},
|
|
330
198
|
'location_map': {
|
|
331
|
-
'
|
|
332
|
-
'value_resource_collection_input_of_retail_media_seller': 'body',
|
|
199
|
+
'value_resource_input_of_seller_search': 'body',
|
|
333
200
|
},
|
|
334
201
|
'collection_format_map': {
|
|
335
202
|
}
|
|
336
203
|
},
|
|
337
204
|
headers_map={
|
|
338
205
|
'accept': [
|
|
339
|
-
'
|
|
206
|
+
'text/plain',
|
|
207
|
+
'application/json',
|
|
208
|
+
'text/json'
|
|
340
209
|
],
|
|
341
210
|
'content_type': [
|
|
342
211
|
'application/json-patch+json',
|
|
@@ -348,90 +217,6 @@ class AccountsApi(object):
|
|
|
348
217
|
api_client=api_client
|
|
349
218
|
)
|
|
350
219
|
|
|
351
|
-
def create_private_market_demand_seller_account(
|
|
352
|
-
self,
|
|
353
|
-
account_id,
|
|
354
|
-
**kwargs
|
|
355
|
-
):
|
|
356
|
-
"""create_private_market_demand_seller_account # noqa: E501
|
|
357
|
-
|
|
358
|
-
Creates a new child Demand Seller Account for the provided parent private market account # noqa: E501
|
|
359
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
360
|
-
asynchronous HTTP request, please pass async_req=True
|
|
361
|
-
|
|
362
|
-
>>> thread = api.create_private_market_demand_seller_account(account_id, async_req=True)
|
|
363
|
-
>>> result = thread.get()
|
|
364
|
-
|
|
365
|
-
Args:
|
|
366
|
-
account_id (str): Account Id for the parent private market account
|
|
367
|
-
|
|
368
|
-
Keyword Args:
|
|
369
|
-
value_resource_input_of_retail_media_seller_account_creation (ValueResourceInputOfRetailMediaSellerAccountCreation): Initial creation and configuration options for the new account. [optional]
|
|
370
|
-
_return_http_data_only (bool): response data without head status
|
|
371
|
-
code and headers. Default is True.
|
|
372
|
-
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
373
|
-
will be returned without reading/decoding response data.
|
|
374
|
-
Default is True.
|
|
375
|
-
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
376
|
-
one number provided, it will be total request timeout. It can also
|
|
377
|
-
be a pair (tuple) of (connection, read) timeouts.
|
|
378
|
-
Default is None.
|
|
379
|
-
_check_input_type (bool): specifies if type checking
|
|
380
|
-
should be done one the data sent to the server.
|
|
381
|
-
Default is True.
|
|
382
|
-
_check_return_type (bool): specifies if type checking
|
|
383
|
-
should be done one the data received from the server.
|
|
384
|
-
Default is True.
|
|
385
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
386
|
-
are serialized names, as specified in the OpenAPI document.
|
|
387
|
-
False if the variable names in the input data
|
|
388
|
-
are pythonic names, e.g. snake case (default)
|
|
389
|
-
_content_type (str/None): force body content-type.
|
|
390
|
-
Default is None and content-type will be predicted by allowed
|
|
391
|
-
content-types and body.
|
|
392
|
-
_host_index (int/None): specifies the index of the server
|
|
393
|
-
that we want to use.
|
|
394
|
-
Default is read from the configuration.
|
|
395
|
-
_request_auths (list): set to override the auth_settings for an a single
|
|
396
|
-
request; this effectively ignores the authentication
|
|
397
|
-
in the spec for a single request.
|
|
398
|
-
Default is None
|
|
399
|
-
async_req (bool): execute request asynchronously
|
|
400
|
-
|
|
401
|
-
Returns:
|
|
402
|
-
ResourceOutcomeOfRetailMediaAccount
|
|
403
|
-
If the method is called asynchronously, returns the request
|
|
404
|
-
thread.
|
|
405
|
-
"""
|
|
406
|
-
kwargs['async_req'] = kwargs.get(
|
|
407
|
-
'async_req', False
|
|
408
|
-
)
|
|
409
|
-
kwargs['_return_http_data_only'] = kwargs.get(
|
|
410
|
-
'_return_http_data_only', True
|
|
411
|
-
)
|
|
412
|
-
kwargs['_preload_content'] = kwargs.get(
|
|
413
|
-
'_preload_content', True
|
|
414
|
-
)
|
|
415
|
-
kwargs['_request_timeout'] = kwargs.get(
|
|
416
|
-
'_request_timeout', None
|
|
417
|
-
)
|
|
418
|
-
kwargs['_check_input_type'] = kwargs.get(
|
|
419
|
-
'_check_input_type', True
|
|
420
|
-
)
|
|
421
|
-
kwargs['_check_return_type'] = kwargs.get(
|
|
422
|
-
'_check_return_type', True
|
|
423
|
-
)
|
|
424
|
-
kwargs['_spec_property_naming'] = kwargs.get(
|
|
425
|
-
'_spec_property_naming', False
|
|
426
|
-
)
|
|
427
|
-
kwargs['_content_type'] = kwargs.get(
|
|
428
|
-
'_content_type')
|
|
429
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
430
|
-
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
431
|
-
kwargs['account_id'] = \
|
|
432
|
-
account_id
|
|
433
|
-
return self.create_private_market_demand_seller_account_endpoint.call_with_http_info(**kwargs)
|
|
434
|
-
|
|
435
220
|
def get_api_external_v1_account_private_market_child_accounts_by_account_id(
|
|
436
221
|
self,
|
|
437
222
|
account_id,
|
|
@@ -484,7 +269,7 @@ class AccountsApi(object):
|
|
|
484
269
|
async_req (bool): execute request asynchronously
|
|
485
270
|
|
|
486
271
|
Returns:
|
|
487
|
-
|
|
272
|
+
EntityResourceCollectionOutcomeOfRetailMediaChildAccount
|
|
488
273
|
If the method is called asynchronously, returns the request
|
|
489
274
|
thread.
|
|
490
275
|
"""
|
|
@@ -517,87 +302,6 @@ class AccountsApi(object):
|
|
|
517
302
|
account_id
|
|
518
303
|
return self.get_api_external_v1_account_private_market_child_accounts_by_account_id_endpoint.call_with_http_info(**kwargs)
|
|
519
304
|
|
|
520
|
-
def get_api_v1_external_accounts(
|
|
521
|
-
self,
|
|
522
|
-
**kwargs
|
|
523
|
-
):
|
|
524
|
-
"""get_api_v1_external_accounts # noqa: E501
|
|
525
|
-
|
|
526
|
-
Gets page of account objects that the current user can access # noqa: E501
|
|
527
|
-
This method makes a synchronous HTTP request by default. To make an
|
|
528
|
-
asynchronous HTTP request, please pass async_req=True
|
|
529
|
-
|
|
530
|
-
>>> thread = api.get_api_v1_external_accounts(async_req=True)
|
|
531
|
-
>>> result = thread.get()
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
Keyword Args:
|
|
535
|
-
limit_to_id ([str]): The ids that you would like to limit your result set to. [optional]
|
|
536
|
-
page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] if omitted the server will use the default value of 0
|
|
537
|
-
page_size (int): The maximum number of items you would like to receive in this request. [optional] if omitted the server will use the default value of 25
|
|
538
|
-
_return_http_data_only (bool): response data without head status
|
|
539
|
-
code and headers. Default is True.
|
|
540
|
-
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
541
|
-
will be returned without reading/decoding response data.
|
|
542
|
-
Default is True.
|
|
543
|
-
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
544
|
-
one number provided, it will be total request timeout. It can also
|
|
545
|
-
be a pair (tuple) of (connection, read) timeouts.
|
|
546
|
-
Default is None.
|
|
547
|
-
_check_input_type (bool): specifies if type checking
|
|
548
|
-
should be done one the data sent to the server.
|
|
549
|
-
Default is True.
|
|
550
|
-
_check_return_type (bool): specifies if type checking
|
|
551
|
-
should be done one the data received from the server.
|
|
552
|
-
Default is True.
|
|
553
|
-
_spec_property_naming (bool): True if the variable names in the input data
|
|
554
|
-
are serialized names, as specified in the OpenAPI document.
|
|
555
|
-
False if the variable names in the input data
|
|
556
|
-
are pythonic names, e.g. snake case (default)
|
|
557
|
-
_content_type (str/None): force body content-type.
|
|
558
|
-
Default is None and content-type will be predicted by allowed
|
|
559
|
-
content-types and body.
|
|
560
|
-
_host_index (int/None): specifies the index of the server
|
|
561
|
-
that we want to use.
|
|
562
|
-
Default is read from the configuration.
|
|
563
|
-
_request_auths (list): set to override the auth_settings for an a single
|
|
564
|
-
request; this effectively ignores the authentication
|
|
565
|
-
in the spec for a single request.
|
|
566
|
-
Default is None
|
|
567
|
-
async_req (bool): execute request asynchronously
|
|
568
|
-
|
|
569
|
-
Returns:
|
|
570
|
-
JsonApiPageResponseOfAccount
|
|
571
|
-
If the method is called asynchronously, returns the request
|
|
572
|
-
thread.
|
|
573
|
-
"""
|
|
574
|
-
kwargs['async_req'] = kwargs.get(
|
|
575
|
-
'async_req', False
|
|
576
|
-
)
|
|
577
|
-
kwargs['_return_http_data_only'] = kwargs.get(
|
|
578
|
-
'_return_http_data_only', True
|
|
579
|
-
)
|
|
580
|
-
kwargs['_preload_content'] = kwargs.get(
|
|
581
|
-
'_preload_content', True
|
|
582
|
-
)
|
|
583
|
-
kwargs['_request_timeout'] = kwargs.get(
|
|
584
|
-
'_request_timeout', None
|
|
585
|
-
)
|
|
586
|
-
kwargs['_check_input_type'] = kwargs.get(
|
|
587
|
-
'_check_input_type', True
|
|
588
|
-
)
|
|
589
|
-
kwargs['_check_return_type'] = kwargs.get(
|
|
590
|
-
'_check_return_type', True
|
|
591
|
-
)
|
|
592
|
-
kwargs['_spec_property_naming'] = kwargs.get(
|
|
593
|
-
'_spec_property_naming', False
|
|
594
|
-
)
|
|
595
|
-
kwargs['_content_type'] = kwargs.get(
|
|
596
|
-
'_content_type')
|
|
597
|
-
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
598
|
-
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
599
|
-
return self.get_api_v1_external_accounts_endpoint.call_with_http_info(**kwargs)
|
|
600
|
-
|
|
601
305
|
def grant_consent(
|
|
602
306
|
self,
|
|
603
307
|
account_id,
|
|
@@ -682,25 +386,22 @@ class AccountsApi(object):
|
|
|
682
386
|
account_id
|
|
683
387
|
return self.grant_consent_endpoint.call_with_http_info(**kwargs)
|
|
684
388
|
|
|
685
|
-
def
|
|
389
|
+
def search_sellers(
|
|
686
390
|
self,
|
|
687
|
-
account_id,
|
|
688
391
|
**kwargs
|
|
689
392
|
):
|
|
690
|
-
"""
|
|
393
|
+
"""search_sellers # noqa: E501
|
|
691
394
|
|
|
692
|
-
|
|
395
|
+
Get the sellers mapped to provided accounts # noqa: E501
|
|
693
396
|
This method makes a synchronous HTTP request by default. To make an
|
|
694
397
|
asynchronous HTTP request, please pass async_req=True
|
|
695
398
|
|
|
696
|
-
>>> thread = api.
|
|
399
|
+
>>> thread = api.search_sellers(async_req=True)
|
|
697
400
|
>>> result = thread.get()
|
|
698
401
|
|
|
699
|
-
Args:
|
|
700
|
-
account_id (str): the account id to update
|
|
701
402
|
|
|
702
403
|
Keyword Args:
|
|
703
|
-
|
|
404
|
+
value_resource_input_of_seller_search (ValueResourceInputOfSellerSearch): . [optional]
|
|
704
405
|
_return_http_data_only (bool): response data without head status
|
|
705
406
|
code and headers. Default is True.
|
|
706
407
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -762,7 +463,5 @@ class AccountsApi(object):
|
|
|
762
463
|
'_content_type')
|
|
763
464
|
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
764
465
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
765
|
-
kwargs
|
|
766
|
-
account_id
|
|
767
|
-
return self.update_sellers_endpoint.call_with_http_info(**kwargs)
|
|
466
|
+
return self.search_sellers_endpoint.call_with_http_info(**kwargs)
|
|
768
467
|
|
|
@@ -23,6 +23,7 @@ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
|
|
|
23
23
|
)
|
|
24
24
|
from criteo_api_retailmedia_preview.model.async_accounts_report_request import AsyncAccountsReportRequest
|
|
25
25
|
from criteo_api_retailmedia_preview.model.async_campaigns_report_request import AsyncCampaignsReportRequest
|
|
26
|
+
from criteo_api_retailmedia_preview.model.async_fill_rate_report_request import AsyncFillRateReportRequest
|
|
26
27
|
from criteo_api_retailmedia_preview.model.async_line_items_report_request import AsyncLineItemsReportRequest
|
|
27
28
|
from criteo_api_retailmedia_preview.model.async_report_response import AsyncReportResponse
|
|
28
29
|
from criteo_api_retailmedia_preview.model.report_outcome import ReportOutcome
|
|
@@ -159,6 +160,64 @@ class AnalyticsApi(object):
|
|
|
159
160
|
},
|
|
160
161
|
api_client=api_client
|
|
161
162
|
)
|
|
163
|
+
self.generate_async_fill_rate_report_endpoint = _Endpoint(
|
|
164
|
+
settings={
|
|
165
|
+
'response_type': (AsyncReportResponse,),
|
|
166
|
+
'auth': [
|
|
167
|
+
'oauth',
|
|
168
|
+
'oauth'
|
|
169
|
+
],
|
|
170
|
+
'endpoint_path': '/preview/retail-media/reports/fillrate',
|
|
171
|
+
'operation_id': 'generate_async_fill_rate_report',
|
|
172
|
+
'http_method': 'POST',
|
|
173
|
+
'servers': None,
|
|
174
|
+
},
|
|
175
|
+
params_map={
|
|
176
|
+
'all': [
|
|
177
|
+
'async_fill_rate_report_request',
|
|
178
|
+
],
|
|
179
|
+
'required': [
|
|
180
|
+
'async_fill_rate_report_request',
|
|
181
|
+
],
|
|
182
|
+
'nullable': [
|
|
183
|
+
],
|
|
184
|
+
'enum': [
|
|
185
|
+
],
|
|
186
|
+
'validation': [
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
root_map={
|
|
190
|
+
'validations': {
|
|
191
|
+
},
|
|
192
|
+
'allowed_values': {
|
|
193
|
+
},
|
|
194
|
+
'openapi_types': {
|
|
195
|
+
'async_fill_rate_report_request':
|
|
196
|
+
(AsyncFillRateReportRequest,),
|
|
197
|
+
},
|
|
198
|
+
'attribute_map': {
|
|
199
|
+
},
|
|
200
|
+
'location_map': {
|
|
201
|
+
'async_fill_rate_report_request': 'body',
|
|
202
|
+
},
|
|
203
|
+
'collection_format_map': {
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
headers_map={
|
|
207
|
+
'accept': [
|
|
208
|
+
'text/plain',
|
|
209
|
+
'application/json',
|
|
210
|
+
'text/json'
|
|
211
|
+
],
|
|
212
|
+
'content_type': [
|
|
213
|
+
'application/json-patch+json',
|
|
214
|
+
'application/json',
|
|
215
|
+
'text/json',
|
|
216
|
+
'application/*+json'
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
api_client=api_client
|
|
220
|
+
)
|
|
162
221
|
self.generate_async_line_items_report_endpoint = _Endpoint(
|
|
163
222
|
settings={
|
|
164
223
|
'response_type': (AsyncReportResponse,),
|
|
@@ -666,6 +725,89 @@ class AnalyticsApi(object):
|
|
|
666
725
|
async_campaigns_report_request
|
|
667
726
|
return self.generate_async_campaigns_report_endpoint.call_with_http_info(**kwargs)
|
|
668
727
|
|
|
728
|
+
def generate_async_fill_rate_report(
|
|
729
|
+
self,
|
|
730
|
+
async_fill_rate_report_request,
|
|
731
|
+
**kwargs
|
|
732
|
+
):
|
|
733
|
+
"""generate_async_fill_rate_report # noqa: E501
|
|
734
|
+
|
|
735
|
+
Returns an asynchronous Fill Rate Report This endpoint is subject to specific rate limits. # noqa: E501
|
|
736
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
737
|
+
asynchronous HTTP request, please pass async_req=True
|
|
738
|
+
|
|
739
|
+
>>> thread = api.generate_async_fill_rate_report(async_fill_rate_report_request, async_req=True)
|
|
740
|
+
>>> result = thread.get()
|
|
741
|
+
|
|
742
|
+
Args:
|
|
743
|
+
async_fill_rate_report_request (AsyncFillRateReportRequest):
|
|
744
|
+
|
|
745
|
+
Keyword Args:
|
|
746
|
+
_return_http_data_only (bool): response data without head status
|
|
747
|
+
code and headers. Default is True.
|
|
748
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
749
|
+
will be returned without reading/decoding response data.
|
|
750
|
+
Default is True.
|
|
751
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
752
|
+
one number provided, it will be total request timeout. It can also
|
|
753
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
754
|
+
Default is None.
|
|
755
|
+
_check_input_type (bool): specifies if type checking
|
|
756
|
+
should be done one the data sent to the server.
|
|
757
|
+
Default is True.
|
|
758
|
+
_check_return_type (bool): specifies if type checking
|
|
759
|
+
should be done one the data received from the server.
|
|
760
|
+
Default is True.
|
|
761
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
762
|
+
are serialized names, as specified in the OpenAPI document.
|
|
763
|
+
False if the variable names in the input data
|
|
764
|
+
are pythonic names, e.g. snake case (default)
|
|
765
|
+
_content_type (str/None): force body content-type.
|
|
766
|
+
Default is None and content-type will be predicted by allowed
|
|
767
|
+
content-types and body.
|
|
768
|
+
_host_index (int/None): specifies the index of the server
|
|
769
|
+
that we want to use.
|
|
770
|
+
Default is read from the configuration.
|
|
771
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
772
|
+
request; this effectively ignores the authentication
|
|
773
|
+
in the spec for a single request.
|
|
774
|
+
Default is None
|
|
775
|
+
async_req (bool): execute request asynchronously
|
|
776
|
+
|
|
777
|
+
Returns:
|
|
778
|
+
AsyncReportResponse
|
|
779
|
+
If the method is called asynchronously, returns the request
|
|
780
|
+
thread.
|
|
781
|
+
"""
|
|
782
|
+
kwargs['async_req'] = kwargs.get(
|
|
783
|
+
'async_req', False
|
|
784
|
+
)
|
|
785
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
786
|
+
'_return_http_data_only', True
|
|
787
|
+
)
|
|
788
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
789
|
+
'_preload_content', True
|
|
790
|
+
)
|
|
791
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
792
|
+
'_request_timeout', None
|
|
793
|
+
)
|
|
794
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
795
|
+
'_check_input_type', True
|
|
796
|
+
)
|
|
797
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
798
|
+
'_check_return_type', True
|
|
799
|
+
)
|
|
800
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
801
|
+
'_spec_property_naming', False
|
|
802
|
+
)
|
|
803
|
+
kwargs['_content_type'] = kwargs.get(
|
|
804
|
+
'_content_type')
|
|
805
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
806
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
807
|
+
kwargs['async_fill_rate_report_request'] = \
|
|
808
|
+
async_fill_rate_report_request
|
|
809
|
+
return self.generate_async_fill_rate_report_endpoint.call_with_http_info(**kwargs)
|
|
810
|
+
|
|
669
811
|
def generate_async_line_items_report(
|
|
670
812
|
self,
|
|
671
813
|
async_line_items_report_request,
|