criteo-api-retailmedia-sdk 0.0.250915__py3-none-any.whl → 0.0.251009__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 +70 -73
- criteo_api_retailmedia_preview/api/analytics_api.py +137 -0
- criteo_api_retailmedia_preview/api/billing_api.py +18 -18
- criteo_api_retailmedia_preview/api/campaign_api.py +493 -325
- criteo_api_retailmedia_preview/api_client.py +4 -4
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/async_fill_rate_report.py +5 -0
- criteo_api_retailmedia_preview/model/async_unfilled_placements_report.py +392 -0
- criteo_api_retailmedia_preview/model/async_unfilled_placements_report_request.py +269 -0
- criteo_api_retailmedia_preview/model/async_unfilled_placements_report_resource.py +273 -0
- criteo_api_retailmedia_preview/model/campaign_availability.py +289 -0
- criteo_api_retailmedia_preview/model/demand_managed_fee.py +1 -1
- criteo_api_retailmedia_preview/model/{value_resource_outcome_account_fees_update_result.py → entity_resource_collection_outcome_of_retailer_result_and_metadata.py} +14 -8
- criteo_api_retailmedia_preview/model/entity_resource_of_retailer_result.py +270 -0
- criteo_api_retailmedia_preview/model/files_variable_value.py +0 -3
- criteo_api_retailmedia_preview/model/managed_service_fee.py +1 -1
- criteo_api_retailmedia_preview/model/page_type_combination.py +287 -0
- criteo_api_retailmedia_preview/model/private_market_fees.py +6 -14
- criteo_api_retailmedia_preview/model/retailer_result.py +266 -0
- criteo_api_retailmedia_preview/model/{account_fees_update_result.py → retailer_search_request.py} +8 -12
- criteo_api_retailmedia_preview/model/rm_contact_list_create_v1.py +1 -0
- criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +1 -0
- criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +11 -2
- criteo_api_retailmedia_preview/model/sponsored_products_line_item_create_request_model.py +8 -0
- criteo_api_retailmedia_preview/model/sponsored_products_line_item_update_request_model.py +34 -28
- criteo_api_retailmedia_preview/model/value_resource_input_of_retailer_search_request.py +262 -0
- criteo_api_retailmedia_preview/model/{value_resource_account_fees_update_result.py → value_resource_of_retailer_search_request.py} +9 -9
- criteo_api_retailmedia_preview/models/__init__.py +11 -3
- {criteo_api_retailmedia_sdk-0.0.250915.dist-info → criteo_api_retailmedia_sdk-0.0.251009.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.250915.dist-info → criteo_api_retailmedia_sdk-0.0.251009.dist-info}/RECORD +33 -25
- {criteo_api_retailmedia_sdk-0.0.250915.dist-info → criteo_api_retailmedia_sdk-0.0.251009.dist-info}/WHEEL +0 -0
- {criteo_api_retailmedia_sdk-0.0.250915.dist-info → criteo_api_retailmedia_sdk-0.0.251009.dist-info}/top_level.txt +0 -0
|
@@ -25,7 +25,6 @@ from criteo_api_retailmedia_preview.model.entity_resource_collection_outcome_of_
|
|
|
25
25
|
from criteo_api_retailmedia_preview.model.value_resource_collection_outcome_private_market_account_fees_and_metadata import ValueResourceCollectionOutcomePrivateMarketAccountFeesAndMetadata
|
|
26
26
|
from criteo_api_retailmedia_preview.model.value_resource_input_account_fees_search_request import ValueResourceInputAccountFeesSearchRequest
|
|
27
27
|
from criteo_api_retailmedia_preview.model.value_resource_input_account_fees_update_request import ValueResourceInputAccountFeesUpdateRequest
|
|
28
|
-
from criteo_api_retailmedia_preview.model.value_resource_outcome_account_fees_update_result import ValueResourceOutcomeAccountFeesUpdateResult
|
|
29
28
|
|
|
30
29
|
|
|
31
30
|
class AccountsApi(object):
|
|
@@ -39,56 +38,65 @@ class AccountsApi(object):
|
|
|
39
38
|
if api_client is None:
|
|
40
39
|
api_client = ApiClient()
|
|
41
40
|
self.api_client = api_client
|
|
42
|
-
self.
|
|
41
|
+
self.account_fees_search_endpoint = _Endpoint(
|
|
43
42
|
settings={
|
|
44
|
-
'response_type': (
|
|
43
|
+
'response_type': (ValueResourceCollectionOutcomePrivateMarketAccountFeesAndMetadata,),
|
|
45
44
|
'auth': [
|
|
46
45
|
'oauth',
|
|
47
46
|
'oauth'
|
|
48
47
|
],
|
|
49
|
-
'endpoint_path': '/preview/retail-media/
|
|
50
|
-
'operation_id': '
|
|
51
|
-
'http_method': '
|
|
48
|
+
'endpoint_path': '/preview/retail-media/accounts/fees/search',
|
|
49
|
+
'operation_id': 'account_fees_search',
|
|
50
|
+
'http_method': 'POST',
|
|
52
51
|
'servers': None,
|
|
53
52
|
},
|
|
54
53
|
params_map={
|
|
55
54
|
'all': [
|
|
56
|
-
'account_id',
|
|
57
55
|
'limit',
|
|
58
56
|
'offset',
|
|
57
|
+
'value_resource_input_account_fees_search_request',
|
|
59
58
|
],
|
|
60
|
-
'required': [
|
|
61
|
-
'account_id',
|
|
62
|
-
],
|
|
59
|
+
'required': [],
|
|
63
60
|
'nullable': [
|
|
64
61
|
],
|
|
65
62
|
'enum': [
|
|
66
63
|
],
|
|
67
64
|
'validation': [
|
|
65
|
+
'limit',
|
|
66
|
+
'offset',
|
|
68
67
|
]
|
|
69
68
|
},
|
|
70
69
|
root_map={
|
|
71
70
|
'validations': {
|
|
71
|
+
('limit',): {
|
|
72
|
+
|
|
73
|
+
'inclusive_maximum': 500,
|
|
74
|
+
'inclusive_minimum': 1,
|
|
75
|
+
},
|
|
76
|
+
('offset',): {
|
|
77
|
+
|
|
78
|
+
'inclusive_maximum': 2147483647,
|
|
79
|
+
'inclusive_minimum': 0,
|
|
80
|
+
},
|
|
72
81
|
},
|
|
73
82
|
'allowed_values': {
|
|
74
83
|
},
|
|
75
84
|
'openapi_types': {
|
|
76
|
-
'account_id':
|
|
77
|
-
(str,),
|
|
78
85
|
'limit':
|
|
79
86
|
(int,),
|
|
80
87
|
'offset':
|
|
81
88
|
(int,),
|
|
89
|
+
'value_resource_input_account_fees_search_request':
|
|
90
|
+
(ValueResourceInputAccountFeesSearchRequest,),
|
|
82
91
|
},
|
|
83
92
|
'attribute_map': {
|
|
84
|
-
'account_id': 'accountId',
|
|
85
93
|
'limit': 'limit',
|
|
86
94
|
'offset': 'offset',
|
|
87
95
|
},
|
|
88
96
|
'location_map': {
|
|
89
|
-
'account_id': 'path',
|
|
90
97
|
'limit': 'query',
|
|
91
98
|
'offset': 'query',
|
|
99
|
+
'value_resource_input_account_fees_search_request': 'body',
|
|
92
100
|
},
|
|
93
101
|
'collection_format_map': {
|
|
94
102
|
}
|
|
@@ -97,69 +105,62 @@ class AccountsApi(object):
|
|
|
97
105
|
'accept': [
|
|
98
106
|
'application/json'
|
|
99
107
|
],
|
|
100
|
-
'content_type': [
|
|
108
|
+
'content_type': [
|
|
109
|
+
'application/json'
|
|
110
|
+
]
|
|
101
111
|
},
|
|
102
112
|
api_client=api_client
|
|
103
113
|
)
|
|
104
|
-
self.
|
|
114
|
+
self.get_private_market_child_accounts_by_account_id_endpoint = _Endpoint(
|
|
105
115
|
settings={
|
|
106
|
-
'response_type': (
|
|
116
|
+
'response_type': (EntityResourceCollectionOutcomeOfRetailMediaChildAccountAndMetadata,),
|
|
107
117
|
'auth': [
|
|
108
118
|
'oauth',
|
|
109
119
|
'oauth'
|
|
110
120
|
],
|
|
111
|
-
'endpoint_path': '/preview/retail-media/accounts/
|
|
112
|
-
'operation_id': '
|
|
113
|
-
'http_method': '
|
|
121
|
+
'endpoint_path': '/preview/retail-media/account-management/accounts/{accountId}/private-market-child-accounts',
|
|
122
|
+
'operation_id': 'get_private_market_child_accounts_by_account_id',
|
|
123
|
+
'http_method': 'GET',
|
|
114
124
|
'servers': None,
|
|
115
125
|
},
|
|
116
126
|
params_map={
|
|
117
127
|
'all': [
|
|
128
|
+
'account_id',
|
|
118
129
|
'limit',
|
|
119
130
|
'offset',
|
|
120
|
-
'value_resource_input_account_fees_search_request',
|
|
121
131
|
],
|
|
122
|
-
'required': [
|
|
132
|
+
'required': [
|
|
133
|
+
'account_id',
|
|
134
|
+
],
|
|
123
135
|
'nullable': [
|
|
124
136
|
],
|
|
125
137
|
'enum': [
|
|
126
138
|
],
|
|
127
139
|
'validation': [
|
|
128
|
-
'limit',
|
|
129
|
-
'offset',
|
|
130
140
|
]
|
|
131
141
|
},
|
|
132
142
|
root_map={
|
|
133
143
|
'validations': {
|
|
134
|
-
('limit',): {
|
|
135
|
-
|
|
136
|
-
'inclusive_maximum': 500,
|
|
137
|
-
'inclusive_minimum': 1,
|
|
138
|
-
},
|
|
139
|
-
('offset',): {
|
|
140
|
-
|
|
141
|
-
'inclusive_maximum': 2147483647,
|
|
142
|
-
'inclusive_minimum': 0,
|
|
143
|
-
},
|
|
144
144
|
},
|
|
145
145
|
'allowed_values': {
|
|
146
146
|
},
|
|
147
147
|
'openapi_types': {
|
|
148
|
+
'account_id':
|
|
149
|
+
(str,),
|
|
148
150
|
'limit':
|
|
149
151
|
(int,),
|
|
150
152
|
'offset':
|
|
151
153
|
(int,),
|
|
152
|
-
'value_resource_input_account_fees_search_request':
|
|
153
|
-
(ValueResourceInputAccountFeesSearchRequest,),
|
|
154
154
|
},
|
|
155
155
|
'attribute_map': {
|
|
156
|
+
'account_id': 'accountId',
|
|
156
157
|
'limit': 'limit',
|
|
157
158
|
'offset': 'offset',
|
|
158
159
|
},
|
|
159
160
|
'location_map': {
|
|
161
|
+
'account_id': 'path',
|
|
160
162
|
'limit': 'query',
|
|
161
163
|
'offset': 'query',
|
|
162
|
-
'value_resource_input_account_fees_search_request': 'body',
|
|
163
164
|
},
|
|
164
165
|
'collection_format_map': {
|
|
165
166
|
}
|
|
@@ -168,21 +169,19 @@ class AccountsApi(object):
|
|
|
168
169
|
'accept': [
|
|
169
170
|
'application/json'
|
|
170
171
|
],
|
|
171
|
-
'content_type': [
|
|
172
|
-
'application/json'
|
|
173
|
-
]
|
|
172
|
+
'content_type': [],
|
|
174
173
|
},
|
|
175
174
|
api_client=api_client
|
|
176
175
|
)
|
|
177
|
-
self.
|
|
176
|
+
self.update_account_fees_endpoint = _Endpoint(
|
|
178
177
|
settings={
|
|
179
|
-
'response_type':
|
|
178
|
+
'response_type': None,
|
|
180
179
|
'auth': [
|
|
181
180
|
'oauth',
|
|
182
181
|
'oauth'
|
|
183
182
|
],
|
|
184
183
|
'endpoint_path': '/preview/retail-media/accounts/fees/update',
|
|
185
|
-
'operation_id': '
|
|
184
|
+
'operation_id': 'update_account_fees',
|
|
186
185
|
'http_method': 'POST',
|
|
187
186
|
'servers': None,
|
|
188
187
|
},
|
|
@@ -216,9 +215,7 @@ class AccountsApi(object):
|
|
|
216
215
|
}
|
|
217
216
|
},
|
|
218
217
|
headers_map={
|
|
219
|
-
'accept': [
|
|
220
|
-
'application/json'
|
|
221
|
-
],
|
|
218
|
+
'accept': [],
|
|
222
219
|
'content_type': [
|
|
223
220
|
'application/json'
|
|
224
221
|
]
|
|
@@ -226,26 +223,24 @@ class AccountsApi(object):
|
|
|
226
223
|
api_client=api_client
|
|
227
224
|
)
|
|
228
225
|
|
|
229
|
-
def
|
|
226
|
+
def account_fees_search(
|
|
230
227
|
self,
|
|
231
|
-
account_id,
|
|
232
228
|
**kwargs
|
|
233
229
|
):
|
|
234
|
-
"""
|
|
230
|
+
"""account_fees_search # noqa: E501
|
|
235
231
|
|
|
236
|
-
|
|
232
|
+
Get fees for provided accounts # noqa: E501
|
|
237
233
|
This method makes a synchronous HTTP request by default. To make an
|
|
238
234
|
asynchronous HTTP request, please pass async_req=True
|
|
239
235
|
|
|
240
|
-
>>> thread = api.
|
|
236
|
+
>>> thread = api.account_fees_search(async_req=True)
|
|
241
237
|
>>> result = thread.get()
|
|
242
238
|
|
|
243
|
-
Args:
|
|
244
|
-
account_id (str): Account Id
|
|
245
239
|
|
|
246
240
|
Keyword Args:
|
|
247
|
-
limit (int):
|
|
248
|
-
offset (int):
|
|
241
|
+
limit (int): used for paging, number of results returned per request, Maximum of 500. [optional] if omitted the server will use the default value of 50
|
|
242
|
+
offset (int): used for paging, number of records to skip. [optional] if omitted the server will use the default value of 0
|
|
243
|
+
value_resource_input_account_fees_search_request (ValueResourceInputAccountFeesSearchRequest): [optional]
|
|
249
244
|
_return_http_data_only (bool): response data without head status
|
|
250
245
|
code and headers. Default is True.
|
|
251
246
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -278,7 +273,7 @@ class AccountsApi(object):
|
|
|
278
273
|
async_req (bool): execute request asynchronously
|
|
279
274
|
|
|
280
275
|
Returns:
|
|
281
|
-
|
|
276
|
+
ValueResourceCollectionOutcomePrivateMarketAccountFeesAndMetadata
|
|
282
277
|
If the method is called asynchronously, returns the request
|
|
283
278
|
thread.
|
|
284
279
|
"""
|
|
@@ -307,28 +302,28 @@ class AccountsApi(object):
|
|
|
307
302
|
'_content_type')
|
|
308
303
|
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
309
304
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
310
|
-
kwargs
|
|
311
|
-
account_id
|
|
312
|
-
return self.get_api_external_v1_account_private_market_child_accounts_by_account_id_endpoint.call_with_http_info(**kwargs)
|
|
305
|
+
return self.account_fees_search_endpoint.call_with_http_info(**kwargs)
|
|
313
306
|
|
|
314
|
-
def
|
|
307
|
+
def get_private_market_child_accounts_by_account_id(
|
|
315
308
|
self,
|
|
309
|
+
account_id,
|
|
316
310
|
**kwargs
|
|
317
311
|
):
|
|
318
|
-
"""
|
|
312
|
+
"""get_private_market_child_accounts_by_account_id # noqa: E501
|
|
319
313
|
|
|
320
|
-
|
|
314
|
+
Gets page of private market child accounts that are associated with the given account # noqa: E501
|
|
321
315
|
This method makes a synchronous HTTP request by default. To make an
|
|
322
316
|
asynchronous HTTP request, please pass async_req=True
|
|
323
317
|
|
|
324
|
-
>>> thread = api.
|
|
318
|
+
>>> thread = api.get_private_market_child_accounts_by_account_id(account_id, async_req=True)
|
|
325
319
|
>>> result = thread.get()
|
|
326
320
|
|
|
321
|
+
Args:
|
|
322
|
+
account_id (str): Account Id
|
|
327
323
|
|
|
328
324
|
Keyword Args:
|
|
329
|
-
limit (int):
|
|
330
|
-
offset (int):
|
|
331
|
-
value_resource_input_account_fees_search_request (ValueResourceInputAccountFeesSearchRequest): [optional]
|
|
325
|
+
limit (int): The number of accounts to be returned. The default is 25.. [optional] if omitted the server will use the default value of 25
|
|
326
|
+
offset (int): The (zero-based) offset into the collection of accounts. The default is 0.. [optional] if omitted the server will use the default value of 0
|
|
332
327
|
_return_http_data_only (bool): response data without head status
|
|
333
328
|
code and headers. Default is True.
|
|
334
329
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -361,7 +356,7 @@ class AccountsApi(object):
|
|
|
361
356
|
async_req (bool): execute request asynchronously
|
|
362
357
|
|
|
363
358
|
Returns:
|
|
364
|
-
|
|
359
|
+
EntityResourceCollectionOutcomeOfRetailMediaChildAccountAndMetadata
|
|
365
360
|
If the method is called asynchronously, returns the request
|
|
366
361
|
thread.
|
|
367
362
|
"""
|
|
@@ -390,19 +385,21 @@ class AccountsApi(object):
|
|
|
390
385
|
'_content_type')
|
|
391
386
|
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
392
387
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
393
|
-
|
|
388
|
+
kwargs['account_id'] = \
|
|
389
|
+
account_id
|
|
390
|
+
return self.get_private_market_child_accounts_by_account_id_endpoint.call_with_http_info(**kwargs)
|
|
394
391
|
|
|
395
|
-
def
|
|
392
|
+
def update_account_fees(
|
|
396
393
|
self,
|
|
397
394
|
**kwargs
|
|
398
395
|
):
|
|
399
|
-
"""
|
|
396
|
+
"""update_account_fees # noqa: E501
|
|
400
397
|
|
|
401
398
|
Set fees for provided accounts # noqa: E501
|
|
402
399
|
This method makes a synchronous HTTP request by default. To make an
|
|
403
400
|
asynchronous HTTP request, please pass async_req=True
|
|
404
401
|
|
|
405
|
-
>>> thread = api.
|
|
402
|
+
>>> thread = api.update_account_fees(async_req=True)
|
|
406
403
|
>>> result = thread.get()
|
|
407
404
|
|
|
408
405
|
|
|
@@ -440,7 +437,7 @@ class AccountsApi(object):
|
|
|
440
437
|
async_req (bool): execute request asynchronously
|
|
441
438
|
|
|
442
439
|
Returns:
|
|
443
|
-
|
|
440
|
+
None
|
|
444
441
|
If the method is called asynchronously, returns the request
|
|
445
442
|
thread.
|
|
446
443
|
"""
|
|
@@ -469,5 +466,5 @@ class AccountsApi(object):
|
|
|
469
466
|
'_content_type')
|
|
470
467
|
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
471
468
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
472
|
-
return self.
|
|
469
|
+
return self.update_account_fees_endpoint.call_with_http_info(**kwargs)
|
|
473
470
|
|
|
@@ -27,6 +27,7 @@ from criteo_api_retailmedia_preview.model.async_fill_rate_report_request import
|
|
|
27
27
|
from criteo_api_retailmedia_preview.model.async_line_items_report_request import AsyncLineItemsReportRequest
|
|
28
28
|
from criteo_api_retailmedia_preview.model.async_offsite_report_request import AsyncOffsiteReportRequest
|
|
29
29
|
from criteo_api_retailmedia_preview.model.async_report_response import AsyncReportResponse
|
|
30
|
+
from criteo_api_retailmedia_preview.model.async_unfilled_placements_report_request import AsyncUnfilledPlacementsReportRequest
|
|
30
31
|
from criteo_api_retailmedia_preview.model.report_response import ReportResponse
|
|
31
32
|
from criteo_api_retailmedia_preview.model.sync_attributed_transactions_report_request import SyncAttributedTransactionsReportRequest
|
|
32
33
|
from criteo_api_retailmedia_preview.model.sync_campaigns_report_request import SyncCampaignsReportRequest
|
|
@@ -309,6 +310,59 @@ class AnalyticsApi(object):
|
|
|
309
310
|
},
|
|
310
311
|
api_client=api_client
|
|
311
312
|
)
|
|
313
|
+
self.generate_async_unfilled_placements_report_endpoint = _Endpoint(
|
|
314
|
+
settings={
|
|
315
|
+
'response_type': (AsyncReportResponse,),
|
|
316
|
+
'auth': [
|
|
317
|
+
'oauth',
|
|
318
|
+
'oauth'
|
|
319
|
+
],
|
|
320
|
+
'endpoint_path': '/preview/retail-media/reports/unfilled-placements',
|
|
321
|
+
'operation_id': 'generate_async_unfilled_placements_report',
|
|
322
|
+
'http_method': 'POST',
|
|
323
|
+
'servers': None,
|
|
324
|
+
},
|
|
325
|
+
params_map={
|
|
326
|
+
'all': [
|
|
327
|
+
'async_unfilled_placements_report_request',
|
|
328
|
+
],
|
|
329
|
+
'required': [
|
|
330
|
+
'async_unfilled_placements_report_request',
|
|
331
|
+
],
|
|
332
|
+
'nullable': [
|
|
333
|
+
],
|
|
334
|
+
'enum': [
|
|
335
|
+
],
|
|
336
|
+
'validation': [
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
root_map={
|
|
340
|
+
'validations': {
|
|
341
|
+
},
|
|
342
|
+
'allowed_values': {
|
|
343
|
+
},
|
|
344
|
+
'openapi_types': {
|
|
345
|
+
'async_unfilled_placements_report_request':
|
|
346
|
+
(AsyncUnfilledPlacementsReportRequest,),
|
|
347
|
+
},
|
|
348
|
+
'attribute_map': {
|
|
349
|
+
},
|
|
350
|
+
'location_map': {
|
|
351
|
+
'async_unfilled_placements_report_request': 'body',
|
|
352
|
+
},
|
|
353
|
+
'collection_format_map': {
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
headers_map={
|
|
357
|
+
'accept': [
|
|
358
|
+
'application/json'
|
|
359
|
+
],
|
|
360
|
+
'content_type': [
|
|
361
|
+
'application/json'
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
api_client=api_client
|
|
365
|
+
)
|
|
312
366
|
self.generate_sync_attributed_transactions_report_endpoint = _Endpoint(
|
|
313
367
|
settings={
|
|
314
368
|
'response_type': (ReportResponse,),
|
|
@@ -988,6 +1042,89 @@ class AnalyticsApi(object):
|
|
|
988
1042
|
async_offsite_report_request
|
|
989
1043
|
return self.generate_async_offsite_report_endpoint.call_with_http_info(**kwargs)
|
|
990
1044
|
|
|
1045
|
+
def generate_async_unfilled_placements_report(
|
|
1046
|
+
self,
|
|
1047
|
+
async_unfilled_placements_report_request,
|
|
1048
|
+
**kwargs
|
|
1049
|
+
):
|
|
1050
|
+
"""generate_async_unfilled_placements_report # noqa: E501
|
|
1051
|
+
|
|
1052
|
+
Returns an asynchronous Unfilled Placements Report This endpoint is subject to specific rate limits. # noqa: E501
|
|
1053
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1054
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1055
|
+
|
|
1056
|
+
>>> thread = api.generate_async_unfilled_placements_report(async_unfilled_placements_report_request, async_req=True)
|
|
1057
|
+
>>> result = thread.get()
|
|
1058
|
+
|
|
1059
|
+
Args:
|
|
1060
|
+
async_unfilled_placements_report_request (AsyncUnfilledPlacementsReportRequest):
|
|
1061
|
+
|
|
1062
|
+
Keyword Args:
|
|
1063
|
+
_return_http_data_only (bool): response data without head status
|
|
1064
|
+
code and headers. Default is True.
|
|
1065
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
1066
|
+
will be returned without reading/decoding response data.
|
|
1067
|
+
Default is True.
|
|
1068
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
1069
|
+
one number provided, it will be total request timeout. It can also
|
|
1070
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
1071
|
+
Default is None.
|
|
1072
|
+
_check_input_type (bool): specifies if type checking
|
|
1073
|
+
should be done one the data sent to the server.
|
|
1074
|
+
Default is True.
|
|
1075
|
+
_check_return_type (bool): specifies if type checking
|
|
1076
|
+
should be done one the data received from the server.
|
|
1077
|
+
Default is True.
|
|
1078
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
1079
|
+
are serialized names, as specified in the OpenAPI document.
|
|
1080
|
+
False if the variable names in the input data
|
|
1081
|
+
are pythonic names, e.g. snake case (default)
|
|
1082
|
+
_content_type (str/None): force body content-type.
|
|
1083
|
+
Default is None and content-type will be predicted by allowed
|
|
1084
|
+
content-types and body.
|
|
1085
|
+
_host_index (int/None): specifies the index of the server
|
|
1086
|
+
that we want to use.
|
|
1087
|
+
Default is read from the configuration.
|
|
1088
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
1089
|
+
request; this effectively ignores the authentication
|
|
1090
|
+
in the spec for a single request.
|
|
1091
|
+
Default is None
|
|
1092
|
+
async_req (bool): execute request asynchronously
|
|
1093
|
+
|
|
1094
|
+
Returns:
|
|
1095
|
+
AsyncReportResponse
|
|
1096
|
+
If the method is called asynchronously, returns the request
|
|
1097
|
+
thread.
|
|
1098
|
+
"""
|
|
1099
|
+
kwargs['async_req'] = kwargs.get(
|
|
1100
|
+
'async_req', False
|
|
1101
|
+
)
|
|
1102
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
1103
|
+
'_return_http_data_only', True
|
|
1104
|
+
)
|
|
1105
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
1106
|
+
'_preload_content', True
|
|
1107
|
+
)
|
|
1108
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
1109
|
+
'_request_timeout', None
|
|
1110
|
+
)
|
|
1111
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
1112
|
+
'_check_input_type', True
|
|
1113
|
+
)
|
|
1114
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
1115
|
+
'_check_return_type', True
|
|
1116
|
+
)
|
|
1117
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
1118
|
+
'_spec_property_naming', False
|
|
1119
|
+
)
|
|
1120
|
+
kwargs['_content_type'] = kwargs.get(
|
|
1121
|
+
'_content_type')
|
|
1122
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
1123
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1124
|
+
kwargs['async_unfilled_placements_report_request'] = \
|
|
1125
|
+
async_unfilled_placements_report_request
|
|
1126
|
+
return self.generate_async_unfilled_placements_report_endpoint.call_with_http_info(**kwargs)
|
|
1127
|
+
|
|
991
1128
|
def generate_sync_attributed_transactions_report(
|
|
992
1129
|
self,
|
|
993
1130
|
sync_attributed_transactions_report_request,
|
|
@@ -36,7 +36,7 @@ class BillingApi(object):
|
|
|
36
36
|
if api_client is None:
|
|
37
37
|
api_client = ApiClient()
|
|
38
38
|
self.api_client = api_client
|
|
39
|
-
self.
|
|
39
|
+
self.create_partner_billing_report_request_v1_endpoint = _Endpoint(
|
|
40
40
|
settings={
|
|
41
41
|
'response_type': (EntityResourceOutcomePartnerBillingReportStatusV1,),
|
|
42
42
|
'auth': [
|
|
@@ -44,7 +44,7 @@ class BillingApi(object):
|
|
|
44
44
|
'oauth'
|
|
45
45
|
],
|
|
46
46
|
'endpoint_path': '/preview/retail-media/billing/partner-report',
|
|
47
|
-
'operation_id': '
|
|
47
|
+
'operation_id': 'create_partner_billing_report_request_v1',
|
|
48
48
|
'http_method': 'POST',
|
|
49
49
|
'servers': None,
|
|
50
50
|
},
|
|
@@ -87,7 +87,7 @@ class BillingApi(object):
|
|
|
87
87
|
},
|
|
88
88
|
api_client=api_client
|
|
89
89
|
)
|
|
90
|
-
self.
|
|
90
|
+
self.get_partner_billing_report_output_v1_endpoint = _Endpoint(
|
|
91
91
|
settings={
|
|
92
92
|
'response_type': (file_type,),
|
|
93
93
|
'auth': [
|
|
@@ -95,7 +95,7 @@ class BillingApi(object):
|
|
|
95
95
|
'oauth'
|
|
96
96
|
],
|
|
97
97
|
'endpoint_path': '/preview/retail-media/billing/partner-report/{requestId}/output',
|
|
98
|
-
'operation_id': '
|
|
98
|
+
'operation_id': 'get_partner_billing_report_output_v1',
|
|
99
99
|
'http_method': 'GET',
|
|
100
100
|
'servers': None,
|
|
101
101
|
},
|
|
@@ -140,7 +140,7 @@ class BillingApi(object):
|
|
|
140
140
|
},
|
|
141
141
|
api_client=api_client
|
|
142
142
|
)
|
|
143
|
-
self.
|
|
143
|
+
self.get_partner_billing_report_status_v1_endpoint = _Endpoint(
|
|
144
144
|
settings={
|
|
145
145
|
'response_type': (EntityResourceOutcomePartnerBillingReportStatusV1,),
|
|
146
146
|
'auth': [
|
|
@@ -148,7 +148,7 @@ class BillingApi(object):
|
|
|
148
148
|
'oauth'
|
|
149
149
|
],
|
|
150
150
|
'endpoint_path': '/preview/retail-media/billing/partner-report/{requestId}/status',
|
|
151
|
-
'operation_id': '
|
|
151
|
+
'operation_id': 'get_partner_billing_report_status_v1',
|
|
152
152
|
'http_method': 'GET',
|
|
153
153
|
'servers': None,
|
|
154
154
|
},
|
|
@@ -193,17 +193,17 @@ class BillingApi(object):
|
|
|
193
193
|
api_client=api_client
|
|
194
194
|
)
|
|
195
195
|
|
|
196
|
-
def
|
|
196
|
+
def create_partner_billing_report_request_v1(
|
|
197
197
|
self,
|
|
198
198
|
**kwargs
|
|
199
199
|
):
|
|
200
|
-
"""
|
|
200
|
+
"""create_partner_billing_report_request_v1 # noqa: E501
|
|
201
201
|
|
|
202
202
|
Create a Partner Billing Report request. # noqa: E501
|
|
203
203
|
This method makes a synchronous HTTP request by default. To make an
|
|
204
204
|
asynchronous HTTP request, please pass async_req=True
|
|
205
205
|
|
|
206
|
-
>>> thread = api.
|
|
206
|
+
>>> thread = api.create_partner_billing_report_request_v1(async_req=True)
|
|
207
207
|
>>> result = thread.get()
|
|
208
208
|
|
|
209
209
|
|
|
@@ -270,20 +270,20 @@ class BillingApi(object):
|
|
|
270
270
|
'_content_type')
|
|
271
271
|
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
272
272
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
273
|
-
return self.
|
|
273
|
+
return self.create_partner_billing_report_request_v1_endpoint.call_with_http_info(**kwargs)
|
|
274
274
|
|
|
275
|
-
def
|
|
275
|
+
def get_partner_billing_report_output_v1(
|
|
276
276
|
self,
|
|
277
277
|
request_id,
|
|
278
278
|
**kwargs
|
|
279
279
|
):
|
|
280
|
-
"""
|
|
280
|
+
"""get_partner_billing_report_output_v1 # noqa: E501
|
|
281
281
|
|
|
282
282
|
Get the output of an existing Partner Billing Report. # noqa: E501
|
|
283
283
|
This method makes a synchronous HTTP request by default. To make an
|
|
284
284
|
asynchronous HTTP request, please pass async_req=True
|
|
285
285
|
|
|
286
|
-
>>> thread = api.
|
|
286
|
+
>>> thread = api.get_partner_billing_report_output_v1(request_id, async_req=True)
|
|
287
287
|
>>> result = thread.get()
|
|
288
288
|
|
|
289
289
|
Args:
|
|
@@ -353,20 +353,20 @@ class BillingApi(object):
|
|
|
353
353
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
354
354
|
kwargs['request_id'] = \
|
|
355
355
|
request_id
|
|
356
|
-
return self.
|
|
356
|
+
return self.get_partner_billing_report_output_v1_endpoint.call_with_http_info(**kwargs)
|
|
357
357
|
|
|
358
|
-
def
|
|
358
|
+
def get_partner_billing_report_status_v1(
|
|
359
359
|
self,
|
|
360
360
|
request_id,
|
|
361
361
|
**kwargs
|
|
362
362
|
):
|
|
363
|
-
"""
|
|
363
|
+
"""get_partner_billing_report_status_v1 # noqa: E501
|
|
364
364
|
|
|
365
365
|
Get the status of an existing Partner Billing Report. # noqa: E501
|
|
366
366
|
This method makes a synchronous HTTP request by default. To make an
|
|
367
367
|
asynchronous HTTP request, please pass async_req=True
|
|
368
368
|
|
|
369
|
-
>>> thread = api.
|
|
369
|
+
>>> thread = api.get_partner_billing_report_status_v1(request_id, async_req=True)
|
|
370
370
|
>>> result = thread.get()
|
|
371
371
|
|
|
372
372
|
Args:
|
|
@@ -436,5 +436,5 @@ class BillingApi(object):
|
|
|
436
436
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
437
437
|
kwargs['request_id'] = \
|
|
438
438
|
request_id
|
|
439
|
-
return self.
|
|
439
|
+
return self.get_partner_billing_report_status_v1_endpoint.call_with_http_info(**kwargs)
|
|
440
440
|
|