criteo-api-marketingsolutions-sdk 0.0.250911__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-marketingsolutions-sdk might be problematic. Click here for more details.
- criteo_api_marketingsolutions_preview/__init__.py +1 -1
- criteo_api_marketingsolutions_preview/api/advertiser_api.py +15 -21
- criteo_api_marketingsolutions_preview/api/analytics_api.py +16 -62
- criteo_api_marketingsolutions_preview/api/audience_api.py +27 -94
- criteo_api_marketingsolutions_preview/api/campaign_api.py +263 -415
- criteo_api_marketingsolutions_preview/api/catalog_api.py +0 -1
- criteo_api_marketingsolutions_preview/api/creative_api.py +22 -63
- criteo_api_marketingsolutions_preview/api/on_site_recommendation_api.py +7 -10
- criteo_api_marketingsolutions_preview/api/reco_api.py +10 -32
- criteo_api_marketingsolutions_preview/api_client.py +4 -4
- criteo_api_marketingsolutions_preview/configuration.py +1 -1
- criteo_api_marketingsolutions_preview/model/adaptive_attributes.py +12 -12
- criteo_api_marketingsolutions_preview/model/adaptive_colors.py +1 -1
- criteo_api_marketingsolutions_preview/model/{error_description.py → adaptive_read_attributes.py} +76 -25
- criteo_api_marketingsolutions_preview/model/{error_code_response.py → creative_read.py} +66 -20
- criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes.py +12 -8
- criteo_api_marketingsolutions_preview/model/json_report_rows.py +3 -3
- criteo_api_marketingsolutions_preview/model/outcome.py +16 -5
- criteo_api_marketingsolutions_preview/model/placements_report_query_message.py +12 -8
- criteo_api_marketingsolutions_preview/model/{resource_collection_outcome_of_creative.py → resource_collection_outcome_of_creative_read.py} +8 -8
- criteo_api_marketingsolutions_preview/model/{api_error_response.py → resource_of_creative_read.py} +17 -11
- criteo_api_marketingsolutions_preview/model/statistics_report_query_message.py +248 -8
- criteo_api_marketingsolutions_preview/model/transactions_report_query_message.py +12 -8
- criteo_api_marketingsolutions_preview/models/__init__.py +4 -5
- {criteo_api_marketingsolutions_sdk-0.0.250911.dist-info → criteo_api_marketingsolutions_sdk-0.0.251009.dist-info}/METADATA +3 -3
- {criteo_api_marketingsolutions_sdk-0.0.250911.dist-info → criteo_api_marketingsolutions_sdk-0.0.251009.dist-info}/RECORD +28 -29
- criteo_api_marketingsolutions_preview/model/fail_response.py +0 -283
- {criteo_api_marketingsolutions_sdk-0.0.250911.dist-info → criteo_api_marketingsolutions_sdk-0.0.251009.dist-info}/WHEEL +0 -0
- {criteo_api_marketingsolutions_sdk-0.0.250911.dist-info → criteo_api_marketingsolutions_sdk-0.0.251009.dist-info}/top_level.txt +0 -0
|
@@ -30,13 +30,17 @@ from criteo_api_marketingsolutions_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_marketingsolutions_preview.model.
|
|
34
|
-
from criteo_api_marketingsolutions_preview.model.
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
from criteo_api_marketingsolutions_preview.model.adaptive_read_attributes import AdaptiveReadAttributes
|
|
34
|
+
from criteo_api_marketingsolutions_preview.model.dynamic_attributes import DynamicAttributes
|
|
35
|
+
from criteo_api_marketingsolutions_preview.model.html_tag_attributes import HtmlTagAttributes
|
|
36
|
+
from criteo_api_marketingsolutions_preview.model.image_attributes import ImageAttributes
|
|
37
|
+
globals()['AdaptiveReadAttributes'] = AdaptiveReadAttributes
|
|
38
|
+
globals()['DynamicAttributes'] = DynamicAttributes
|
|
39
|
+
globals()['HtmlTagAttributes'] = HtmlTagAttributes
|
|
40
|
+
globals()['ImageAttributes'] = ImageAttributes
|
|
37
41
|
|
|
38
42
|
|
|
39
|
-
class
|
|
43
|
+
class CreativeRead(ModelNormal):
|
|
40
44
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
41
45
|
Ref: https://openapi-generator.tech
|
|
42
46
|
|
|
@@ -75,7 +79,7 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
75
79
|
lazy_import()
|
|
76
80
|
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
77
81
|
|
|
78
|
-
_nullable =
|
|
82
|
+
_nullable = True
|
|
79
83
|
|
|
80
84
|
@cached_property
|
|
81
85
|
def openapi_types():
|
|
@@ -89,8 +93,17 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
89
93
|
"""
|
|
90
94
|
lazy_import()
|
|
91
95
|
return {
|
|
92
|
-
'
|
|
93
|
-
'
|
|
96
|
+
'advertiser_id': (str,), # noqa: E501
|
|
97
|
+
'author': (str,), # noqa: E501
|
|
98
|
+
'name': (str,), # noqa: E501
|
|
99
|
+
'status': (str,), # noqa: E501
|
|
100
|
+
'adaptive_attributes': (AdaptiveReadAttributes,), # noqa: E501
|
|
101
|
+
'dataset_id': (str, none_type,), # noqa: E501
|
|
102
|
+
'description': (str, none_type,), # noqa: E501
|
|
103
|
+
'dynamic_attributes': (DynamicAttributes,), # noqa: E501
|
|
104
|
+
'format': (str, none_type,), # noqa: E501
|
|
105
|
+
'html_tag_attributes': (HtmlTagAttributes,), # noqa: E501
|
|
106
|
+
'image_attributes': (ImageAttributes,), # noqa: E501
|
|
94
107
|
}
|
|
95
108
|
|
|
96
109
|
@cached_property
|
|
@@ -99,8 +112,17 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
99
112
|
|
|
100
113
|
|
|
101
114
|
attribute_map = {
|
|
102
|
-
'
|
|
103
|
-
'
|
|
115
|
+
'advertiser_id': 'advertiserId', # noqa: E501
|
|
116
|
+
'author': 'author', # noqa: E501
|
|
117
|
+
'name': 'name', # noqa: E501
|
|
118
|
+
'status': 'status', # noqa: E501
|
|
119
|
+
'adaptive_attributes': 'adaptiveAttributes', # noqa: E501
|
|
120
|
+
'dataset_id': 'datasetId', # noqa: E501
|
|
121
|
+
'description': 'description', # noqa: E501
|
|
122
|
+
'dynamic_attributes': 'dynamicAttributes', # noqa: E501
|
|
123
|
+
'format': 'format', # noqa: E501
|
|
124
|
+
'html_tag_attributes': 'htmlTagAttributes', # noqa: E501
|
|
125
|
+
'image_attributes': 'imageAttributes', # noqa: E501
|
|
104
126
|
}
|
|
105
127
|
|
|
106
128
|
read_only_vars = {
|
|
@@ -110,11 +132,14 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
110
132
|
|
|
111
133
|
@classmethod
|
|
112
134
|
@convert_js_args_to_python_args
|
|
113
|
-
def _from_openapi_data(cls,
|
|
114
|
-
"""
|
|
135
|
+
def _from_openapi_data(cls, advertiser_id, author, name, status, *args, **kwargs): # noqa: E501
|
|
136
|
+
"""CreativeRead - a model defined in OpenAPI
|
|
115
137
|
|
|
116
138
|
Args:
|
|
117
|
-
|
|
139
|
+
advertiser_id (str): Advertiser linked to the Creative
|
|
140
|
+
author (str): The login of the person who created this creative (
|
|
141
|
+
name (str): The name of the creative
|
|
142
|
+
status (str): The status of the creative
|
|
118
143
|
|
|
119
144
|
Keyword Args:
|
|
120
145
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -147,7 +172,13 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
147
172
|
Animal class but this time we won't travel
|
|
148
173
|
through its discriminator because we passed in
|
|
149
174
|
_visited_composed_classes = (Animal,)
|
|
150
|
-
|
|
175
|
+
adaptive_attributes (AdaptiveReadAttributes): [optional] # noqa: E501
|
|
176
|
+
dataset_id (str, none_type): Data set id linked to the Creative. [optional] # noqa: E501
|
|
177
|
+
description (str, none_type): The description of the creative. [optional] # noqa: E501
|
|
178
|
+
dynamic_attributes (DynamicAttributes): [optional] # noqa: E501
|
|
179
|
+
format (str, none_type): The format of the creative. [optional] # noqa: E501
|
|
180
|
+
html_tag_attributes (HtmlTagAttributes): [optional] # noqa: E501
|
|
181
|
+
image_attributes (ImageAttributes): [optional] # noqa: E501
|
|
151
182
|
"""
|
|
152
183
|
|
|
153
184
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -179,7 +210,10 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
179
210
|
self._configuration = _configuration
|
|
180
211
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
181
212
|
|
|
182
|
-
self.
|
|
213
|
+
self.advertiser_id = advertiser_id
|
|
214
|
+
self.author = author
|
|
215
|
+
self.name = name
|
|
216
|
+
self.status = status
|
|
183
217
|
for var_name, var_value in kwargs.items():
|
|
184
218
|
if var_name not in self.attribute_map and \
|
|
185
219
|
self._configuration is not None and \
|
|
@@ -200,11 +234,14 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
200
234
|
])
|
|
201
235
|
|
|
202
236
|
@convert_js_args_to_python_args
|
|
203
|
-
def __init__(self,
|
|
204
|
-
"""
|
|
237
|
+
def __init__(self, advertiser_id, author, name, status, *args, **kwargs): # noqa: E501
|
|
238
|
+
"""CreativeRead - a model defined in OpenAPI
|
|
205
239
|
|
|
206
240
|
Args:
|
|
207
|
-
|
|
241
|
+
advertiser_id (str): Advertiser linked to the Creative
|
|
242
|
+
author (str): The login of the person who created this creative (
|
|
243
|
+
name (str): The name of the creative
|
|
244
|
+
status (str): The status of the creative
|
|
208
245
|
|
|
209
246
|
Keyword Args:
|
|
210
247
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -237,7 +274,13 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
237
274
|
Animal class but this time we won't travel
|
|
238
275
|
through its discriminator because we passed in
|
|
239
276
|
_visited_composed_classes = (Animal,)
|
|
240
|
-
|
|
277
|
+
adaptive_attributes (AdaptiveReadAttributes): [optional] # noqa: E501
|
|
278
|
+
dataset_id (str, none_type): Data set id linked to the Creative. [optional] # noqa: E501
|
|
279
|
+
description (str, none_type): The description of the creative. [optional] # noqa: E501
|
|
280
|
+
dynamic_attributes (DynamicAttributes): [optional] # noqa: E501
|
|
281
|
+
format (str, none_type): The format of the creative. [optional] # noqa: E501
|
|
282
|
+
html_tag_attributes (HtmlTagAttributes): [optional] # noqa: E501
|
|
283
|
+
image_attributes (ImageAttributes): [optional] # noqa: E501
|
|
241
284
|
"""
|
|
242
285
|
|
|
243
286
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -267,7 +310,10 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
267
310
|
self._configuration = _configuration
|
|
268
311
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
269
312
|
|
|
270
|
-
self.
|
|
313
|
+
self.advertiser_id = advertiser_id
|
|
314
|
+
self.author = author
|
|
315
|
+
self.name = name
|
|
316
|
+
self.status = status
|
|
271
317
|
for var_name, var_value in kwargs.items():
|
|
272
318
|
if var_name not in self.attribute_map and \
|
|
273
319
|
self._configuration is not None and \
|
criteo_api_marketingsolutions_preview/model/generate_categories_report_request_attributes.py
CHANGED
|
@@ -55,6 +55,12 @@ class GenerateCategoriesReportRequestAttributes(ModelNormal):
|
|
|
55
55
|
"""
|
|
56
56
|
|
|
57
57
|
allowed_values = {
|
|
58
|
+
('format',): {
|
|
59
|
+
'CSV': "csv",
|
|
60
|
+
'EXCEL': "excel",
|
|
61
|
+
'XML': "xml",
|
|
62
|
+
'JSON': "json",
|
|
63
|
+
},
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
validations = {
|
|
@@ -77,12 +83,12 @@ class GenerateCategoriesReportRequestAttributes(ModelNormal):
|
|
|
77
83
|
return {
|
|
78
84
|
'advertiser_ids': ([str],), # noqa: E501
|
|
79
85
|
'end_date': (datetime,), # noqa: E501
|
|
80
|
-
'format': (str,), # noqa: E501
|
|
81
86
|
'start_date': (datetime,), # noqa: E501
|
|
82
87
|
'adset_id': (str, none_type,), # noqa: E501
|
|
83
88
|
'campaign_id': (str, none_type,), # noqa: E501
|
|
84
89
|
'category': (str, none_type,), # noqa: E501
|
|
85
90
|
'domain': (str, none_type,), # noqa: E501
|
|
91
|
+
'format': (str,), # noqa: E501
|
|
86
92
|
'should_display_domain_dimension': (bool,), # noqa: E501
|
|
87
93
|
'timezone': (str, none_type,), # noqa: E501
|
|
88
94
|
}
|
|
@@ -95,12 +101,12 @@ class GenerateCategoriesReportRequestAttributes(ModelNormal):
|
|
|
95
101
|
attribute_map = {
|
|
96
102
|
'advertiser_ids': 'advertiserIds', # noqa: E501
|
|
97
103
|
'end_date': 'endDate', # noqa: E501
|
|
98
|
-
'format': 'format', # noqa: E501
|
|
99
104
|
'start_date': 'startDate', # noqa: E501
|
|
100
105
|
'adset_id': 'adsetId', # noqa: E501
|
|
101
106
|
'campaign_id': 'campaignId', # noqa: E501
|
|
102
107
|
'category': 'category', # noqa: E501
|
|
103
108
|
'domain': 'domain', # noqa: E501
|
|
109
|
+
'format': 'format', # noqa: E501
|
|
104
110
|
'should_display_domain_dimension': 'shouldDisplayDomainDimension', # noqa: E501
|
|
105
111
|
'timezone': 'timezone', # noqa: E501
|
|
106
112
|
}
|
|
@@ -112,13 +118,12 @@ class GenerateCategoriesReportRequestAttributes(ModelNormal):
|
|
|
112
118
|
|
|
113
119
|
@classmethod
|
|
114
120
|
@convert_js_args_to_python_args
|
|
115
|
-
def _from_openapi_data(cls, advertiser_ids, end_date,
|
|
121
|
+
def _from_openapi_data(cls, advertiser_ids, end_date, start_date, *args, **kwargs): # noqa: E501
|
|
116
122
|
"""GenerateCategoriesReportRequestAttributes - a model defined in OpenAPI
|
|
117
123
|
|
|
118
124
|
Args:
|
|
119
125
|
advertiser_ids ([str]): List of Advertiser ids.
|
|
120
126
|
end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
121
|
-
format (str): The file format of the generated report: csv, xml, excel or json.
|
|
122
127
|
start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
123
128
|
|
|
124
129
|
Keyword Args:
|
|
@@ -156,6 +161,7 @@ class GenerateCategoriesReportRequestAttributes(ModelNormal):
|
|
|
156
161
|
campaign_id (str, none_type): Report only on the specified Campaign id.. [optional] # noqa: E501
|
|
157
162
|
category (str, none_type): Report only on the specified category.. [optional] # noqa: E501
|
|
158
163
|
domain (str, none_type): Report only on the specified domain.. [optional] # noqa: E501
|
|
164
|
+
format (str): The file format of the generated report. [optional] if omitted the server will use the default value of "json" # noqa: E501
|
|
159
165
|
should_display_domain_dimension (bool): Specify if the domain dimension is displayed in the report.. [optional] if omitted the server will use the default value of True # noqa: E501
|
|
160
166
|
timezone (str, none_type): The timezone used for the report. Timezone Database format (Tz).. [optional] if omitted the server will use the default value of "UTC" # noqa: E501
|
|
161
167
|
"""
|
|
@@ -191,7 +197,6 @@ class GenerateCategoriesReportRequestAttributes(ModelNormal):
|
|
|
191
197
|
|
|
192
198
|
self.advertiser_ids = advertiser_ids
|
|
193
199
|
self.end_date = end_date
|
|
194
|
-
self.format = format
|
|
195
200
|
self.start_date = start_date
|
|
196
201
|
for var_name, var_value in kwargs.items():
|
|
197
202
|
if var_name not in self.attribute_map and \
|
|
@@ -213,13 +218,12 @@ class GenerateCategoriesReportRequestAttributes(ModelNormal):
|
|
|
213
218
|
])
|
|
214
219
|
|
|
215
220
|
@convert_js_args_to_python_args
|
|
216
|
-
def __init__(self, advertiser_ids, end_date,
|
|
221
|
+
def __init__(self, advertiser_ids, end_date, start_date, *args, **kwargs): # noqa: E501
|
|
217
222
|
"""GenerateCategoriesReportRequestAttributes - a model defined in OpenAPI
|
|
218
223
|
|
|
219
224
|
Args:
|
|
220
225
|
advertiser_ids ([str]): List of Advertiser ids.
|
|
221
226
|
end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
222
|
-
format (str): The file format of the generated report: csv, xml, excel or json.
|
|
223
227
|
start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
224
228
|
|
|
225
229
|
Keyword Args:
|
|
@@ -257,6 +261,7 @@ class GenerateCategoriesReportRequestAttributes(ModelNormal):
|
|
|
257
261
|
campaign_id (str, none_type): Report only on the specified Campaign id.. [optional] # noqa: E501
|
|
258
262
|
category (str, none_type): Report only on the specified category.. [optional] # noqa: E501
|
|
259
263
|
domain (str, none_type): Report only on the specified domain.. [optional] # noqa: E501
|
|
264
|
+
format (str): The file format of the generated report. [optional] if omitted the server will use the default value of "json" # noqa: E501
|
|
260
265
|
should_display_domain_dimension (bool): Specify if the domain dimension is displayed in the report.. [optional] if omitted the server will use the default value of True # noqa: E501
|
|
261
266
|
timezone (str, none_type): The timezone used for the report. Timezone Database format (Tz).. [optional] if omitted the server will use the default value of "UTC" # noqa: E501
|
|
262
267
|
"""
|
|
@@ -290,7 +295,6 @@ class GenerateCategoriesReportRequestAttributes(ModelNormal):
|
|
|
290
295
|
|
|
291
296
|
self.advertiser_ids = advertiser_ids
|
|
292
297
|
self.end_date = end_date
|
|
293
|
-
self.format = format
|
|
294
298
|
self.start_date = start_date
|
|
295
299
|
for var_name, var_value in kwargs.items():
|
|
296
300
|
if var_name not in self.attribute_map and \
|
|
@@ -75,7 +75,7 @@ class JsonReportRows(ModelNormal):
|
|
|
75
75
|
and the value is attribute type.
|
|
76
76
|
"""
|
|
77
77
|
return {
|
|
78
|
-
'rows': ([{str: (str,
|
|
78
|
+
'rows': ([{str: (str,)}], none_type,), # noqa: E501
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
@cached_property
|
|
@@ -128,7 +128,7 @@ class JsonReportRows(ModelNormal):
|
|
|
128
128
|
Animal class but this time we won't travel
|
|
129
129
|
through its discriminator because we passed in
|
|
130
130
|
_visited_composed_classes = (Animal,)
|
|
131
|
-
rows ([{str: (str,
|
|
131
|
+
rows ([{str: (str,)}], none_type): [optional] # noqa: E501
|
|
132
132
|
"""
|
|
133
133
|
|
|
134
134
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -214,7 +214,7 @@ class JsonReportRows(ModelNormal):
|
|
|
214
214
|
Animal class but this time we won't travel
|
|
215
215
|
through its discriminator because we passed in
|
|
216
216
|
_visited_composed_classes = (Animal,)
|
|
217
|
-
rows ([{str: (str,
|
|
217
|
+
rows ([{str: (str,)}], none_type): [optional] # noqa: E501
|
|
218
218
|
"""
|
|
219
219
|
|
|
220
220
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -62,9 +62,20 @@ class Outcome(ModelNormal):
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
validations = {
|
|
65
|
+
('errors',): {
|
|
66
|
+
},
|
|
67
|
+
('warnings',): {
|
|
68
|
+
},
|
|
65
69
|
}
|
|
66
70
|
|
|
67
|
-
|
|
71
|
+
@cached_property
|
|
72
|
+
def additional_properties_type():
|
|
73
|
+
"""
|
|
74
|
+
This must be a method because a model may have properties that are
|
|
75
|
+
of type self, this must run after the class is loaded
|
|
76
|
+
"""
|
|
77
|
+
lazy_import()
|
|
78
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
68
79
|
|
|
69
80
|
_nullable = False
|
|
70
81
|
|
|
@@ -137,8 +148,8 @@ class Outcome(ModelNormal):
|
|
|
137
148
|
Animal class but this time we won't travel
|
|
138
149
|
through its discriminator because we passed in
|
|
139
150
|
_visited_composed_classes = (Animal,)
|
|
140
|
-
errors ([CommonProblem], none_type):
|
|
141
|
-
warnings ([CommonProblem], none_type):
|
|
151
|
+
errors ([CommonProblem], none_type): [optional] # noqa: E501
|
|
152
|
+
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
142
153
|
"""
|
|
143
154
|
|
|
144
155
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -224,8 +235,8 @@ class Outcome(ModelNormal):
|
|
|
224
235
|
Animal class but this time we won't travel
|
|
225
236
|
through its discriminator because we passed in
|
|
226
237
|
_visited_composed_classes = (Animal,)
|
|
227
|
-
errors ([CommonProblem], none_type):
|
|
228
|
-
warnings ([CommonProblem], none_type):
|
|
238
|
+
errors ([CommonProblem], none_type): [optional] # noqa: E501
|
|
239
|
+
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
229
240
|
"""
|
|
230
241
|
|
|
231
242
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -69,6 +69,12 @@ class PlacementsReportQueryMessage(ModelNormal):
|
|
|
69
69
|
'CATEGORYID': "CategoryId",
|
|
70
70
|
'CATEGORYNAME': "CategoryName",
|
|
71
71
|
},
|
|
72
|
+
('format',): {
|
|
73
|
+
'CSV': "csv",
|
|
74
|
+
'EXCEL': "excel",
|
|
75
|
+
'XML': "xml",
|
|
76
|
+
'JSON': "json",
|
|
77
|
+
},
|
|
72
78
|
}
|
|
73
79
|
|
|
74
80
|
validations = {
|
|
@@ -93,13 +99,13 @@ class PlacementsReportQueryMessage(ModelNormal):
|
|
|
93
99
|
'currency': (str,), # noqa: E501
|
|
94
100
|
'dimensions': ([str],), # noqa: E501
|
|
95
101
|
'end_date': (datetime,), # noqa: E501
|
|
96
|
-
'format': (str,), # noqa: E501
|
|
97
102
|
'metrics': ([str],), # noqa: E501
|
|
98
103
|
'start_date': (datetime,), # noqa: E501
|
|
99
104
|
'adset_ids': (str, none_type,), # noqa: E501
|
|
100
105
|
'campaign_ids': (str, none_type,), # noqa: E501
|
|
101
106
|
'disclosed': (bool,), # noqa: E501
|
|
102
107
|
'environment': (str, none_type,), # noqa: E501
|
|
108
|
+
'format': (str,), # noqa: E501
|
|
103
109
|
'placement': (str, none_type,), # noqa: E501
|
|
104
110
|
'timezone': (str, none_type,), # noqa: E501
|
|
105
111
|
}
|
|
@@ -114,13 +120,13 @@ class PlacementsReportQueryMessage(ModelNormal):
|
|
|
114
120
|
'currency': 'currency', # noqa: E501
|
|
115
121
|
'dimensions': 'dimensions', # noqa: E501
|
|
116
122
|
'end_date': 'endDate', # noqa: E501
|
|
117
|
-
'format': 'format', # noqa: E501
|
|
118
123
|
'metrics': 'metrics', # noqa: E501
|
|
119
124
|
'start_date': 'startDate', # noqa: E501
|
|
120
125
|
'adset_ids': 'adsetIds', # noqa: E501
|
|
121
126
|
'campaign_ids': 'campaignIds', # noqa: E501
|
|
122
127
|
'disclosed': 'disclosed', # noqa: E501
|
|
123
128
|
'environment': 'environment', # noqa: E501
|
|
129
|
+
'format': 'format', # noqa: E501
|
|
124
130
|
'placement': 'placement', # noqa: E501
|
|
125
131
|
'timezone': 'timezone', # noqa: E501
|
|
126
132
|
}
|
|
@@ -132,7 +138,7 @@ class PlacementsReportQueryMessage(ModelNormal):
|
|
|
132
138
|
|
|
133
139
|
@classmethod
|
|
134
140
|
@convert_js_args_to_python_args
|
|
135
|
-
def _from_openapi_data(cls, advertiser_ids, currency, dimensions, end_date,
|
|
141
|
+
def _from_openapi_data(cls, advertiser_ids, currency, dimensions, end_date, metrics, start_date, *args, **kwargs): # noqa: E501
|
|
136
142
|
"""PlacementsReportQueryMessage - a model defined in OpenAPI
|
|
137
143
|
|
|
138
144
|
Args:
|
|
@@ -140,7 +146,6 @@ class PlacementsReportQueryMessage(ModelNormal):
|
|
|
140
146
|
currency (str): The currency used for the report. ISO 4217 code (three-letter capitals).
|
|
141
147
|
dimensions ([str]): The dimensions for the report.
|
|
142
148
|
end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
143
|
-
format (str): The file format of the generated report: csv, xml, excel or json.
|
|
144
149
|
metrics ([str]): The list of metrics to report.
|
|
145
150
|
start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
146
151
|
|
|
@@ -179,6 +184,7 @@ class PlacementsReportQueryMessage(ModelNormal):
|
|
|
179
184
|
campaign_ids (str, none_type): The comma-separated list of campaign ids.. [optional] # noqa: E501
|
|
180
185
|
disclosed (bool): Returns disclosed or undisclosed placements.. [optional] if omitted the server will use the default value of True # noqa: E501
|
|
181
186
|
environment (str, none_type): Type of environment: Web, Android or iOS.. [optional] # noqa: E501
|
|
187
|
+
format (str): The file format of the generated report. [optional] if omitted the server will use the default value of "json" # noqa: E501
|
|
182
188
|
placement (str, none_type): Filter the value of the placement. [optional] # noqa: E501
|
|
183
189
|
timezone (str, none_type): The timezone used for the report. Timezone Database format (Tz).. [optional] if omitted the server will use the default value of "UTC" # noqa: E501
|
|
184
190
|
"""
|
|
@@ -216,7 +222,6 @@ class PlacementsReportQueryMessage(ModelNormal):
|
|
|
216
222
|
self.currency = currency
|
|
217
223
|
self.dimensions = dimensions
|
|
218
224
|
self.end_date = end_date
|
|
219
|
-
self.format = format
|
|
220
225
|
self.metrics = metrics
|
|
221
226
|
self.start_date = start_date
|
|
222
227
|
for var_name, var_value in kwargs.items():
|
|
@@ -239,7 +244,7 @@ class PlacementsReportQueryMessage(ModelNormal):
|
|
|
239
244
|
])
|
|
240
245
|
|
|
241
246
|
@convert_js_args_to_python_args
|
|
242
|
-
def __init__(self, advertiser_ids, currency, dimensions, end_date,
|
|
247
|
+
def __init__(self, advertiser_ids, currency, dimensions, end_date, metrics, start_date, *args, **kwargs): # noqa: E501
|
|
243
248
|
"""PlacementsReportQueryMessage - a model defined in OpenAPI
|
|
244
249
|
|
|
245
250
|
Args:
|
|
@@ -247,7 +252,6 @@ class PlacementsReportQueryMessage(ModelNormal):
|
|
|
247
252
|
currency (str): The currency used for the report. ISO 4217 code (three-letter capitals).
|
|
248
253
|
dimensions ([str]): The dimensions for the report.
|
|
249
254
|
end_date (datetime): End date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
250
|
-
format (str): The file format of the generated report: csv, xml, excel or json.
|
|
251
255
|
metrics ([str]): The list of metrics to report.
|
|
252
256
|
start_date (datetime): Start date of the report. Date component of ISO 8061 format, any time or timezone component is ignored.
|
|
253
257
|
|
|
@@ -286,6 +290,7 @@ class PlacementsReportQueryMessage(ModelNormal):
|
|
|
286
290
|
campaign_ids (str, none_type): The comma-separated list of campaign ids.. [optional] # noqa: E501
|
|
287
291
|
disclosed (bool): Returns disclosed or undisclosed placements.. [optional] if omitted the server will use the default value of True # noqa: E501
|
|
288
292
|
environment (str, none_type): Type of environment: Web, Android or iOS.. [optional] # noqa: E501
|
|
293
|
+
format (str): The file format of the generated report. [optional] if omitted the server will use the default value of "json" # noqa: E501
|
|
289
294
|
placement (str, none_type): Filter the value of the placement. [optional] # noqa: E501
|
|
290
295
|
timezone (str, none_type): The timezone used for the report. Timezone Database format (Tz).. [optional] if omitted the server will use the default value of "UTC" # noqa: E501
|
|
291
296
|
"""
|
|
@@ -321,7 +326,6 @@ class PlacementsReportQueryMessage(ModelNormal):
|
|
|
321
326
|
self.currency = currency
|
|
322
327
|
self.dimensions = dimensions
|
|
323
328
|
self.end_date = end_date
|
|
324
|
-
self.format = format
|
|
325
329
|
self.metrics = metrics
|
|
326
330
|
self.start_date = start_date
|
|
327
331
|
for var_name, var_value in kwargs.items():
|
|
@@ -31,12 +31,12 @@ from criteo_api_marketingsolutions_preview.exceptions import ApiAttributeError
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
33
|
from criteo_api_marketingsolutions_preview.model.common_problem import CommonProblem
|
|
34
|
-
from criteo_api_marketingsolutions_preview.model.
|
|
34
|
+
from criteo_api_marketingsolutions_preview.model.resource_of_creative_read import ResourceOfCreativeRead
|
|
35
35
|
globals()['CommonProblem'] = CommonProblem
|
|
36
|
-
globals()['
|
|
36
|
+
globals()['ResourceOfCreativeRead'] = ResourceOfCreativeRead
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class ResourceCollectionOutcomeOfCreativeRead(ModelNormal):
|
|
40
40
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
41
41
|
Ref: https://openapi-generator.tech
|
|
42
42
|
|
|
@@ -89,7 +89,7 @@ class ResourceCollectionOutcomeOfCreative(ModelNormal):
|
|
|
89
89
|
"""
|
|
90
90
|
lazy_import()
|
|
91
91
|
return {
|
|
92
|
-
'data': ([
|
|
92
|
+
'data': ([ResourceOfCreativeRead], none_type,), # noqa: E501
|
|
93
93
|
'errors': ([CommonProblem], none_type,), # noqa: E501
|
|
94
94
|
'warnings': ([CommonProblem], none_type,), # noqa: E501
|
|
95
95
|
}
|
|
@@ -115,7 +115,7 @@ class ResourceCollectionOutcomeOfCreative(ModelNormal):
|
|
|
115
115
|
@classmethod
|
|
116
116
|
@convert_js_args_to_python_args
|
|
117
117
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
118
|
-
"""
|
|
118
|
+
"""ResourceCollectionOutcomeOfCreativeRead - a model defined in OpenAPI
|
|
119
119
|
|
|
120
120
|
Keyword Args:
|
|
121
121
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -148,7 +148,7 @@ class ResourceCollectionOutcomeOfCreative(ModelNormal):
|
|
|
148
148
|
Animal class but this time we won't travel
|
|
149
149
|
through its discriminator because we passed in
|
|
150
150
|
_visited_composed_classes = (Animal,)
|
|
151
|
-
data ([
|
|
151
|
+
data ([ResourceOfCreativeRead], none_type): [optional] # noqa: E501
|
|
152
152
|
errors ([CommonProblem], none_type): [optional] # noqa: E501
|
|
153
153
|
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
154
154
|
"""
|
|
@@ -203,7 +203,7 @@ class ResourceCollectionOutcomeOfCreative(ModelNormal):
|
|
|
203
203
|
|
|
204
204
|
@convert_js_args_to_python_args
|
|
205
205
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
206
|
-
"""
|
|
206
|
+
"""ResourceCollectionOutcomeOfCreativeRead - a model defined in OpenAPI
|
|
207
207
|
|
|
208
208
|
Keyword Args:
|
|
209
209
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -236,7 +236,7 @@ class ResourceCollectionOutcomeOfCreative(ModelNormal):
|
|
|
236
236
|
Animal class but this time we won't travel
|
|
237
237
|
through its discriminator because we passed in
|
|
238
238
|
_visited_composed_classes = (Animal,)
|
|
239
|
-
data ([
|
|
239
|
+
data ([ResourceOfCreativeRead], none_type): [optional] # noqa: E501
|
|
240
240
|
errors ([CommonProblem], none_type): [optional] # noqa: E501
|
|
241
241
|
warnings ([CommonProblem], none_type): [optional] # noqa: E501
|
|
242
242
|
"""
|
criteo_api_marketingsolutions_preview/model/{api_error_response.py → resource_of_creative_read.py}
RENAMED
|
@@ -30,11 +30,11 @@ from criteo_api_marketingsolutions_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_marketingsolutions_preview.model.
|
|
34
|
-
globals()['
|
|
33
|
+
from criteo_api_marketingsolutions_preview.model.creative_read import CreativeRead
|
|
34
|
+
globals()['CreativeRead'] = CreativeRead
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class ResourceOfCreativeRead(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -62,8 +62,6 @@ class ApiErrorResponse(ModelNormal):
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
validations = {
|
|
65
|
-
('errors',): {
|
|
66
|
-
},
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
@cached_property
|
|
@@ -89,7 +87,9 @@ class ApiErrorResponse(ModelNormal):
|
|
|
89
87
|
"""
|
|
90
88
|
lazy_import()
|
|
91
89
|
return {
|
|
92
|
-
'
|
|
90
|
+
'attributes': (CreativeRead,), # noqa: E501
|
|
91
|
+
'id': (str, none_type,), # noqa: E501
|
|
92
|
+
'type': (str, none_type,), # noqa: E501
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
@cached_property
|
|
@@ -98,7 +98,9 @@ class ApiErrorResponse(ModelNormal):
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
attribute_map = {
|
|
101
|
-
'
|
|
101
|
+
'attributes': 'attributes', # noqa: E501
|
|
102
|
+
'id': 'id', # noqa: E501
|
|
103
|
+
'type': 'type', # noqa: E501
|
|
102
104
|
}
|
|
103
105
|
|
|
104
106
|
read_only_vars = {
|
|
@@ -109,7 +111,7 @@ class ApiErrorResponse(ModelNormal):
|
|
|
109
111
|
@classmethod
|
|
110
112
|
@convert_js_args_to_python_args
|
|
111
113
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
112
|
-
"""
|
|
114
|
+
"""ResourceOfCreativeRead - a model defined in OpenAPI
|
|
113
115
|
|
|
114
116
|
Keyword Args:
|
|
115
117
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -142,7 +144,9 @@ class ApiErrorResponse(ModelNormal):
|
|
|
142
144
|
Animal class but this time we won't travel
|
|
143
145
|
through its discriminator because we passed in
|
|
144
146
|
_visited_composed_classes = (Animal,)
|
|
145
|
-
|
|
147
|
+
attributes (CreativeRead): [optional] # noqa: E501
|
|
148
|
+
id (str, none_type): Unique identifier of this resource.. [optional] # noqa: E501
|
|
149
|
+
type (str, none_type): [optional] # noqa: E501
|
|
146
150
|
"""
|
|
147
151
|
|
|
148
152
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -195,7 +199,7 @@ class ApiErrorResponse(ModelNormal):
|
|
|
195
199
|
|
|
196
200
|
@convert_js_args_to_python_args
|
|
197
201
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
198
|
-
"""
|
|
202
|
+
"""ResourceOfCreativeRead - a model defined in OpenAPI
|
|
199
203
|
|
|
200
204
|
Keyword Args:
|
|
201
205
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -228,7 +232,9 @@ class ApiErrorResponse(ModelNormal):
|
|
|
228
232
|
Animal class but this time we won't travel
|
|
229
233
|
through its discriminator because we passed in
|
|
230
234
|
_visited_composed_classes = (Animal,)
|
|
231
|
-
|
|
235
|
+
attributes (CreativeRead): [optional] # noqa: E501
|
|
236
|
+
id (str, none_type): Unique identifier of this resource.. [optional] # noqa: E501
|
|
237
|
+
type (str, none_type): [optional] # noqa: E501
|
|
232
238
|
"""
|
|
233
239
|
|
|
234
240
|
_check_type = kwargs.pop('_check_type', True)
|