criteo-api-retailmedia-sdk 0.0.251014__py3-none-any.whl → 0.0.251021__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 +1 -1
- criteo_api_retailmedia_preview/api/campaign_api.py +316 -24
- criteo_api_retailmedia_preview/api/third_party_accounts_api.py +757 -0
- criteo_api_retailmedia_preview/api_client.py +1 -1
- criteo_api_retailmedia_preview/apis/__init__.py +1 -0
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/campaign_availability.py +3 -3
- criteo_api_retailmedia_preview/model/display_auction_min_bid_request.py +268 -0
- criteo_api_retailmedia_preview/model/display_auction_min_bid_result.py +280 -0
- criteo_api_retailmedia_preview/model/entity_resource_of_retail_media_account_v2.py +270 -0
- criteo_api_retailmedia_preview/model/entity_resource_outcome_of_retail_media_account_v2.py +274 -0
- criteo_api_retailmedia_preview/model/external_retail_media_account_v2.py +301 -0
- criteo_api_retailmedia_preview/model/external_retail_media_brand_account_creation_v2.py +269 -0
- criteo_api_retailmedia_preview/model/external_retail_media_brands.py +263 -0
- criteo_api_retailmedia_preview/model/external_retail_media_seller.py +269 -0
- criteo_api_retailmedia_preview/model/external_retail_media_seller_account_creation_v2.py +280 -0
- criteo_api_retailmedia_preview/model/line_item_budget_cap_out_history.py +266 -0
- criteo_api_retailmedia_preview/model/line_item_budget_cap_out_history_capout_times.py +269 -0
- criteo_api_retailmedia_preview/model/line_item_budget_cap_out_history_request.py +278 -0
- criteo_api_retailmedia_preview/model/line_item_budget_cap_out_history_response.py +262 -0
- criteo_api_retailmedia_preview/model/page_type_combination.py +2 -2
- criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +4 -3
- criteo_api_retailmedia_preview/model/sponsored_products_line_item_create_request_model.py +9 -10
- criteo_api_retailmedia_preview/model/sponsored_products_line_item_update_request_model.py +0 -1
- criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_collection_outcome_display_auction_min_bid_result.py +274 -0
- criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_retail_media_seller.py +274 -0
- criteo_api_retailmedia_preview/model/value_resource_display_auction_min_bid_request.py +266 -0
- criteo_api_retailmedia_preview/model/value_resource_display_auction_min_bid_result.py +266 -0
- criteo_api_retailmedia_preview/model/value_resource_input_display_auction_min_bid_request.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_line_item_budget_cap_out_history_request.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brand_account_creation_v2.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brands.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation_v2.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_line_item_budget_cap_out_history_request.py +266 -0
- criteo_api_retailmedia_preview/model/value_resource_line_item_budget_cap_out_history_response.py +266 -0
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brand_account_creation_v2.py +266 -0
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brands.py +266 -0
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller.py +266 -0
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation_v2.py +266 -0
- criteo_api_retailmedia_preview/model/value_resource_outcome_line_item_budget_cap_out_history_response.py +274 -0
- criteo_api_retailmedia_preview/model/value_resource_outcome_of_retail_media_brands.py +274 -0
- criteo_api_retailmedia_preview/models/__init__.py +31 -0
- {criteo_api_retailmedia_sdk-0.0.251014.dist-info → criteo_api_retailmedia_sdk-0.0.251021.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.251014.dist-info → criteo_api_retailmedia_sdk-0.0.251021.dist-info}/RECORD +48 -16
- {criteo_api_retailmedia_sdk-0.0.251014.dist-info → criteo_api_retailmedia_sdk-0.0.251021.dist-info}/WHEEL +0 -0
- {criteo_api_retailmedia_sdk-0.0.251014.dist-info → criteo_api_retailmedia_sdk-0.0.251021.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,757 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Criteo API
|
|
3
|
+
|
|
4
|
+
Criteo API - RetailMedia # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: Preview
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import re # noqa: F401
|
|
12
|
+
import sys # noqa: F401
|
|
13
|
+
|
|
14
|
+
from criteo_api_retailmedia_preview.api_client import ApiClient, Endpoint as _Endpoint
|
|
15
|
+
from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
|
|
16
|
+
check_allowed_values,
|
|
17
|
+
check_validations,
|
|
18
|
+
date,
|
|
19
|
+
datetime,
|
|
20
|
+
file_type,
|
|
21
|
+
none_type,
|
|
22
|
+
validate_and_convert_types
|
|
23
|
+
)
|
|
24
|
+
from criteo_api_retailmedia_preview.model.entity_resource_outcome_of_retail_media_account_v2 import EntityResourceOutcomeOfRetailMediaAccountV2
|
|
25
|
+
from criteo_api_retailmedia_preview.model.value_resource_collection_input_of_retail_media_seller import ValueResourceCollectionInputOfRetailMediaSeller
|
|
26
|
+
from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_of_retail_media_seller import ValueResourceCollectionOutcomeOfRetailMediaSeller
|
|
27
|
+
from criteo_api_retailmedia_preview.model.value_resource_input_of_retail_media_brand_account_creation_v2 import ValueResourceInputOfRetailMediaBrandAccountCreationV2
|
|
28
|
+
from criteo_api_retailmedia_preview.model.value_resource_input_of_retail_media_brands import ValueResourceInputOfRetailMediaBrands
|
|
29
|
+
from criteo_api_retailmedia_preview.model.value_resource_input_of_retail_media_seller_account_creation_v2 import ValueResourceInputOfRetailMediaSellerAccountCreationV2
|
|
30
|
+
from criteo_api_retailmedia_preview.model.value_resource_outcome_of_retail_media_brands import ValueResourceOutcomeOfRetailMediaBrands
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class ThirdPartyAccountsApi(object):
|
|
34
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
35
|
+
Ref: https://openapi-generator.tech
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
def __init__(self, api_client=None):
|
|
41
|
+
if api_client is None:
|
|
42
|
+
api_client = ApiClient()
|
|
43
|
+
self.api_client = api_client
|
|
44
|
+
self.preview_retail_media_third_party_accounts_account_id_brands_add_post_endpoint = _Endpoint(
|
|
45
|
+
settings={
|
|
46
|
+
'response_type': (ValueResourceOutcomeOfRetailMediaBrands,),
|
|
47
|
+
'auth': [
|
|
48
|
+
'oauth',
|
|
49
|
+
'oauth'
|
|
50
|
+
],
|
|
51
|
+
'endpoint_path': '/preview/retail-media/third-party-accounts/{accountId}/brands/add',
|
|
52
|
+
'operation_id': 'preview_retail_media_third_party_accounts_account_id_brands_add_post',
|
|
53
|
+
'http_method': 'POST',
|
|
54
|
+
'servers': None,
|
|
55
|
+
},
|
|
56
|
+
params_map={
|
|
57
|
+
'all': [
|
|
58
|
+
'account_id',
|
|
59
|
+
'value_resource_input_of_retail_media_brands',
|
|
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_brands':
|
|
80
|
+
(ValueResourceInputOfRetailMediaBrands,),
|
|
81
|
+
},
|
|
82
|
+
'attribute_map': {
|
|
83
|
+
'account_id': 'accountId',
|
|
84
|
+
},
|
|
85
|
+
'location_map': {
|
|
86
|
+
'account_id': 'path',
|
|
87
|
+
'value_resource_input_of_retail_media_brands': 'body',
|
|
88
|
+
},
|
|
89
|
+
'collection_format_map': {
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
headers_map={
|
|
93
|
+
'accept': [
|
|
94
|
+
'application/json'
|
|
95
|
+
],
|
|
96
|
+
'content_type': [
|
|
97
|
+
'application/json'
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
api_client=api_client
|
|
101
|
+
)
|
|
102
|
+
self.preview_retail_media_third_party_accounts_account_id_brands_brand_id_remove_post_endpoint = _Endpoint(
|
|
103
|
+
settings={
|
|
104
|
+
'response_type': (ValueResourceOutcomeOfRetailMediaBrands,),
|
|
105
|
+
'auth': [
|
|
106
|
+
'oauth',
|
|
107
|
+
'oauth'
|
|
108
|
+
],
|
|
109
|
+
'endpoint_path': '/preview/retail-media/third-party-accounts/{accountId}/brands/{brandId}/remove',
|
|
110
|
+
'operation_id': 'preview_retail_media_third_party_accounts_account_id_brands_brand_id_remove_post',
|
|
111
|
+
'http_method': 'POST',
|
|
112
|
+
'servers': None,
|
|
113
|
+
},
|
|
114
|
+
params_map={
|
|
115
|
+
'all': [
|
|
116
|
+
'account_id',
|
|
117
|
+
'brand_id',
|
|
118
|
+
],
|
|
119
|
+
'required': [
|
|
120
|
+
'account_id',
|
|
121
|
+
'brand_id',
|
|
122
|
+
],
|
|
123
|
+
'nullable': [
|
|
124
|
+
],
|
|
125
|
+
'enum': [
|
|
126
|
+
],
|
|
127
|
+
'validation': [
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
root_map={
|
|
131
|
+
'validations': {
|
|
132
|
+
},
|
|
133
|
+
'allowed_values': {
|
|
134
|
+
},
|
|
135
|
+
'openapi_types': {
|
|
136
|
+
'account_id':
|
|
137
|
+
(str,),
|
|
138
|
+
'brand_id':
|
|
139
|
+
(str,),
|
|
140
|
+
},
|
|
141
|
+
'attribute_map': {
|
|
142
|
+
'account_id': 'accountId',
|
|
143
|
+
'brand_id': 'brandId',
|
|
144
|
+
},
|
|
145
|
+
'location_map': {
|
|
146
|
+
'account_id': 'path',
|
|
147
|
+
'brand_id': 'path',
|
|
148
|
+
},
|
|
149
|
+
'collection_format_map': {
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
headers_map={
|
|
153
|
+
'accept': [
|
|
154
|
+
'application/json'
|
|
155
|
+
],
|
|
156
|
+
'content_type': [],
|
|
157
|
+
},
|
|
158
|
+
api_client=api_client
|
|
159
|
+
)
|
|
160
|
+
self.preview_retail_media_third_party_accounts_account_id_create_brand_account_post_endpoint = _Endpoint(
|
|
161
|
+
settings={
|
|
162
|
+
'response_type': (EntityResourceOutcomeOfRetailMediaAccountV2,),
|
|
163
|
+
'auth': [
|
|
164
|
+
'oauth',
|
|
165
|
+
'oauth'
|
|
166
|
+
],
|
|
167
|
+
'endpoint_path': '/preview/retail-media/third-party-accounts/{accountId}/create-brand-account',
|
|
168
|
+
'operation_id': 'preview_retail_media_third_party_accounts_account_id_create_brand_account_post',
|
|
169
|
+
'http_method': 'POST',
|
|
170
|
+
'servers': None,
|
|
171
|
+
},
|
|
172
|
+
params_map={
|
|
173
|
+
'all': [
|
|
174
|
+
'account_id',
|
|
175
|
+
'value_resource_input_of_retail_media_brand_account_creation_v2',
|
|
176
|
+
],
|
|
177
|
+
'required': [
|
|
178
|
+
'account_id',
|
|
179
|
+
],
|
|
180
|
+
'nullable': [
|
|
181
|
+
],
|
|
182
|
+
'enum': [
|
|
183
|
+
],
|
|
184
|
+
'validation': [
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
root_map={
|
|
188
|
+
'validations': {
|
|
189
|
+
},
|
|
190
|
+
'allowed_values': {
|
|
191
|
+
},
|
|
192
|
+
'openapi_types': {
|
|
193
|
+
'account_id':
|
|
194
|
+
(str,),
|
|
195
|
+
'value_resource_input_of_retail_media_brand_account_creation_v2':
|
|
196
|
+
(ValueResourceInputOfRetailMediaBrandAccountCreationV2,),
|
|
197
|
+
},
|
|
198
|
+
'attribute_map': {
|
|
199
|
+
'account_id': 'accountId',
|
|
200
|
+
},
|
|
201
|
+
'location_map': {
|
|
202
|
+
'account_id': 'path',
|
|
203
|
+
'value_resource_input_of_retail_media_brand_account_creation_v2': 'body',
|
|
204
|
+
},
|
|
205
|
+
'collection_format_map': {
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
headers_map={
|
|
209
|
+
'accept': [
|
|
210
|
+
'application/json'
|
|
211
|
+
],
|
|
212
|
+
'content_type': [
|
|
213
|
+
'application/json'
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
api_client=api_client
|
|
217
|
+
)
|
|
218
|
+
self.preview_retail_media_third_party_accounts_account_id_create_seller_account_post_endpoint = _Endpoint(
|
|
219
|
+
settings={
|
|
220
|
+
'response_type': (EntityResourceOutcomeOfRetailMediaAccountV2,),
|
|
221
|
+
'auth': [
|
|
222
|
+
'oauth',
|
|
223
|
+
'oauth'
|
|
224
|
+
],
|
|
225
|
+
'endpoint_path': '/preview/retail-media/third-party-accounts/{accountId}/create-seller-account',
|
|
226
|
+
'operation_id': 'preview_retail_media_third_party_accounts_account_id_create_seller_account_post',
|
|
227
|
+
'http_method': 'POST',
|
|
228
|
+
'servers': None,
|
|
229
|
+
},
|
|
230
|
+
params_map={
|
|
231
|
+
'all': [
|
|
232
|
+
'account_id',
|
|
233
|
+
'value_resource_input_of_retail_media_seller_account_creation_v2',
|
|
234
|
+
],
|
|
235
|
+
'required': [
|
|
236
|
+
'account_id',
|
|
237
|
+
],
|
|
238
|
+
'nullable': [
|
|
239
|
+
],
|
|
240
|
+
'enum': [
|
|
241
|
+
],
|
|
242
|
+
'validation': [
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
root_map={
|
|
246
|
+
'validations': {
|
|
247
|
+
},
|
|
248
|
+
'allowed_values': {
|
|
249
|
+
},
|
|
250
|
+
'openapi_types': {
|
|
251
|
+
'account_id':
|
|
252
|
+
(str,),
|
|
253
|
+
'value_resource_input_of_retail_media_seller_account_creation_v2':
|
|
254
|
+
(ValueResourceInputOfRetailMediaSellerAccountCreationV2,),
|
|
255
|
+
},
|
|
256
|
+
'attribute_map': {
|
|
257
|
+
'account_id': 'accountId',
|
|
258
|
+
},
|
|
259
|
+
'location_map': {
|
|
260
|
+
'account_id': 'path',
|
|
261
|
+
'value_resource_input_of_retail_media_seller_account_creation_v2': 'body',
|
|
262
|
+
},
|
|
263
|
+
'collection_format_map': {
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
headers_map={
|
|
267
|
+
'accept': [
|
|
268
|
+
'application/json'
|
|
269
|
+
],
|
|
270
|
+
'content_type': [
|
|
271
|
+
'application/json'
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
api_client=api_client
|
|
275
|
+
)
|
|
276
|
+
self.preview_retail_media_third_party_accounts_account_id_sellers_put_endpoint = _Endpoint(
|
|
277
|
+
settings={
|
|
278
|
+
'response_type': (ValueResourceCollectionOutcomeOfRetailMediaSeller,),
|
|
279
|
+
'auth': [
|
|
280
|
+
'oauth',
|
|
281
|
+
'oauth'
|
|
282
|
+
],
|
|
283
|
+
'endpoint_path': '/preview/retail-media/third-party-accounts/{accountId}/sellers',
|
|
284
|
+
'operation_id': 'preview_retail_media_third_party_accounts_account_id_sellers_put',
|
|
285
|
+
'http_method': 'PUT',
|
|
286
|
+
'servers': None,
|
|
287
|
+
},
|
|
288
|
+
params_map={
|
|
289
|
+
'all': [
|
|
290
|
+
'account_id',
|
|
291
|
+
'value_resource_collection_input_of_retail_media_seller',
|
|
292
|
+
],
|
|
293
|
+
'required': [
|
|
294
|
+
'account_id',
|
|
295
|
+
],
|
|
296
|
+
'nullable': [
|
|
297
|
+
],
|
|
298
|
+
'enum': [
|
|
299
|
+
],
|
|
300
|
+
'validation': [
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
root_map={
|
|
304
|
+
'validations': {
|
|
305
|
+
},
|
|
306
|
+
'allowed_values': {
|
|
307
|
+
},
|
|
308
|
+
'openapi_types': {
|
|
309
|
+
'account_id':
|
|
310
|
+
(str,),
|
|
311
|
+
'value_resource_collection_input_of_retail_media_seller':
|
|
312
|
+
(ValueResourceCollectionInputOfRetailMediaSeller,),
|
|
313
|
+
},
|
|
314
|
+
'attribute_map': {
|
|
315
|
+
'account_id': 'accountId',
|
|
316
|
+
},
|
|
317
|
+
'location_map': {
|
|
318
|
+
'account_id': 'path',
|
|
319
|
+
'value_resource_collection_input_of_retail_media_seller': 'body',
|
|
320
|
+
},
|
|
321
|
+
'collection_format_map': {
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
headers_map={
|
|
325
|
+
'accept': [
|
|
326
|
+
'application/json'
|
|
327
|
+
],
|
|
328
|
+
'content_type': [
|
|
329
|
+
'application/json'
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
api_client=api_client
|
|
333
|
+
)
|
|
334
|
+
|
|
335
|
+
def preview_retail_media_third_party_accounts_account_id_brands_add_post(
|
|
336
|
+
self,
|
|
337
|
+
account_id,
|
|
338
|
+
**kwargs
|
|
339
|
+
):
|
|
340
|
+
"""preview_retail_media_third_party_accounts_account_id_brands_add_post # noqa: E501
|
|
341
|
+
|
|
342
|
+
add the provided brands to an account. This will not remove any existing brands. # noqa: E501
|
|
343
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
344
|
+
asynchronous HTTP request, please pass async_req=True
|
|
345
|
+
|
|
346
|
+
>>> thread = api.preview_retail_media_third_party_accounts_account_id_brands_add_post(account_id, async_req=True)
|
|
347
|
+
>>> result = thread.get()
|
|
348
|
+
|
|
349
|
+
Args:
|
|
350
|
+
account_id (str): account to add brands to
|
|
351
|
+
|
|
352
|
+
Keyword Args:
|
|
353
|
+
value_resource_input_of_retail_media_brands (ValueResourceInputOfRetailMediaBrands): list of bands to add to an account. [optional]
|
|
354
|
+
_return_http_data_only (bool): response data without head status
|
|
355
|
+
code and headers. Default is True.
|
|
356
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
357
|
+
will be returned without reading/decoding response data.
|
|
358
|
+
Default is True.
|
|
359
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
360
|
+
one number provided, it will be total request timeout. It can also
|
|
361
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
362
|
+
Default is None.
|
|
363
|
+
_check_input_type (bool): specifies if type checking
|
|
364
|
+
should be done one the data sent to the server.
|
|
365
|
+
Default is True.
|
|
366
|
+
_check_return_type (bool): specifies if type checking
|
|
367
|
+
should be done one the data received from the server.
|
|
368
|
+
Default is True.
|
|
369
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
370
|
+
are serialized names, as specified in the OpenAPI document.
|
|
371
|
+
False if the variable names in the input data
|
|
372
|
+
are pythonic names, e.g. snake case (default)
|
|
373
|
+
_content_type (str/None): force body content-type.
|
|
374
|
+
Default is None and content-type will be predicted by allowed
|
|
375
|
+
content-types and body.
|
|
376
|
+
_host_index (int/None): specifies the index of the server
|
|
377
|
+
that we want to use.
|
|
378
|
+
Default is read from the configuration.
|
|
379
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
380
|
+
request; this effectively ignores the authentication
|
|
381
|
+
in the spec for a single request.
|
|
382
|
+
Default is None
|
|
383
|
+
async_req (bool): execute request asynchronously
|
|
384
|
+
|
|
385
|
+
Returns:
|
|
386
|
+
ValueResourceOutcomeOfRetailMediaBrands
|
|
387
|
+
If the method is called asynchronously, returns the request
|
|
388
|
+
thread.
|
|
389
|
+
"""
|
|
390
|
+
kwargs['async_req'] = kwargs.get(
|
|
391
|
+
'async_req', False
|
|
392
|
+
)
|
|
393
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
394
|
+
'_return_http_data_only', True
|
|
395
|
+
)
|
|
396
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
397
|
+
'_preload_content', True
|
|
398
|
+
)
|
|
399
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
400
|
+
'_request_timeout', None
|
|
401
|
+
)
|
|
402
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
403
|
+
'_check_input_type', True
|
|
404
|
+
)
|
|
405
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
406
|
+
'_check_return_type', True
|
|
407
|
+
)
|
|
408
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
409
|
+
'_spec_property_naming', False
|
|
410
|
+
)
|
|
411
|
+
kwargs['_content_type'] = kwargs.get(
|
|
412
|
+
'_content_type')
|
|
413
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
414
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
415
|
+
kwargs['account_id'] = \
|
|
416
|
+
account_id
|
|
417
|
+
return self.preview_retail_media_third_party_accounts_account_id_brands_add_post_endpoint.call_with_http_info(**kwargs)
|
|
418
|
+
|
|
419
|
+
def preview_retail_media_third_party_accounts_account_id_brands_brand_id_remove_post(
|
|
420
|
+
self,
|
|
421
|
+
account_id,
|
|
422
|
+
brand_id,
|
|
423
|
+
**kwargs
|
|
424
|
+
):
|
|
425
|
+
"""preview_retail_media_third_party_accounts_account_id_brands_brand_id_remove_post # noqa: E501
|
|
426
|
+
|
|
427
|
+
Attempt to remove the provided brand from the account. # noqa: E501
|
|
428
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
429
|
+
asynchronous HTTP request, please pass async_req=True
|
|
430
|
+
|
|
431
|
+
>>> thread = api.preview_retail_media_third_party_accounts_account_id_brands_brand_id_remove_post(account_id, brand_id, async_req=True)
|
|
432
|
+
>>> result = thread.get()
|
|
433
|
+
|
|
434
|
+
Args:
|
|
435
|
+
account_id (str): account id to remove brand from
|
|
436
|
+
brand_id (str): brand to remove
|
|
437
|
+
|
|
438
|
+
Keyword Args:
|
|
439
|
+
_return_http_data_only (bool): response data without head status
|
|
440
|
+
code and headers. Default is True.
|
|
441
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
442
|
+
will be returned without reading/decoding response data.
|
|
443
|
+
Default is True.
|
|
444
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
445
|
+
one number provided, it will be total request timeout. It can also
|
|
446
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
447
|
+
Default is None.
|
|
448
|
+
_check_input_type (bool): specifies if type checking
|
|
449
|
+
should be done one the data sent to the server.
|
|
450
|
+
Default is True.
|
|
451
|
+
_check_return_type (bool): specifies if type checking
|
|
452
|
+
should be done one the data received from the server.
|
|
453
|
+
Default is True.
|
|
454
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
455
|
+
are serialized names, as specified in the OpenAPI document.
|
|
456
|
+
False if the variable names in the input data
|
|
457
|
+
are pythonic names, e.g. snake case (default)
|
|
458
|
+
_content_type (str/None): force body content-type.
|
|
459
|
+
Default is None and content-type will be predicted by allowed
|
|
460
|
+
content-types and body.
|
|
461
|
+
_host_index (int/None): specifies the index of the server
|
|
462
|
+
that we want to use.
|
|
463
|
+
Default is read from the configuration.
|
|
464
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
465
|
+
request; this effectively ignores the authentication
|
|
466
|
+
in the spec for a single request.
|
|
467
|
+
Default is None
|
|
468
|
+
async_req (bool): execute request asynchronously
|
|
469
|
+
|
|
470
|
+
Returns:
|
|
471
|
+
ValueResourceOutcomeOfRetailMediaBrands
|
|
472
|
+
If the method is called asynchronously, returns the request
|
|
473
|
+
thread.
|
|
474
|
+
"""
|
|
475
|
+
kwargs['async_req'] = kwargs.get(
|
|
476
|
+
'async_req', False
|
|
477
|
+
)
|
|
478
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
479
|
+
'_return_http_data_only', True
|
|
480
|
+
)
|
|
481
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
482
|
+
'_preload_content', True
|
|
483
|
+
)
|
|
484
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
485
|
+
'_request_timeout', None
|
|
486
|
+
)
|
|
487
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
488
|
+
'_check_input_type', True
|
|
489
|
+
)
|
|
490
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
491
|
+
'_check_return_type', True
|
|
492
|
+
)
|
|
493
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
494
|
+
'_spec_property_naming', False
|
|
495
|
+
)
|
|
496
|
+
kwargs['_content_type'] = kwargs.get(
|
|
497
|
+
'_content_type')
|
|
498
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
499
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
500
|
+
kwargs['account_id'] = \
|
|
501
|
+
account_id
|
|
502
|
+
kwargs['brand_id'] = \
|
|
503
|
+
brand_id
|
|
504
|
+
return self.preview_retail_media_third_party_accounts_account_id_brands_brand_id_remove_post_endpoint.call_with_http_info(**kwargs)
|
|
505
|
+
|
|
506
|
+
def preview_retail_media_third_party_accounts_account_id_create_brand_account_post(
|
|
507
|
+
self,
|
|
508
|
+
account_id,
|
|
509
|
+
**kwargs
|
|
510
|
+
):
|
|
511
|
+
"""preview_retail_media_third_party_accounts_account_id_create_brand_account_post # noqa: E501
|
|
512
|
+
|
|
513
|
+
Create a private market demand brand account under a given parent account. # noqa: E501
|
|
514
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
515
|
+
asynchronous HTTP request, please pass async_req=True
|
|
516
|
+
|
|
517
|
+
>>> thread = api.preview_retail_media_third_party_accounts_account_id_create_brand_account_post(account_id, async_req=True)
|
|
518
|
+
>>> result = thread.get()
|
|
519
|
+
|
|
520
|
+
Args:
|
|
521
|
+
account_id (str): parent supply account to create account under
|
|
522
|
+
|
|
523
|
+
Keyword Args:
|
|
524
|
+
value_resource_input_of_retail_media_brand_account_creation_v2 (ValueResourceInputOfRetailMediaBrandAccountCreationV2): . [optional]
|
|
525
|
+
_return_http_data_only (bool): response data without head status
|
|
526
|
+
code and headers. Default is True.
|
|
527
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
528
|
+
will be returned without reading/decoding response data.
|
|
529
|
+
Default is True.
|
|
530
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
531
|
+
one number provided, it will be total request timeout. It can also
|
|
532
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
533
|
+
Default is None.
|
|
534
|
+
_check_input_type (bool): specifies if type checking
|
|
535
|
+
should be done one the data sent to the server.
|
|
536
|
+
Default is True.
|
|
537
|
+
_check_return_type (bool): specifies if type checking
|
|
538
|
+
should be done one the data received from the server.
|
|
539
|
+
Default is True.
|
|
540
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
541
|
+
are serialized names, as specified in the OpenAPI document.
|
|
542
|
+
False if the variable names in the input data
|
|
543
|
+
are pythonic names, e.g. snake case (default)
|
|
544
|
+
_content_type (str/None): force body content-type.
|
|
545
|
+
Default is None and content-type will be predicted by allowed
|
|
546
|
+
content-types and body.
|
|
547
|
+
_host_index (int/None): specifies the index of the server
|
|
548
|
+
that we want to use.
|
|
549
|
+
Default is read from the configuration.
|
|
550
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
551
|
+
request; this effectively ignores the authentication
|
|
552
|
+
in the spec for a single request.
|
|
553
|
+
Default is None
|
|
554
|
+
async_req (bool): execute request asynchronously
|
|
555
|
+
|
|
556
|
+
Returns:
|
|
557
|
+
EntityResourceOutcomeOfRetailMediaAccountV2
|
|
558
|
+
If the method is called asynchronously, returns the request
|
|
559
|
+
thread.
|
|
560
|
+
"""
|
|
561
|
+
kwargs['async_req'] = kwargs.get(
|
|
562
|
+
'async_req', False
|
|
563
|
+
)
|
|
564
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
565
|
+
'_return_http_data_only', True
|
|
566
|
+
)
|
|
567
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
568
|
+
'_preload_content', True
|
|
569
|
+
)
|
|
570
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
571
|
+
'_request_timeout', None
|
|
572
|
+
)
|
|
573
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
574
|
+
'_check_input_type', True
|
|
575
|
+
)
|
|
576
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
577
|
+
'_check_return_type', True
|
|
578
|
+
)
|
|
579
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
580
|
+
'_spec_property_naming', False
|
|
581
|
+
)
|
|
582
|
+
kwargs['_content_type'] = kwargs.get(
|
|
583
|
+
'_content_type')
|
|
584
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
585
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
586
|
+
kwargs['account_id'] = \
|
|
587
|
+
account_id
|
|
588
|
+
return self.preview_retail_media_third_party_accounts_account_id_create_brand_account_post_endpoint.call_with_http_info(**kwargs)
|
|
589
|
+
|
|
590
|
+
def preview_retail_media_third_party_accounts_account_id_create_seller_account_post(
|
|
591
|
+
self,
|
|
592
|
+
account_id,
|
|
593
|
+
**kwargs
|
|
594
|
+
):
|
|
595
|
+
"""preview_retail_media_third_party_accounts_account_id_create_seller_account_post # noqa: E501
|
|
596
|
+
|
|
597
|
+
Create a private market demand seller account under a given parent account. # noqa: E501
|
|
598
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
599
|
+
asynchronous HTTP request, please pass async_req=True
|
|
600
|
+
|
|
601
|
+
>>> thread = api.preview_retail_media_third_party_accounts_account_id_create_seller_account_post(account_id, async_req=True)
|
|
602
|
+
>>> result = thread.get()
|
|
603
|
+
|
|
604
|
+
Args:
|
|
605
|
+
account_id (str): parent supply account to create account under
|
|
606
|
+
|
|
607
|
+
Keyword Args:
|
|
608
|
+
value_resource_input_of_retail_media_seller_account_creation_v2 (ValueResourceInputOfRetailMediaSellerAccountCreationV2): . [optional]
|
|
609
|
+
_return_http_data_only (bool): response data without head status
|
|
610
|
+
code and headers. Default is True.
|
|
611
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
612
|
+
will be returned without reading/decoding response data.
|
|
613
|
+
Default is True.
|
|
614
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
615
|
+
one number provided, it will be total request timeout. It can also
|
|
616
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
617
|
+
Default is None.
|
|
618
|
+
_check_input_type (bool): specifies if type checking
|
|
619
|
+
should be done one the data sent to the server.
|
|
620
|
+
Default is True.
|
|
621
|
+
_check_return_type (bool): specifies if type checking
|
|
622
|
+
should be done one the data received from the server.
|
|
623
|
+
Default is True.
|
|
624
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
625
|
+
are serialized names, as specified in the OpenAPI document.
|
|
626
|
+
False if the variable names in the input data
|
|
627
|
+
are pythonic names, e.g. snake case (default)
|
|
628
|
+
_content_type (str/None): force body content-type.
|
|
629
|
+
Default is None and content-type will be predicted by allowed
|
|
630
|
+
content-types and body.
|
|
631
|
+
_host_index (int/None): specifies the index of the server
|
|
632
|
+
that we want to use.
|
|
633
|
+
Default is read from the configuration.
|
|
634
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
635
|
+
request; this effectively ignores the authentication
|
|
636
|
+
in the spec for a single request.
|
|
637
|
+
Default is None
|
|
638
|
+
async_req (bool): execute request asynchronously
|
|
639
|
+
|
|
640
|
+
Returns:
|
|
641
|
+
EntityResourceOutcomeOfRetailMediaAccountV2
|
|
642
|
+
If the method is called asynchronously, returns the request
|
|
643
|
+
thread.
|
|
644
|
+
"""
|
|
645
|
+
kwargs['async_req'] = kwargs.get(
|
|
646
|
+
'async_req', False
|
|
647
|
+
)
|
|
648
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
649
|
+
'_return_http_data_only', True
|
|
650
|
+
)
|
|
651
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
652
|
+
'_preload_content', True
|
|
653
|
+
)
|
|
654
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
655
|
+
'_request_timeout', None
|
|
656
|
+
)
|
|
657
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
658
|
+
'_check_input_type', True
|
|
659
|
+
)
|
|
660
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
661
|
+
'_check_return_type', True
|
|
662
|
+
)
|
|
663
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
664
|
+
'_spec_property_naming', False
|
|
665
|
+
)
|
|
666
|
+
kwargs['_content_type'] = kwargs.get(
|
|
667
|
+
'_content_type')
|
|
668
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
669
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
670
|
+
kwargs['account_id'] = \
|
|
671
|
+
account_id
|
|
672
|
+
return self.preview_retail_media_third_party_accounts_account_id_create_seller_account_post_endpoint.call_with_http_info(**kwargs)
|
|
673
|
+
|
|
674
|
+
def preview_retail_media_third_party_accounts_account_id_sellers_put(
|
|
675
|
+
self,
|
|
676
|
+
account_id,
|
|
677
|
+
**kwargs
|
|
678
|
+
):
|
|
679
|
+
"""preview_retail_media_third_party_accounts_account_id_sellers_put # noqa: E501
|
|
680
|
+
|
|
681
|
+
Update the list of sellers mapped to the account. This will override any existing mappings. # noqa: E501
|
|
682
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
683
|
+
asynchronous HTTP request, please pass async_req=True
|
|
684
|
+
|
|
685
|
+
>>> thread = api.preview_retail_media_third_party_accounts_account_id_sellers_put(account_id, async_req=True)
|
|
686
|
+
>>> result = thread.get()
|
|
687
|
+
|
|
688
|
+
Args:
|
|
689
|
+
account_id (str): accountId to update sellers for
|
|
690
|
+
|
|
691
|
+
Keyword Args:
|
|
692
|
+
value_resource_collection_input_of_retail_media_seller (ValueResourceCollectionInputOfRetailMediaSeller): . [optional]
|
|
693
|
+
_return_http_data_only (bool): response data without head status
|
|
694
|
+
code and headers. Default is True.
|
|
695
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
696
|
+
will be returned without reading/decoding response data.
|
|
697
|
+
Default is True.
|
|
698
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
699
|
+
one number provided, it will be total request timeout. It can also
|
|
700
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
701
|
+
Default is None.
|
|
702
|
+
_check_input_type (bool): specifies if type checking
|
|
703
|
+
should be done one the data sent to the server.
|
|
704
|
+
Default is True.
|
|
705
|
+
_check_return_type (bool): specifies if type checking
|
|
706
|
+
should be done one the data received from the server.
|
|
707
|
+
Default is True.
|
|
708
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
709
|
+
are serialized names, as specified in the OpenAPI document.
|
|
710
|
+
False if the variable names in the input data
|
|
711
|
+
are pythonic names, e.g. snake case (default)
|
|
712
|
+
_content_type (str/None): force body content-type.
|
|
713
|
+
Default is None and content-type will be predicted by allowed
|
|
714
|
+
content-types and body.
|
|
715
|
+
_host_index (int/None): specifies the index of the server
|
|
716
|
+
that we want to use.
|
|
717
|
+
Default is read from the configuration.
|
|
718
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
719
|
+
request; this effectively ignores the authentication
|
|
720
|
+
in the spec for a single request.
|
|
721
|
+
Default is None
|
|
722
|
+
async_req (bool): execute request asynchronously
|
|
723
|
+
|
|
724
|
+
Returns:
|
|
725
|
+
ValueResourceCollectionOutcomeOfRetailMediaSeller
|
|
726
|
+
If the method is called asynchronously, returns the request
|
|
727
|
+
thread.
|
|
728
|
+
"""
|
|
729
|
+
kwargs['async_req'] = kwargs.get(
|
|
730
|
+
'async_req', False
|
|
731
|
+
)
|
|
732
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
733
|
+
'_return_http_data_only', True
|
|
734
|
+
)
|
|
735
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
736
|
+
'_preload_content', True
|
|
737
|
+
)
|
|
738
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
739
|
+
'_request_timeout', None
|
|
740
|
+
)
|
|
741
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
742
|
+
'_check_input_type', True
|
|
743
|
+
)
|
|
744
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
745
|
+
'_check_return_type', True
|
|
746
|
+
)
|
|
747
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
748
|
+
'_spec_property_naming', False
|
|
749
|
+
)
|
|
750
|
+
kwargs['_content_type'] = kwargs.get(
|
|
751
|
+
'_content_type')
|
|
752
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
753
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
754
|
+
kwargs['account_id'] = \
|
|
755
|
+
account_id
|
|
756
|
+
return self.preview_retail_media_third_party_accounts_account_id_sellers_put_endpoint.call_with_http_info(**kwargs)
|
|
757
|
+
|