criteo-api-retailmedia-sdk 2024.7.0.250911__py3-none-any.whl → 2024.7.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.

Files changed (102) hide show
  1. {criteo_api_retailmedia_sdk-2024.7.0.250911.dist-info → criteo_api_retailmedia_sdk-2024.7.0.251009.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2024.7.0.250911.dist-info → criteo_api_retailmedia_sdk-2024.7.0.251009.dist-info}/RECORD +60 -102
  3. criteo_api_retailmedia_v2024_07/__init__.py +1 -1
  4. criteo_api_retailmedia_v2024_07/api/accounts_api.py +7 -9
  5. criteo_api_retailmedia_v2024_07/api/analytics_api.py +8 -28
  6. criteo_api_retailmedia_v2024_07/api/balance_api.py +257 -261
  7. criteo_api_retailmedia_v2024_07/api/campaign_api.py +1307 -2452
  8. criteo_api_retailmedia_v2024_07/api_client.py +1 -1
  9. criteo_api_retailmedia_v2024_07/apis/__init__.py +0 -1
  10. criteo_api_retailmedia_v2024_07/configuration.py +1 -1
  11. criteo_api_retailmedia_v2024_07/model/add_funds_to_balance_v2.py +6 -6
  12. criteo_api_retailmedia_v2024_07/model/{external_add_to_basket_ids_update_model202110.py → add_to_basket_ids_update_model202110.py} +3 -3
  13. criteo_api_retailmedia_v2024_07/model/{external_add_to_basket_target202110.py → add_to_basket_target202110.py} +3 -3
  14. criteo_api_retailmedia_v2024_07/model/add_to_basket_target202110_response.py +8 -8
  15. criteo_api_retailmedia_v2024_07/model/async_campaigns_report.py +14 -0
  16. criteo_api_retailmedia_v2024_07/model/async_line_items_report.py +14 -0
  17. criteo_api_retailmedia_v2024_07/model/async_revenue_report.py +11 -0
  18. criteo_api_retailmedia_v2024_07/model/{external_auction_line_item.py → auction_line_item.py} +19 -25
  19. criteo_api_retailmedia_v2024_07/model/{external_auction_line_item_create_model.py → auction_line_item_create_model.py} +3 -3
  20. criteo_api_retailmedia_v2024_07/model/auction_line_item_paged_list_response.py +8 -8
  21. criteo_api_retailmedia_v2024_07/model/auction_line_item_response.py +8 -8
  22. criteo_api_retailmedia_v2024_07/model/{external_auction_line_item_update_model.py → auction_line_item_update_model.py} +6 -6
  23. criteo_api_retailmedia_v2024_07/model/{external_audience_ids_update_model202110.py → audience_ids_update_model202110.py} +3 -3
  24. criteo_api_retailmedia_v2024_07/model/{external_audience_target202110.py → audience_target202110.py} +3 -3
  25. criteo_api_retailmedia_v2024_07/model/audience_target202110_response.py +8 -8
  26. criteo_api_retailmedia_v2024_07/model/balance_campaign202110_paged_list_response.py +8 -8
  27. criteo_api_retailmedia_v2024_07/model/balance_response_v2.py +6 -6
  28. criteo_api_retailmedia_v2024_07/model/{paged_resource_collection_outcome_of_balance_response_v2.py → balance_response_v2_paged_list_response.py} +3 -3
  29. criteo_api_retailmedia_v2024_07/model/campaign_attributes_v202301.py +11 -15
  30. criteo_api_retailmedia_v2024_07/model/campaign_v202301.py +23 -33
  31. criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_v2.py +9 -9
  32. criteo_api_retailmedia_v2024_07/model/{external_common_line_item.py → common_line_item.py} +19 -25
  33. criteo_api_retailmedia_v2024_07/model/common_line_item_paged_list_response.py +8 -8
  34. criteo_api_retailmedia_v2024_07/model/common_line_item_response.py +8 -8
  35. criteo_api_retailmedia_v2024_07/model/create_balance_v2.py +6 -6
  36. criteo_api_retailmedia_v2024_07/model/editable_campaign_attributes_v202301.py +11 -15
  37. criteo_api_retailmedia_v2024_07/model/files_variable_value.py +0 -3
  38. criteo_api_retailmedia_v2024_07/model/input_resource_of_auction_line_item_create_model.py +5 -5
  39. criteo_api_retailmedia_v2024_07/model/{external_keyword_target202110.py → keyword_target202110.py} +3 -3
  40. criteo_api_retailmedia_v2024_07/model/keyword_target202110_response.py +8 -8
  41. criteo_api_retailmedia_v2024_07/model/resource_of_auction_line_item.py +5 -5
  42. criteo_api_retailmedia_v2024_07/model/resource_of_auction_line_item_update_model.py +5 -5
  43. criteo_api_retailmedia_v2024_07/model/resource_of_common_line_item.py +5 -5
  44. criteo_api_retailmedia_v2024_07/model/{external_store_ids_update_model202110.py → store_ids_update_model202110.py} +3 -3
  45. criteo_api_retailmedia_v2024_07/model/{external_store_target202110.py → store_target202110.py} +3 -3
  46. criteo_api_retailmedia_v2024_07/model/store_target202110_response.py +8 -8
  47. criteo_api_retailmedia_v2024_07/model/value_resource_of_campaign_budget_overrides.py +2 -2
  48. criteo_api_retailmedia_v2024_07/model/value_resource_of_line_item_budget_overrides.py +2 -2
  49. criteo_api_retailmedia_v2024_07/model/value_resource_outcome_of_campaign_budget_overrides.py +8 -8
  50. criteo_api_retailmedia_v2024_07/model/value_resource_outcome_of_line_item_budget_overrides.py +8 -8
  51. criteo_api_retailmedia_v2024_07/model/value_type_resource_of_add_to_basket_ids_update_model202110.py +5 -5
  52. criteo_api_retailmedia_v2024_07/model/value_type_resource_of_add_to_basket_target202110.py +5 -5
  53. criteo_api_retailmedia_v2024_07/model/value_type_resource_of_audience_ids_update_model202110.py +5 -5
  54. criteo_api_retailmedia_v2024_07/model/value_type_resource_of_audience_target202110.py +5 -5
  55. criteo_api_retailmedia_v2024_07/model/value_type_resource_of_keyword_target202110.py +5 -5
  56. criteo_api_retailmedia_v2024_07/model/value_type_resource_of_store_ids_update_model202110.py +5 -5
  57. criteo_api_retailmedia_v2024_07/model/value_type_resource_of_store_target202110.py +5 -5
  58. criteo_api_retailmedia_v2024_07/models/__init__.py +12 -53
  59. criteo_api_retailmedia_v2024_07/api/audience_api.py +0 -657
  60. criteo_api_retailmedia_v2024_07/model/creative202210_list_response.py +0 -274
  61. criteo_api_retailmedia_v2024_07/model/external_line_item_capping202110.py +0 -280
  62. criteo_api_retailmedia_v2024_07/model/external_line_item_page202110.py +0 -293
  63. criteo_api_retailmedia_v2024_07/model/external_line_item_page_category202110.py +0 -273
  64. criteo_api_retailmedia_v2024_07/model/external_preferred_line_item202110.py +0 -377
  65. criteo_api_retailmedia_v2024_07/model/external_preferred_line_item_create_model202110.py +0 -345
  66. criteo_api_retailmedia_v2024_07/model/external_preferred_line_item_update_model202110.py +0 -335
  67. criteo_api_retailmedia_v2024_07/model/input_resource_of_preferred_line_item_create_model202110.py +0 -273
  68. criteo_api_retailmedia_v2024_07/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_and_line_item_bid_multipliers.py +0 -285
  69. criteo_api_retailmedia_v2024_07/model/json_api_single_response_of_line_item_bid_multipliers.py +0 -287
  70. criteo_api_retailmedia_v2024_07/model/line_item_bid_multipliers.py +0 -291
  71. criteo_api_retailmedia_v2024_07/model/line_item_bid_multipliers_request.py +0 -269
  72. criteo_api_retailmedia_v2024_07/model/line_item_bid_multipliers_response.py +0 -281
  73. criteo_api_retailmedia_v2024_07/model/preferred_line_item202110_paged_list_response.py +0 -287
  74. criteo_api_retailmedia_v2024_07/model/preferred_line_item202110_response.py +0 -281
  75. criteo_api_retailmedia_v2024_07/model/preferred_line_item_create_model202110_request.py +0 -269
  76. criteo_api_retailmedia_v2024_07/model/preferred_line_item_update_model202110_request.py +0 -269
  77. criteo_api_retailmedia_v2024_07/model/report_outcome.py +0 -275
  78. criteo_api_retailmedia_v2024_07/model/resource_of_line_item_bid_multipliers.py +0 -277
  79. criteo_api_retailmedia_v2024_07/model/resource_of_preferred_line_item202110.py +0 -277
  80. criteo_api_retailmedia_v2024_07/model/resource_of_preferred_line_item_update_model202110.py +0 -277
  81. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_create_entity_v1.py +0 -315
  82. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_create_entity_v1_resource.py +0 -277
  83. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_create_entity_v1_response.py +0 -281
  84. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_create_entity_v2.py +0 -287
  85. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_create_entity_v2_resource.py +0 -277
  86. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_create_entity_v2_response.py +0 -281
  87. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_create_input_entity_v1.py +0 -269
  88. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_create_input_entity_v2.py +0 -269
  89. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_get_entity_v1.py +0 -291
  90. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_get_entity_v1_list_response.py +0 -281
  91. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_get_entity_v1_resource.py +0 -286
  92. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_get_entity_v2.py +0 -291
  93. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_get_entity_v2_list_response.py +0 -281
  94. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_get_entity_v2_resource.py +0 -277
  95. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_user_behavior_create_v2.py +0 -279
  96. criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_user_behavior_details_v2.py +0 -279
  97. criteo_api_retailmedia_v2024_07/model/rm_legacy_segment_customer_list.py +0 -275
  98. criteo_api_retailmedia_v2024_07/model/rm_legacy_segment_user_behavior_create_v2.py +0 -303
  99. criteo_api_retailmedia_v2024_07/model/rm_legacy_segment_user_behavior_v1.py +0 -306
  100. criteo_api_retailmedia_v2024_07/model/rm_legacy_segment_user_behavior_v2.py +0 -311
  101. {criteo_api_retailmedia_sdk-2024.7.0.250911.dist-info → criteo_api_retailmedia_sdk-2024.7.0.251009.dist-info}/WHEEL +0 -0
  102. {criteo_api_retailmedia_sdk-2024.7.0.250911.dist-info → criteo_api_retailmedia_sdk-2024.7.0.251009.dist-info}/top_level.txt +0 -0
