criteo-api-retailmedia-sdk 0.0.240731__py3-none-any.whl → 0.0.240808__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 +294 -0
- criteo_api_retailmedia_preview/api/audience_api.py +2 -2
- criteo_api_retailmedia_preview/api/balance_api.py +4 -16
- criteo_api_retailmedia_preview/api/campaign_api.py +10 -10
- criteo_api_retailmedia_preview/api_client.py +4 -4
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/balance_response_v2.py +10 -10
- criteo_api_retailmedia_preview/model/create_balance_v2.py +6 -6
- criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py +6 -4
- criteo_api_retailmedia_preview/model/resource_of_retail_media_account.py +270 -0
- criteo_api_retailmedia_preview/model/resource_outcome_of_retail_media_account.py +274 -0
- criteo_api_retailmedia_preview/model/retail_media_account.py +297 -0
- criteo_api_retailmedia_preview/model/retail_media_seller.py +261 -0
- criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +270 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py +11 -0
- criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +10 -0
- criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +11 -0
- criteo_api_retailmedia_preview/model/rm_user_behavior_v1.py +303 -0
- 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_of_retail_media_seller.py +274 -0
- 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_seller.py +266 -0
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation.py +266 -0
- criteo_api_retailmedia_preview/models/__init__.py +11 -0
- {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.240808.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.240808.dist-info}/RECORD +29 -18
- {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.240808.dist-info}/WHEEL +0 -0
- {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.240808.dist-info}/top_level.txt +0 -0
|
@@ -23,6 +23,10 @@ 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.json_api_page_response_of_account import JsonApiPageResponseOfAccount
|
|
26
|
+
from criteo_api_retailmedia_preview.model.resource_outcome_of_retail_media_account import ResourceOutcomeOfRetailMediaAccount
|
|
27
|
+
from criteo_api_retailmedia_preview.model.value_resource_collection_input_of_retail_media_seller import ValueResourceCollectionInputOfRetailMediaSeller
|
|
28
|
+
from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_of_retail_media_seller import ValueResourceCollectionOutcomeOfRetailMediaSeller
|
|
29
|
+
from criteo_api_retailmedia_preview.model.value_resource_input_of_retail_media_seller_account_creation import ValueResourceInputOfRetailMediaSellerAccountCreation
|
|
26
30
|
|
|
27
31
|
|
|
28
32
|
class AccountsApi(object):
|
|
@@ -36,6 +40,67 @@ class AccountsApi(object):
|
|
|
36
40
|
if api_client is None:
|
|
37
41
|
api_client = ApiClient()
|
|
38
42
|
self.api_client = api_client
|
|
43
|
+
self.create_private_market_demand_seller_account_endpoint = _Endpoint(
|
|
44
|
+
settings={
|
|
45
|
+
'response_type': (ResourceOutcomeOfRetailMediaAccount,),
|
|
46
|
+
'auth': [
|
|
47
|
+
'oauth',
|
|
48
|
+
'oauth'
|
|
49
|
+
],
|
|
50
|
+
'endpoint_path': '/preview/retail-media/account-management/accounts/{accountId}/create-seller-account',
|
|
51
|
+
'operation_id': 'create_private_market_demand_seller_account',
|
|
52
|
+
'http_method': 'POST',
|
|
53
|
+
'servers': None,
|
|
54
|
+
},
|
|
55
|
+
params_map={
|
|
56
|
+
'all': [
|
|
57
|
+
'account_id',
|
|
58
|
+
'value_resource_input_of_retail_media_seller_account_creation',
|
|
59
|
+
],
|
|
60
|
+
'required': [
|
|
61
|
+
'account_id',
|
|
62
|
+
],
|
|
63
|
+
'nullable': [
|
|
64
|
+
],
|
|
65
|
+
'enum': [
|
|
66
|
+
],
|
|
67
|
+
'validation': [
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
root_map={
|
|
71
|
+
'validations': {
|
|
72
|
+
},
|
|
73
|
+
'allowed_values': {
|
|
74
|
+
},
|
|
75
|
+
'openapi_types': {
|
|
76
|
+
'account_id':
|
|
77
|
+
(str,),
|
|
78
|
+
'value_resource_input_of_retail_media_seller_account_creation':
|
|
79
|
+
(ValueResourceInputOfRetailMediaSellerAccountCreation,),
|
|
80
|
+
},
|
|
81
|
+
'attribute_map': {
|
|
82
|
+
'account_id': 'accountId',
|
|
83
|
+
},
|
|
84
|
+
'location_map': {
|
|
85
|
+
'account_id': 'path',
|
|
86
|
+
'value_resource_input_of_retail_media_seller_account_creation': 'body',
|
|
87
|
+
},
|
|
88
|
+
'collection_format_map': {
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
headers_map={
|
|
92
|
+
'accept': [
|
|
93
|
+
'application/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
|
+
)
|
|
39
104
|
self.get_api_v1_external_accounts_endpoint = _Endpoint(
|
|
40
105
|
settings={
|
|
41
106
|
'response_type': (JsonApiPageResponseOfAccount,),
|
|
@@ -158,6 +223,151 @@ class AccountsApi(object):
|
|
|
158
223
|
},
|
|
159
224
|
api_client=api_client
|
|
160
225
|
)
|
|
226
|
+
self.update_sellers_endpoint = _Endpoint(
|
|
227
|
+
settings={
|
|
228
|
+
'response_type': (ValueResourceCollectionOutcomeOfRetailMediaSeller,),
|
|
229
|
+
'auth': [
|
|
230
|
+
'oauth',
|
|
231
|
+
'oauth'
|
|
232
|
+
],
|
|
233
|
+
'endpoint_path': '/preview/retail-media/account-management/accounts/{accountId}/sellers',
|
|
234
|
+
'operation_id': 'update_sellers',
|
|
235
|
+
'http_method': 'PUT',
|
|
236
|
+
'servers': None,
|
|
237
|
+
},
|
|
238
|
+
params_map={
|
|
239
|
+
'all': [
|
|
240
|
+
'account_id',
|
|
241
|
+
'value_resource_collection_input_of_retail_media_seller',
|
|
242
|
+
],
|
|
243
|
+
'required': [
|
|
244
|
+
'account_id',
|
|
245
|
+
],
|
|
246
|
+
'nullable': [
|
|
247
|
+
],
|
|
248
|
+
'enum': [
|
|
249
|
+
],
|
|
250
|
+
'validation': [
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
root_map={
|
|
254
|
+
'validations': {
|
|
255
|
+
},
|
|
256
|
+
'allowed_values': {
|
|
257
|
+
},
|
|
258
|
+
'openapi_types': {
|
|
259
|
+
'account_id':
|
|
260
|
+
(str,),
|
|
261
|
+
'value_resource_collection_input_of_retail_media_seller':
|
|
262
|
+
(ValueResourceCollectionInputOfRetailMediaSeller,),
|
|
263
|
+
},
|
|
264
|
+
'attribute_map': {
|
|
265
|
+
'account_id': 'accountId',
|
|
266
|
+
},
|
|
267
|
+
'location_map': {
|
|
268
|
+
'account_id': 'path',
|
|
269
|
+
'value_resource_collection_input_of_retail_media_seller': 'body',
|
|
270
|
+
},
|
|
271
|
+
'collection_format_map': {
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
headers_map={
|
|
275
|
+
'accept': [
|
|
276
|
+
'application/json'
|
|
277
|
+
],
|
|
278
|
+
'content_type': [
|
|
279
|
+
'application/json-patch+json',
|
|
280
|
+
'application/json',
|
|
281
|
+
'text/json',
|
|
282
|
+
'application/*+json'
|
|
283
|
+
]
|
|
284
|
+
},
|
|
285
|
+
api_client=api_client
|
|
286
|
+
)
|
|
287
|
+
|
|
288
|
+
def create_private_market_demand_seller_account(
|
|
289
|
+
self,
|
|
290
|
+
account_id,
|
|
291
|
+
**kwargs
|
|
292
|
+
):
|
|
293
|
+
"""create_private_market_demand_seller_account # noqa: E501
|
|
294
|
+
|
|
295
|
+
Creates a new child Demand Seller Account for the provided parent private market account # noqa: E501
|
|
296
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
297
|
+
asynchronous HTTP request, please pass async_req=True
|
|
298
|
+
|
|
299
|
+
>>> thread = api.create_private_market_demand_seller_account(account_id, async_req=True)
|
|
300
|
+
>>> result = thread.get()
|
|
301
|
+
|
|
302
|
+
Args:
|
|
303
|
+
account_id (str): Account Id for the parent private market account
|
|
304
|
+
|
|
305
|
+
Keyword Args:
|
|
306
|
+
value_resource_input_of_retail_media_seller_account_creation (ValueResourceInputOfRetailMediaSellerAccountCreation): Initial creation and configuration options for the new account. [optional]
|
|
307
|
+
_return_http_data_only (bool): response data without head status
|
|
308
|
+
code and headers. Default is True.
|
|
309
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
310
|
+
will be returned without reading/decoding response data.
|
|
311
|
+
Default is True.
|
|
312
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
313
|
+
one number provided, it will be total request timeout. It can also
|
|
314
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
315
|
+
Default is None.
|
|
316
|
+
_check_input_type (bool): specifies if type checking
|
|
317
|
+
should be done one the data sent to the server.
|
|
318
|
+
Default is True.
|
|
319
|
+
_check_return_type (bool): specifies if type checking
|
|
320
|
+
should be done one the data received from the server.
|
|
321
|
+
Default is True.
|
|
322
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
323
|
+
are serialized names, as specified in the OpenAPI document.
|
|
324
|
+
False if the variable names in the input data
|
|
325
|
+
are pythonic names, e.g. snake case (default)
|
|
326
|
+
_content_type (str/None): force body content-type.
|
|
327
|
+
Default is None and content-type will be predicted by allowed
|
|
328
|
+
content-types and body.
|
|
329
|
+
_host_index (int/None): specifies the index of the server
|
|
330
|
+
that we want to use.
|
|
331
|
+
Default is read from the configuration.
|
|
332
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
333
|
+
request; this effectively ignores the authentication
|
|
334
|
+
in the spec for a single request.
|
|
335
|
+
Default is None
|
|
336
|
+
async_req (bool): execute request asynchronously
|
|
337
|
+
|
|
338
|
+
Returns:
|
|
339
|
+
ResourceOutcomeOfRetailMediaAccount
|
|
340
|
+
If the method is called asynchronously, returns the request
|
|
341
|
+
thread.
|
|
342
|
+
"""
|
|
343
|
+
kwargs['async_req'] = kwargs.get(
|
|
344
|
+
'async_req', False
|
|
345
|
+
)
|
|
346
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
347
|
+
'_return_http_data_only', True
|
|
348
|
+
)
|
|
349
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
350
|
+
'_preload_content', True
|
|
351
|
+
)
|
|
352
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
353
|
+
'_request_timeout', None
|
|
354
|
+
)
|
|
355
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
356
|
+
'_check_input_type', True
|
|
357
|
+
)
|
|
358
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
359
|
+
'_check_return_type', True
|
|
360
|
+
)
|
|
361
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
362
|
+
'_spec_property_naming', False
|
|
363
|
+
)
|
|
364
|
+
kwargs['_content_type'] = kwargs.get(
|
|
365
|
+
'_content_type')
|
|
366
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
367
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
368
|
+
kwargs['account_id'] = \
|
|
369
|
+
account_id
|
|
370
|
+
return self.create_private_market_demand_seller_account_endpoint.call_with_http_info(**kwargs)
|
|
161
371
|
|
|
162
372
|
def get_api_v1_external_accounts(
|
|
163
373
|
self,
|
|
@@ -324,3 +534,87 @@ class AccountsApi(object):
|
|
|
324
534
|
account_id
|
|
325
535
|
return self.grant_consent_endpoint.call_with_http_info(**kwargs)
|
|
326
536
|
|
|
537
|
+
def update_sellers(
|
|
538
|
+
self,
|
|
539
|
+
account_id,
|
|
540
|
+
**kwargs
|
|
541
|
+
):
|
|
542
|
+
"""update_sellers # noqa: E501
|
|
543
|
+
|
|
544
|
+
replace the sellers assoiated with an account # noqa: E501
|
|
545
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
546
|
+
asynchronous HTTP request, please pass async_req=True
|
|
547
|
+
|
|
548
|
+
>>> thread = api.update_sellers(account_id, async_req=True)
|
|
549
|
+
>>> result = thread.get()
|
|
550
|
+
|
|
551
|
+
Args:
|
|
552
|
+
account_id (str): the account id to update
|
|
553
|
+
|
|
554
|
+
Keyword Args:
|
|
555
|
+
value_resource_collection_input_of_retail_media_seller (ValueResourceCollectionInputOfRetailMediaSeller): sellers to associate. [optional]
|
|
556
|
+
_return_http_data_only (bool): response data without head status
|
|
557
|
+
code and headers. Default is True.
|
|
558
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
559
|
+
will be returned without reading/decoding response data.
|
|
560
|
+
Default is True.
|
|
561
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
562
|
+
one number provided, it will be total request timeout. It can also
|
|
563
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
564
|
+
Default is None.
|
|
565
|
+
_check_input_type (bool): specifies if type checking
|
|
566
|
+
should be done one the data sent to the server.
|
|
567
|
+
Default is True.
|
|
568
|
+
_check_return_type (bool): specifies if type checking
|
|
569
|
+
should be done one the data received from the server.
|
|
570
|
+
Default is True.
|
|
571
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
572
|
+
are serialized names, as specified in the OpenAPI document.
|
|
573
|
+
False if the variable names in the input data
|
|
574
|
+
are pythonic names, e.g. snake case (default)
|
|
575
|
+
_content_type (str/None): force body content-type.
|
|
576
|
+
Default is None and content-type will be predicted by allowed
|
|
577
|
+
content-types and body.
|
|
578
|
+
_host_index (int/None): specifies the index of the server
|
|
579
|
+
that we want to use.
|
|
580
|
+
Default is read from the configuration.
|
|
581
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
582
|
+
request; this effectively ignores the authentication
|
|
583
|
+
in the spec for a single request.
|
|
584
|
+
Default is None
|
|
585
|
+
async_req (bool): execute request asynchronously
|
|
586
|
+
|
|
587
|
+
Returns:
|
|
588
|
+
ValueResourceCollectionOutcomeOfRetailMediaSeller
|
|
589
|
+
If the method is called asynchronously, returns the request
|
|
590
|
+
thread.
|
|
591
|
+
"""
|
|
592
|
+
kwargs['async_req'] = kwargs.get(
|
|
593
|
+
'async_req', False
|
|
594
|
+
)
|
|
595
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
596
|
+
'_return_http_data_only', True
|
|
597
|
+
)
|
|
598
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
599
|
+
'_preload_content', True
|
|
600
|
+
)
|
|
601
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
602
|
+
'_request_timeout', None
|
|
603
|
+
)
|
|
604
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
605
|
+
'_check_input_type', True
|
|
606
|
+
)
|
|
607
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
608
|
+
'_check_return_type', True
|
|
609
|
+
)
|
|
610
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
611
|
+
'_spec_property_naming', False
|
|
612
|
+
)
|
|
613
|
+
kwargs['_content_type'] = kwargs.get(
|
|
614
|
+
'_content_type')
|
|
615
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
616
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
617
|
+
kwargs['account_id'] = \
|
|
618
|
+
account_id
|
|
619
|
+
return self.update_sellers_endpoint.call_with_http_info(**kwargs)
|
|
620
|
+
|
|
@@ -1242,7 +1242,7 @@ class AudienceApi(object):
|
|
|
1242
1242
|
):
|
|
1243
1243
|
"""search_v1 # noqa: E501
|
|
1244
1244
|
|
|
1245
|
-
|
|
1245
|
+
Returns a list of segments that match the provided filters. If present, the filters are AND'ed together when applied. # noqa: E501
|
|
1246
1246
|
This method makes a synchronous HTTP request by default. To make an
|
|
1247
1247
|
asynchronous HTTP request, please pass async_req=True
|
|
1248
1248
|
|
|
@@ -1251,7 +1251,7 @@ class AudienceApi(object):
|
|
|
1251
1251
|
|
|
1252
1252
|
Args:
|
|
1253
1253
|
account_id (str): Account Id
|
|
1254
|
-
rm_audience_segment_search_input_v1 (RmAudienceSegmentSearchInputV1): Segment
|
|
1254
|
+
rm_audience_segment_search_input_v1 (RmAudienceSegmentSearchInputV1): Segment search filters.
|
|
1255
1255
|
|
|
1256
1256
|
Keyword Args:
|
|
1257
1257
|
limit (int): The number of elements to be returned. The default is 50 and the maximum is 100.. [optional] if omitted the server will use the default value of 50
|
|
@@ -62,9 +62,6 @@ class BalanceApi(object):
|
|
|
62
62
|
],
|
|
63
63
|
'required': [
|
|
64
64
|
'account_id',
|
|
65
|
-
'limit_to_id',
|
|
66
|
-
'page_index',
|
|
67
|
-
'page_size',
|
|
68
65
|
],
|
|
69
66
|
'nullable': [
|
|
70
67
|
],
|
|
@@ -519,9 +516,6 @@ class BalanceApi(object):
|
|
|
519
516
|
def get_api_v2_external_account_balances_by_account_id(
|
|
520
517
|
self,
|
|
521
518
|
account_id,
|
|
522
|
-
limit_to_id,
|
|
523
|
-
page_index=0,
|
|
524
|
-
page_size=25,
|
|
525
519
|
**kwargs
|
|
526
520
|
):
|
|
527
521
|
"""get_api_v2_external_account_balances_by_account_id # noqa: E501
|
|
@@ -530,16 +524,16 @@ class BalanceApi(object):
|
|
|
530
524
|
This method makes a synchronous HTTP request by default. To make an
|
|
531
525
|
asynchronous HTTP request, please pass async_req=True
|
|
532
526
|
|
|
533
|
-
>>> thread = api.get_api_v2_external_account_balances_by_account_id(account_id,
|
|
527
|
+
>>> thread = api.get_api_v2_external_account_balances_by_account_id(account_id, async_req=True)
|
|
534
528
|
>>> result = thread.get()
|
|
535
529
|
|
|
536
530
|
Args:
|
|
537
531
|
account_id (str): The account to get balances for
|
|
538
|
-
limit_to_id ([str]): The ids that you would like to limit your result set to
|
|
539
|
-
page_index (int): The 0 indexed page index you would like to receive given the page size. defaults to 0, must be one of [0]
|
|
540
|
-
page_size (int): The maximum number of items you would like to receive in this request. defaults to 25, must be one of [25]
|
|
541
532
|
|
|
542
533
|
Keyword Args:
|
|
534
|
+
limit_to_id ([str]): The ids that you would like to limit your result set to. [optional]
|
|
535
|
+
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
|
|
536
|
+
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
|
|
543
537
|
_return_http_data_only (bool): response data without head status
|
|
544
538
|
code and headers. Default is True.
|
|
545
539
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -603,12 +597,6 @@ class BalanceApi(object):
|
|
|
603
597
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
604
598
|
kwargs['account_id'] = \
|
|
605
599
|
account_id
|
|
606
|
-
kwargs['limit_to_id'] = \
|
|
607
|
-
limit_to_id
|
|
608
|
-
kwargs['page_index'] = \
|
|
609
|
-
page_index
|
|
610
|
-
kwargs['page_size'] = \
|
|
611
|
-
page_size
|
|
612
600
|
return self.get_api_v2_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs)
|
|
613
601
|
|
|
614
602
|
def get_api_v2_external_account_by_account_id_balancesbalance_id(
|
|
@@ -143,7 +143,7 @@ class CampaignApi(object):
|
|
|
143
143
|
'oauth',
|
|
144
144
|
'oauth'
|
|
145
145
|
],
|
|
146
|
-
'endpoint_path': '/preview/retail-media/line-items/{
|
|
146
|
+
'endpoint_path': '/preview/retail-media/line-items/{line-item-id}/products/append',
|
|
147
147
|
'operation_id': 'append_promoted_products',
|
|
148
148
|
'http_method': 'POST',
|
|
149
149
|
'servers': None,
|
|
@@ -175,7 +175,7 @@ class CampaignApi(object):
|
|
|
175
175
|
(PromotedProductResourceCollectionInput,),
|
|
176
176
|
},
|
|
177
177
|
'attribute_map': {
|
|
178
|
-
'line_item_id': '
|
|
178
|
+
'line_item_id': 'line-item-id',
|
|
179
179
|
},
|
|
180
180
|
'location_map': {
|
|
181
181
|
'line_item_id': 'path',
|
|
@@ -257,7 +257,7 @@ class CampaignApi(object):
|
|
|
257
257
|
'oauth',
|
|
258
258
|
'oauth'
|
|
259
259
|
],
|
|
260
|
-
'endpoint_path': '/preview/retail-media/line-items/{
|
|
260
|
+
'endpoint_path': '/preview/retail-media/line-items/{line-item-id}/products/delete',
|
|
261
261
|
'operation_id': 'delete_promoted_products',
|
|
262
262
|
'http_method': 'POST',
|
|
263
263
|
'servers': None,
|
|
@@ -289,7 +289,7 @@ class CampaignApi(object):
|
|
|
289
289
|
(PromotedProductResourceCollectionInput,),
|
|
290
290
|
},
|
|
291
291
|
'attribute_map': {
|
|
292
|
-
'line_item_id': '
|
|
292
|
+
'line_item_id': 'line-item-id',
|
|
293
293
|
},
|
|
294
294
|
'location_map': {
|
|
295
295
|
'line_item_id': 'path',
|
|
@@ -367,7 +367,7 @@ class CampaignApi(object):
|
|
|
367
367
|
'oauth',
|
|
368
368
|
'oauth'
|
|
369
369
|
],
|
|
370
|
-
'endpoint_path': '/preview/retail-media/line-items/{
|
|
370
|
+
'endpoint_path': '/preview/retail-media/line-items/{line-item-id}/products',
|
|
371
371
|
'operation_id': 'fetch_promoted_products',
|
|
372
372
|
'http_method': 'GET',
|
|
373
373
|
'servers': None,
|
|
@@ -405,7 +405,7 @@ class CampaignApi(object):
|
|
|
405
405
|
(str,),
|
|
406
406
|
},
|
|
407
407
|
'attribute_map': {
|
|
408
|
-
'line_item_id': '
|
|
408
|
+
'line_item_id': 'line-item-id',
|
|
409
409
|
'offset': 'offset',
|
|
410
410
|
'limit': 'limit',
|
|
411
411
|
'fields': 'fields',
|
|
@@ -1551,7 +1551,7 @@ class CampaignApi(object):
|
|
|
1551
1551
|
'oauth',
|
|
1552
1552
|
'oauth'
|
|
1553
1553
|
],
|
|
1554
|
-
'endpoint_path': '/preview/retail-media/line-items/{
|
|
1554
|
+
'endpoint_path': '/preview/retail-media/line-items/{line-item-id}/products/pause',
|
|
1555
1555
|
'operation_id': 'pause_promoted_products',
|
|
1556
1556
|
'http_method': 'POST',
|
|
1557
1557
|
'servers': None,
|
|
@@ -1583,7 +1583,7 @@ class CampaignApi(object):
|
|
|
1583
1583
|
(PromotedProductResourceCollectionInput,),
|
|
1584
1584
|
},
|
|
1585
1585
|
'attribute_map': {
|
|
1586
|
-
'line_item_id': '
|
|
1586
|
+
'line_item_id': 'line-item-id',
|
|
1587
1587
|
},
|
|
1588
1588
|
'location_map': {
|
|
1589
1589
|
'line_item_id': 'path',
|
|
@@ -2574,7 +2574,7 @@ class CampaignApi(object):
|
|
|
2574
2574
|
'oauth',
|
|
2575
2575
|
'oauth'
|
|
2576
2576
|
],
|
|
2577
|
-
'endpoint_path': '/preview/retail-media/line-items/{
|
|
2577
|
+
'endpoint_path': '/preview/retail-media/line-items/{line-item-id}/products/unpause',
|
|
2578
2578
|
'operation_id': 'unpause_promoted_products',
|
|
2579
2579
|
'http_method': 'POST',
|
|
2580
2580
|
'servers': None,
|
|
@@ -2606,7 +2606,7 @@ class CampaignApi(object):
|
|
|
2606
2606
|
(PromotedProductResourceCollectionInput,),
|
|
2607
2607
|
},
|
|
2608
2608
|
'attribute_map': {
|
|
2609
|
-
'line_item_id': '
|
|
2609
|
+
'line_item_id': 'line-item-id',
|
|
2610
2610
|
},
|
|
2611
2611
|
'location_map': {
|
|
2612
2612
|
'line_item_id': 'path',
|
|
@@ -76,7 +76,7 @@ class ApiClient(object):
|
|
|
76
76
|
self.default_headers[header_name] = header_value
|
|
77
77
|
self.cookie = cookie
|
|
78
78
|
# Set default User-Agent.
|
|
79
|
-
self.user_agent = 'OpenAPI-Generator/0.0.
|
|
79
|
+
self.user_agent = 'OpenAPI-Generator/0.0.240808/python'
|
|
80
80
|
|
|
81
81
|
def __enter__(self):
|
|
82
82
|
return self
|
|
@@ -804,10 +804,10 @@ class Endpoint(object):
|
|
|
804
804
|
Example:
|
|
805
805
|
|
|
806
806
|
api_instance = AccountsApi()
|
|
807
|
-
api_instance.
|
|
808
|
-
api_instance.
|
|
807
|
+
api_instance.create_private_market_demand_seller_account # this is an instance of the class Endpoint
|
|
808
|
+
api_instance.create_private_market_demand_seller_account() # this invokes api_instance.create_private_market_demand_seller_account.__call__()
|
|
809
809
|
which then invokes the callable functions stored in that endpoint at
|
|
810
|
-
api_instance.
|
|
810
|
+
api_instance.create_private_market_demand_seller_account.callable or self.callable in this class
|
|
811
811
|
|
|
812
812
|
"""
|
|
813
813
|
return self.callable(self, *args, **kwargs)
|
|
@@ -395,7 +395,7 @@ class Configuration(object):
|
|
|
395
395
|
"OS: {env}\n"\
|
|
396
396
|
"Python Version: {pyversion}\n"\
|
|
397
397
|
"Version of the API: Preview\n"\
|
|
398
|
-
"SDK Package Version: 0.0.
|
|
398
|
+
"SDK Package Version: 0.0.240808".\
|
|
399
399
|
format(env=sys.platform, pyversion=sys.version)
|
|
400
400
|
|
|
401
401
|
def get_host_settings(self):
|
|
@@ -66,10 +66,10 @@ class BalanceResponseV2(ModelNormal):
|
|
|
66
66
|
'OFFSITEAWARENESS': "OffsiteAwareness",
|
|
67
67
|
},
|
|
68
68
|
('private_market_billing_type',): {
|
|
69
|
-
'NOTAPPLICABLE': "
|
|
70
|
-
'BILLBYRETAILER': "
|
|
71
|
-
'BILLBYCRITEO': "
|
|
72
|
-
'UNKNOWN': "
|
|
69
|
+
'NOTAPPLICABLE': "NotApplicable",
|
|
70
|
+
'BILLBYRETAILER': "BillByRetailer",
|
|
71
|
+
'BILLBYCRITEO': "BillByCriteo",
|
|
72
|
+
'UNKNOWN': "Unknown",
|
|
73
73
|
},
|
|
74
74
|
('status',): {
|
|
75
75
|
'UNKNOWN': "unknown",
|
|
@@ -104,7 +104,7 @@ class BalanceResponseV2(ModelNormal):
|
|
|
104
104
|
"""
|
|
105
105
|
return {
|
|
106
106
|
'name': (str,), # noqa: E501
|
|
107
|
-
'start_date': (
|
|
107
|
+
'start_date': (date,), # noqa: E501
|
|
108
108
|
'balance_type': (str,), # noqa: E501
|
|
109
109
|
'spend_type': (str,), # noqa: E501
|
|
110
110
|
'private_market_billing_type': (str,), # noqa: E501
|
|
@@ -113,7 +113,7 @@ class BalanceResponseV2(ModelNormal):
|
|
|
113
113
|
'deposited': (float, none_type,), # noqa: E501
|
|
114
114
|
'spent': (float, none_type,), # noqa: E501
|
|
115
115
|
'remaining': (float, none_type,), # noqa: E501
|
|
116
|
-
'end_date': (
|
|
116
|
+
'end_date': (date, none_type,), # noqa: E501
|
|
117
117
|
'status': (str,), # noqa: E501
|
|
118
118
|
'created_at': (datetime,), # noqa: E501
|
|
119
119
|
'updated_at': (datetime,), # noqa: E501
|
|
@@ -153,7 +153,7 @@ class BalanceResponseV2(ModelNormal):
|
|
|
153
153
|
|
|
154
154
|
Args:
|
|
155
155
|
name (str): Name of the balance.
|
|
156
|
-
start_date (
|
|
156
|
+
start_date (date): Start date of the balance in the format YYYY-MM-DD.
|
|
157
157
|
balance_type (str): Type of the balance.
|
|
158
158
|
spend_type (str): Spend Type of the balance.
|
|
159
159
|
private_market_billing_type (str): Billing type for Private Market of the balance.
|
|
@@ -194,7 +194,7 @@ class BalanceResponseV2(ModelNormal):
|
|
|
194
194
|
deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501
|
|
195
195
|
spent (float, none_type): Amount of spent funds of the balance.. [optional] # noqa: E501
|
|
196
196
|
remaining (float, none_type): Amount of remaining funds of the balance.. [optional] # noqa: E501
|
|
197
|
-
end_date (
|
|
197
|
+
end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
198
198
|
status (str): Status of the balance.. [optional] # noqa: E501
|
|
199
199
|
created_at (datetime): Creation time of the balance.. [optional] # noqa: E501
|
|
200
200
|
updated_at (datetime): Update time of the balance.. [optional] # noqa: E501
|
|
@@ -259,7 +259,7 @@ class BalanceResponseV2(ModelNormal):
|
|
|
259
259
|
|
|
260
260
|
Args:
|
|
261
261
|
name (str): Name of the balance.
|
|
262
|
-
start_date (
|
|
262
|
+
start_date (date): Start date of the balance in the format YYYY-MM-DD.
|
|
263
263
|
balance_type (str): Type of the balance.
|
|
264
264
|
spend_type (str): Spend Type of the balance.
|
|
265
265
|
private_market_billing_type (str): Billing type for Private Market of the balance.
|
|
@@ -300,7 +300,7 @@ class BalanceResponseV2(ModelNormal):
|
|
|
300
300
|
deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501
|
|
301
301
|
spent (float, none_type): Amount of spent funds of the balance.. [optional] # noqa: E501
|
|
302
302
|
remaining (float, none_type): Amount of remaining funds of the balance.. [optional] # noqa: E501
|
|
303
|
-
end_date (
|
|
303
|
+
end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
304
304
|
status (str): Status of the balance.. [optional] # noqa: E501
|
|
305
305
|
created_at (datetime): Creation time of the balance.. [optional] # noqa: E501
|
|
306
306
|
updated_at (datetime): Update time of the balance.. [optional] # noqa: E501
|
|
@@ -87,11 +87,11 @@ class CreateBalanceV2(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
return {
|
|
89
89
|
'name': (str,), # noqa: E501
|
|
90
|
-
'start_date': (
|
|
90
|
+
'start_date': (date,), # noqa: E501
|
|
91
91
|
'spend_type': (str,), # noqa: E501
|
|
92
92
|
'po_number': (str, none_type,), # noqa: E501
|
|
93
93
|
'deposited': (float, none_type,), # noqa: E501
|
|
94
|
-
'end_date': (
|
|
94
|
+
'end_date': (date, none_type,), # noqa: E501
|
|
95
95
|
'memo': (str, none_type,), # noqa: E501
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -122,7 +122,7 @@ class CreateBalanceV2(ModelNormal):
|
|
|
122
122
|
|
|
123
123
|
Args:
|
|
124
124
|
name (str): Name of the balance.
|
|
125
|
-
start_date (
|
|
125
|
+
start_date (date): Start date of the balance in the format YYYY-MM-DD.
|
|
126
126
|
spend_type (str): Type of the balance spend.
|
|
127
127
|
|
|
128
128
|
Keyword Args:
|
|
@@ -158,7 +158,7 @@ class CreateBalanceV2(ModelNormal):
|
|
|
158
158
|
_visited_composed_classes = (Animal,)
|
|
159
159
|
po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501
|
|
160
160
|
deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501
|
|
161
|
-
end_date (
|
|
161
|
+
end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
162
162
|
memo (str, none_type): Memo. [optional] # noqa: E501
|
|
163
163
|
"""
|
|
164
164
|
|
|
@@ -219,7 +219,7 @@ class CreateBalanceV2(ModelNormal):
|
|
|
219
219
|
|
|
220
220
|
Args:
|
|
221
221
|
name (str): Name of the balance.
|
|
222
|
-
start_date (
|
|
222
|
+
start_date (date): Start date of the balance in the format YYYY-MM-DD.
|
|
223
223
|
spend_type (str): Type of the balance spend.
|
|
224
224
|
|
|
225
225
|
Keyword Args:
|
|
@@ -255,7 +255,7 @@ class CreateBalanceV2(ModelNormal):
|
|
|
255
255
|
_visited_composed_classes = (Animal,)
|
|
256
256
|
po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501
|
|
257
257
|
deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501
|
|
258
|
-
end_date (
|
|
258
|
+
end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
259
259
|
memo (str, none_type): Memo. [optional] # noqa: E501
|
|
260
260
|
"""
|
|
261
261
|
|