@@ -1,657 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2024-07
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_v2024_07.api_client import ApiClient, Endpoint as _Endpoint
15
- from criteo_api_retailmedia_v2024_07.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_v2024_07.model.rm_legacy_audience_create_entity_v1_response import RmLegacyAudienceCreateEntityV1Response
25
- from criteo_api_retailmedia_v2024_07.model.rm_legacy_audience_create_entity_v2_response import RmLegacyAudienceCreateEntityV2Response
26
- from criteo_api_retailmedia_v2024_07.model.rm_legacy_audience_create_input_entity_v1 import RmLegacyAudienceCreateInputEntityV1
27
- from criteo_api_retailmedia_v2024_07.model.rm_legacy_audience_create_input_entity_v2 import RmLegacyAudienceCreateInputEntityV2
28
- from criteo_api_retailmedia_v2024_07.model.rm_legacy_audience_get_entity_v1_list_response import RmLegacyAudienceGetEntityV1ListResponse
29
- from criteo_api_retailmedia_v2024_07.model.rm_legacy_audience_get_entity_v2_list_response import RmLegacyAudienceGetEntityV2ListResponse
30
-
31
-
32
- class AudienceApi(object):
33
- """NOTE: This class is auto generated by OpenAPI Generator
34
- Ref: https://openapi-generator.tech
35
-
36
- Do not edit the class manually.
37
- """
38
-
39
- def __init__(self, api_client=None):
40
- if api_client is None:
41
- api_client = ApiClient()
42
- self.api_client = api_client
43
- self.legacy_create_audience_v1_endpoint = _Endpoint(
44
- settings={
45
- 'response_type': (RmLegacyAudienceCreateEntityV1Response,),
46
- 'auth': [
47
- 'oauth',
48
- 'oauth'
49
- ],
50
- 'endpoint_path': '/2024-07/retail-media/accounts/{accountId}/audiences',
51
- 'operation_id': 'legacy_create_audience_v1',
52
- 'http_method': 'POST',
53
- 'servers': None,
54
- },
55
- params_map={
56
- 'all': [
57
- 'account_id',
58
- 'rm_legacy_audience_create_input_entity_v1',
59
- ],
60
- 'required': [
61
- 'account_id',
62
- 'rm_legacy_audience_create_input_entity_v1',
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
- (int,),
79
- 'rm_legacy_audience_create_input_entity_v1':
80
- (RmLegacyAudienceCreateInputEntityV1,),
81
- },
82
- 'attribute_map': {
83
- 'account_id': 'accountId',
84
- },
85
- 'location_map': {
86
- 'account_id': 'path',
87
- 'rm_legacy_audience_create_input_entity_v1': 'body',
88
- },
89
- 'collection_format_map': {
90
- }
91
- },
92
- headers_map={
93
- 'accept': [
94
- 'text/plain',
95
- 'application/json',
96
- 'text/json'
97
- ],
98
- 'content_type': [
99
- 'application/json-patch+json',
100
- 'application/json',
101
- 'text/json',
102
- 'application/*+json'
103
- ]
104
- },
105
- api_client=api_client
106
- )
107
- self.legacy_get_audience_v1_endpoint = _Endpoint(
108
- settings={
109
- 'response_type': (RmLegacyAudienceGetEntityV1ListResponse,),
110
- 'auth': [
111
- 'oauth',
112
- 'oauth'
113
- ],
114
- 'endpoint_path': '/2024-07/retail-media/accounts/{accountId}/audiences',
115
- 'operation_id': 'legacy_get_audience_v1',
116
- 'http_method': 'GET',
117
- 'servers': None,
118
- },
119
- params_map={
120
- 'all': [
121
- 'account_id',
122
- 'limit_to_id',
123
- 'page_index',
124
- 'page_size',
125
- ],
126
- 'required': [
127
- 'account_id',
128
- ],
129
- 'nullable': [
130
- ],
131
- 'enum': [
132
- ],
133
- 'validation': [
134
- ]
135
- },
136
- root_map={
137
- 'validations': {
138
- },
139
- 'allowed_values': {
140
- },
141
- 'openapi_types': {
142
- 'account_id':
143
- (int,),
144
- 'limit_to_id':
145
- ([int],),
146
- 'page_index':
147
- (int,),
148
- 'page_size':
149
- (int,),
150
- },
151
- 'attribute_map': {
152
- 'account_id': 'accountId',
153
- 'limit_to_id': 'limitToId',
154
- 'page_index': 'pageIndex',
155
- 'page_size': 'pageSize',
156
- },
157
- 'location_map': {
158
- 'account_id': 'path',
159
- 'limit_to_id': 'query',
160
- 'page_index': 'query',
161
- 'page_size': 'query',
162
- },
163
- 'collection_format_map': {
164
- 'limit_to_id': 'multi',
165
- }
166
- },
167
- headers_map={
168
- 'accept': [
169
- 'text/plain',
170
- 'application/json',
171
- 'text/json'
172
- ],
173
- 'content_type': [],
174
- },
175
- api_client=api_client
176
- )
177
- self.legacy_get_audience_v2_endpoint = _Endpoint(
178
- settings={
179
- 'response_type': (RmLegacyAudienceGetEntityV2ListResponse,),
180
- 'auth': [
181
- 'oauth',
182
- 'oauth'
183
- ],
184
- 'endpoint_path': '/2024-07/retail-media/v2/accounts/{accountId}/audiences',
185
- 'operation_id': 'legacy_get_audience_v2',
186
- 'http_method': 'GET',
187
- 'servers': None,
188
- },
189
- params_map={
190
- 'all': [
191
- 'account_id',
192
- 'limit_to_id',
193
- 'page_index',
194
- 'page_size',
195
- ],
196
- 'required': [
197
- 'account_id',
198
- ],
199
- 'nullable': [
200
- ],
201
- 'enum': [
202
- ],
203
- 'validation': [
204
- ]
205
- },
206
- root_map={
207
- 'validations': {
208
- },
209
- 'allowed_values': {
210
- },
211
- 'openapi_types': {
212
- 'account_id':
213
- (int,),
214
- 'limit_to_id':
215
- ([int],),
216
- 'page_index':
217
- (int,),
218
- 'page_size':
219
- (int,),
220
- },
221
- 'attribute_map': {
222
- 'account_id': 'accountId',
223
- 'limit_to_id': 'limitToId',
224
- 'page_index': 'pageIndex',
225
- 'page_size': 'pageSize',
226
- },
227
- 'location_map': {
228
- 'account_id': 'path',
229
- 'limit_to_id': 'query',
230
- 'page_index': 'query',
231
- 'page_size': 'query',
232
- },
233
- 'collection_format_map': {
234
- 'limit_to_id': 'multi',
235
- }
236
- },
237
- headers_map={
238
- 'accept': [
239
- 'text/plain',
240
- 'application/json',
241
- 'text/json'
242
- ],
243
- 'content_type': [],
244
- },
245
- api_client=api_client
246
- )
247
- self.legacy_update_audience_v2_endpoint = _Endpoint(
248
- settings={
249
- 'response_type': (RmLegacyAudienceCreateEntityV2Response,),
250
- 'auth': [
251
- 'oauth',
252
- 'oauth'
253
- ],
254
- 'endpoint_path': '/2024-07/retail-media/v2/accounts/{accountId}/audiences',
255
- 'operation_id': 'legacy_update_audience_v2',
256
- 'http_method': 'POST',
257
- 'servers': None,
258
- },
259
- params_map={
260
- 'all': [
261
- 'account_id',
262
- 'rm_legacy_audience_create_input_entity_v2',
263
- ],
264
- 'required': [
265
- 'account_id',
266
- 'rm_legacy_audience_create_input_entity_v2',
267
- ],
268
- 'nullable': [
269
- ],
270
- 'enum': [
271
- ],
272
- 'validation': [
273
- ]
274
- },
275
- root_map={
276
- 'validations': {
277
- },
278
- 'allowed_values': {
279
- },
280
- 'openapi_types': {
281
- 'account_id':
282
- (int,),
283
- 'rm_legacy_audience_create_input_entity_v2':
284
- (RmLegacyAudienceCreateInputEntityV2,),
285
- },
286
- 'attribute_map': {
287
- 'account_id': 'accountId',
288
- },
289
- 'location_map': {
290
- 'account_id': 'path',
291
- 'rm_legacy_audience_create_input_entity_v2': 'body',
292
- },
293
- 'collection_format_map': {
294
- }
295
- },
296
- headers_map={
297
- 'accept': [
298
- 'text/plain',
299
- 'application/json',
300
- 'text/json'
301
- ],
302
- 'content_type': [
303
- 'application/json-patch+json',
304
- 'application/json',
305
- 'text/json',
306
- 'application/*+json'
307
- ]
308
- },
309
- api_client=api_client
310
- )
311
-
312
- def legacy_create_audience_v1(
313
- self,
314
- account_id,
315
- rm_legacy_audience_create_input_entity_v1,
316
- **kwargs
317
- ):
318
- """legacy_create_audience_v1 # noqa: E501
319
-
320
- Create an Audience (deprecated Public API) # noqa: E501
321
- This method makes a synchronous HTTP request by default. To make an
322
- asynchronous HTTP request, please pass async_req=True
323
-
324
- >>> thread = api.legacy_create_audience_v1(account_id, rm_legacy_audience_create_input_entity_v1, async_req=True)
325
- >>> result = thread.get()
326
-
327
- Args:
328
- account_id (int): ID of the account to which this audience belongs.
329
- rm_legacy_audience_create_input_entity_v1 (RmLegacyAudienceCreateInputEntityV1): Audience creation request.
330
-
331
- Keyword Args:
332
- _return_http_data_only (bool): response data without head status
333
- code and headers. Default is True.
334
- _preload_content (bool): if False, the urllib3.HTTPResponse object
335
- will be returned without reading/decoding response data.
336
- Default is True.
337
- _request_timeout (int/float/tuple): timeout setting for this request. If
338
- one number provided, it will be total request timeout. It can also
339
- be a pair (tuple) of (connection, read) timeouts.
340
- Default is None.
341
- _check_input_type (bool): specifies if type checking
342
- should be done one the data sent to the server.
343
- Default is True.
344
- _check_return_type (bool): specifies if type checking
345
- should be done one the data received from the server.
346
- Default is True.
347
- _spec_property_naming (bool): True if the variable names in the input data
348
- are serialized names, as specified in the OpenAPI document.
349
- False if the variable names in the input data
350
- are pythonic names, e.g. snake case (default)
351
- _content_type (str/None): force body content-type.
352
- Default is None and content-type will be predicted by allowed
353
- content-types and body.
354
- _host_index (int/None): specifies the index of the server
355
- that we want to use.
356
- Default is read from the configuration.
357
- _request_auths (list): set to override the auth_settings for an a single
358
- request; this effectively ignores the authentication
359
- in the spec for a single request.
360
- Default is None
361
- async_req (bool): execute request asynchronously
362
-
363
- Returns:
364
- RmLegacyAudienceCreateEntityV1Response
365
- If the method is called asynchronously, returns the request
366
- thread.
367
- """
368
- kwargs['async_req'] = kwargs.get(
369
- 'async_req', False
370
- )
371
- kwargs['_return_http_data_only'] = kwargs.get(
372
- '_return_http_data_only', True
373
- )
374
- kwargs['_preload_content'] = kwargs.get(
375
- '_preload_content', True
376
- )
377
- kwargs['_request_timeout'] = kwargs.get(
378
- '_request_timeout', None
379
- )
380
- kwargs['_check_input_type'] = kwargs.get(
381
- '_check_input_type', True
382
- )
383
- kwargs['_check_return_type'] = kwargs.get(
384
- '_check_return_type', True
385
- )
386
- kwargs['_spec_property_naming'] = kwargs.get(
387
- '_spec_property_naming', False
388
- )
389
- kwargs['_content_type'] = kwargs.get(
390
- '_content_type')
391
- kwargs['_host_index'] = kwargs.get('_host_index')
392
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
393
- kwargs['account_id'] = \
394
- account_id
395
- kwargs['rm_legacy_audience_create_input_entity_v1'] = \
396
- rm_legacy_audience_create_input_entity_v1
397
- return self.legacy_create_audience_v1_endpoint.call_with_http_info(**kwargs)
398
-
399
- def legacy_get_audience_v1(
400
- self,
401
- account_id,
402
- **kwargs
403
- ):
404
- """legacy_get_audience_v1 # noqa: E501
405
-
406
- Get a page of Audiences. (deprecated Public API) # noqa: E501
407
- This method makes a synchronous HTTP request by default. To make an
408
- asynchronous HTTP request, please pass async_req=True
409
-
410
- >>> thread = api.legacy_get_audience_v1(account_id, async_req=True)
411
- >>> result = thread.get()
412
-
413
- Args:
414
- account_id (int): ID of the account to which this audience belongs.
415
-
416
- Keyword Args:
417
- limit_to_id ([int]): Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2. [optional]
418
- page_index (int): Returns the specified page of results given a pageSize; pages are 0-indexed.. [optional]
419
- page_size (int): Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page.. [optional]
420
- _return_http_data_only (bool): response data without head status
421
- code and headers. Default is True.
422
- _preload_content (bool): if False, the urllib3.HTTPResponse object
423
- will be returned without reading/decoding response data.
424
- Default is True.
425
- _request_timeout (int/float/tuple): timeout setting for this request. If
426
- one number provided, it will be total request timeout. It can also
427
- be a pair (tuple) of (connection, read) timeouts.
428
- Default is None.
429
- _check_input_type (bool): specifies if type checking
430
- should be done one the data sent to the server.
431
- Default is True.
432
- _check_return_type (bool): specifies if type checking
433
- should be done one the data received from the server.
434
- Default is True.
435
- _spec_property_naming (bool): True if the variable names in the input data
436
- are serialized names, as specified in the OpenAPI document.
437
- False if the variable names in the input data
438
- are pythonic names, e.g. snake case (default)
439
- _content_type (str/None): force body content-type.
440
- Default is None and content-type will be predicted by allowed
441
- content-types and body.
442
- _host_index (int/None): specifies the index of the server
443
- that we want to use.
444
- Default is read from the configuration.
445
- _request_auths (list): set to override the auth_settings for an a single
446
- request; this effectively ignores the authentication
447
- in the spec for a single request.
448
- Default is None
449
- async_req (bool): execute request asynchronously
450
-
451
- Returns:
452
- RmLegacyAudienceGetEntityV1ListResponse
453
- If the method is called asynchronously, returns the request
454
- thread.
455
- """
456
- kwargs['async_req'] = kwargs.get(
457
- 'async_req', False
458
- )
459
- kwargs['_return_http_data_only'] = kwargs.get(
460
- '_return_http_data_only', True
461
- )
462
- kwargs['_preload_content'] = kwargs.get(
463
- '_preload_content', True
464
- )
465
- kwargs['_request_timeout'] = kwargs.get(
466
- '_request_timeout', None
467
- )
468
- kwargs['_check_input_type'] = kwargs.get(
469
- '_check_input_type', True
470
- )
471
- kwargs['_check_return_type'] = kwargs.get(
472
- '_check_return_type', True
473
- )
474
- kwargs['_spec_property_naming'] = kwargs.get(
475
- '_spec_property_naming', False
476
- )
477
- kwargs['_content_type'] = kwargs.get(
478
- '_content_type')
479
- kwargs['_host_index'] = kwargs.get('_host_index')
480
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
481
- kwargs['account_id'] = \
482
- account_id
483
- return self.legacy_get_audience_v1_endpoint.call_with_http_info(**kwargs)
484
-
485
- def legacy_get_audience_v2(
486
- self,
487
- account_id,
488
- **kwargs
489
- ):
490
- """legacy_get_audience_v2 # noqa: E501
491
-
492
- Get a page of Audiences. (deprecated Public API) # noqa: E501
493
- This method makes a synchronous HTTP request by default. To make an
494
- asynchronous HTTP request, please pass async_req=True
495
-
496
- >>> thread = api.legacy_get_audience_v2(account_id, async_req=True)
497
- >>> result = thread.get()
498
-
499
- Args:
500
- account_id (int): ID of the account to which this audience belongs.
501
-
502
- Keyword Args:
503
- limit_to_id ([int]): Limits results to the entity IDs specified; parameter key is repeated, eg. limitToId=1&limitToId=2. [optional]
504
- page_index (int): Returns the specified page of results given a pageSize; pages are 0-indexed.. [optional]
505
- page_size (int): Specifies the maximum number of entities returned in a single page; defaults to 25 entities per page.. [optional]
506
- _return_http_data_only (bool): response data without head status
507
- code and headers. Default is True.
508
- _preload_content (bool): if False, the urllib3.HTTPResponse object
509
- will be returned without reading/decoding response data.
510
- Default is True.
511
- _request_timeout (int/float/tuple): timeout setting for this request. If
512
- one number provided, it will be total request timeout. It can also
513
- be a pair (tuple) of (connection, read) timeouts.
514
- Default is None.
515
- _check_input_type (bool): specifies if type checking
516
- should be done one the data sent to the server.
517
- Default is True.
518
- _check_return_type (bool): specifies if type checking
519
- should be done one the data received from the server.
520
- Default is True.
521
- _spec_property_naming (bool): True if the variable names in the input data
522
- are serialized names, as specified in the OpenAPI document.
523
- False if the variable names in the input data
524
- are pythonic names, e.g. snake case (default)
525
- _content_type (str/None): force body content-type.
526
- Default is None and content-type will be predicted by allowed
527
- content-types and body.
528
- _host_index (int/None): specifies the index of the server
529
- that we want to use.
530
- Default is read from the configuration.
531
- _request_auths (list): set to override the auth_settings for an a single
532
- request; this effectively ignores the authentication
533
- in the spec for a single request.
534
- Default is None
535
- async_req (bool): execute request asynchronously
536
-
537
- Returns:
538
- RmLegacyAudienceGetEntityV2ListResponse
539
- If the method is called asynchronously, returns the request
540
- thread.
541
- """
542
- kwargs['async_req'] = kwargs.get(
543
- 'async_req', False
544
- )
545
- kwargs['_return_http_data_only'] = kwargs.get(
546
- '_return_http_data_only', True
547
- )
548
- kwargs['_preload_content'] = kwargs.get(
549
- '_preload_content', True
550
- )
551
- kwargs['_request_timeout'] = kwargs.get(
552
- '_request_timeout', None
553
- )
554
- kwargs['_check_input_type'] = kwargs.get(
555
- '_check_input_type', True
556
- )
557
- kwargs['_check_return_type'] = kwargs.get(
558
- '_check_return_type', True
559
- )
560
- kwargs['_spec_property_naming'] = kwargs.get(
561
- '_spec_property_naming', False
562
- )
563
- kwargs['_content_type'] = kwargs.get(
564
- '_content_type')
565
- kwargs['_host_index'] = kwargs.get('_host_index')
566
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
567
- kwargs['account_id'] = \
568
- account_id
569
- return self.legacy_get_audience_v2_endpoint.call_with_http_info(**kwargs)
570
-
571
- def legacy_update_audience_v2(
572
- self,
573
- account_id,
574
- rm_legacy_audience_create_input_entity_v2,
575
- **kwargs
576
- ):
577
- """legacy_update_audience_v2 # noqa: E501
578
-
579
- Create an Audience (deprecated Public API) # noqa: E501
580
- This method makes a synchronous HTTP request by default. To make an
581
- asynchronous HTTP request, please pass async_req=True
582
-
583
- >>> thread = api.legacy_update_audience_v2(account_id, rm_legacy_audience_create_input_entity_v2, async_req=True)
584
- >>> result = thread.get()
585
-
586
- Args:
587
- account_id (int): ID of the account to which this audience belongs.
588
- rm_legacy_audience_create_input_entity_v2 (RmLegacyAudienceCreateInputEntityV2): Audience creation request.
589
-
590
- Keyword Args:
591
- _return_http_data_only (bool): response data without head status
592
- code and headers. Default is True.
593
- _preload_content (bool): if False, the urllib3.HTTPResponse object
594
- will be returned without reading/decoding response data.
595
- Default is True.
596
- _request_timeout (int/float/tuple): timeout setting for this request. If
597
- one number provided, it will be total request timeout. It can also
598
- be a pair (tuple) of (connection, read) timeouts.
599
- Default is None.
600
- _check_input_type (bool): specifies if type checking
601
- should be done one the data sent to the server.
602
- Default is True.
603
- _check_return_type (bool): specifies if type checking
604
- should be done one the data received from the server.
605
- Default is True.
606
- _spec_property_naming (bool): True if the variable names in the input data
607
- are serialized names, as specified in the OpenAPI document.
608
- False if the variable names in the input data
609
- are pythonic names, e.g. snake case (default)
610
- _content_type (str/None): force body content-type.
611
- Default is None and content-type will be predicted by allowed
612
- content-types and body.
613
- _host_index (int/None): specifies the index of the server
614
- that we want to use.
615
- Default is read from the configuration.
616
- _request_auths (list): set to override the auth_settings for an a single
617
- request; this effectively ignores the authentication
618
- in the spec for a single request.
619
- Default is None
620
- async_req (bool): execute request asynchronously
621
-
622
- Returns:
623
- RmLegacyAudienceCreateEntityV2Response
624
- If the method is called asynchronously, returns the request
625
- thread.
626
- """
627
- kwargs['async_req'] = kwargs.get(
628
- 'async_req', False
629
- )
630
- kwargs['_return_http_data_only'] = kwargs.get(
631
- '_return_http_data_only', True
632
- )
633
- kwargs['_preload_content'] = kwargs.get(
634
- '_preload_content', True
635
- )
636
- kwargs['_request_timeout'] = kwargs.get(
637
- '_request_timeout', None
638
- )
639
- kwargs['_check_input_type'] = kwargs.get(
640
- '_check_input_type', True
641
- )
642
- kwargs['_check_return_type'] = kwargs.get(
643
- '_check_return_type', True
644
- )
645
- kwargs['_spec_property_naming'] = kwargs.get(
646
- '_spec_property_naming', False
647
- )
648
- kwargs['_content_type'] = kwargs.get(
649
- '_content_type')
650
- kwargs['_host_index'] = kwargs.get('_host_index')
651
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
652
- kwargs['account_id'] = \
653
- account_id
654
- kwargs['rm_legacy_audience_create_input_entity_v2'] = \
655
- rm_legacy_audience_create_input_entity_v2
656
- return self.legacy_update_audience_v2_endpoint.call_with_http_info(**kwargs)
657
-