criteo-api-marketingsolutions-sdk 0.0.250911__py3-none-any.whl → 0.0.250915__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 +3 -9
- 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 +63 -215
- criteo_api_marketingsolutions_preview/api/catalog_api.py +0 -1
- criteo_api_marketingsolutions_preview/api/creative_api.py +19 -60
- criteo_api_marketingsolutions_preview/api/on_site_recommendation_api.py +1 -4
- criteo_api_marketingsolutions_preview/api/reco_api.py +10 -32
- criteo_api_marketingsolutions_preview/api_client.py +1 -1
- criteo_api_marketingsolutions_preview/configuration.py +1 -1
- 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/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 +0 -4
- {criteo_api_marketingsolutions_sdk-0.0.250911.dist-info → criteo_api_marketingsolutions_sdk-0.0.250915.dist-info}/METADATA +3 -3
- {criteo_api_marketingsolutions_sdk-0.0.250911.dist-info → criteo_api_marketingsolutions_sdk-0.0.250915.dist-info}/RECORD +22 -26
- criteo_api_marketingsolutions_preview/model/api_error_response.py +0 -271
- criteo_api_marketingsolutions_preview/model/error_code_response.py +0 -281
- criteo_api_marketingsolutions_preview/model/error_description.py +0 -279
- 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.250915.dist-info}/WHEEL +0 -0
- {criteo_api_marketingsolutions_sdk-0.0.250911.dist-info → criteo_api_marketingsolutions_sdk-0.0.250915.dist-info}/top_level.txt +0 -0
|
@@ -96,15 +96,10 @@ class CreativeApi(object):
|
|
|
96
96
|
},
|
|
97
97
|
headers_map={
|
|
98
98
|
'accept': [
|
|
99
|
-
'
|
|
100
|
-
'application/json',
|
|
101
|
-
'text/json'
|
|
99
|
+
'application/json'
|
|
102
100
|
],
|
|
103
101
|
'content_type': [
|
|
104
|
-
'application/json
|
|
105
|
-
'application/json',
|
|
106
|
-
'text/json',
|
|
107
|
-
'application/*+json'
|
|
102
|
+
'application/json'
|
|
108
103
|
]
|
|
109
104
|
},
|
|
110
105
|
api_client=api_client
|
|
@@ -160,15 +155,10 @@ class CreativeApi(object):
|
|
|
160
155
|
},
|
|
161
156
|
headers_map={
|
|
162
157
|
'accept': [
|
|
163
|
-
'
|
|
164
|
-
'application/json',
|
|
165
|
-
'text/json'
|
|
158
|
+
'application/json'
|
|
166
159
|
],
|
|
167
160
|
'content_type': [
|
|
168
|
-
'application/json
|
|
169
|
-
'application/json',
|
|
170
|
-
'text/json',
|
|
171
|
-
'application/*+json'
|
|
161
|
+
'application/json'
|
|
172
162
|
]
|
|
173
163
|
},
|
|
174
164
|
api_client=api_client
|
|
@@ -224,15 +214,10 @@ class CreativeApi(object):
|
|
|
224
214
|
},
|
|
225
215
|
headers_map={
|
|
226
216
|
'accept': [
|
|
227
|
-
'
|
|
228
|
-
'application/json',
|
|
229
|
-
'text/json'
|
|
217
|
+
'application/json'
|
|
230
218
|
],
|
|
231
219
|
'content_type': [
|
|
232
|
-
'application/json
|
|
233
|
-
'application/json',
|
|
234
|
-
'text/json',
|
|
235
|
-
'application/*+json'
|
|
220
|
+
'application/json'
|
|
236
221
|
]
|
|
237
222
|
},
|
|
238
223
|
api_client=api_client
|
|
@@ -450,15 +435,10 @@ class CreativeApi(object):
|
|
|
450
435
|
},
|
|
451
436
|
headers_map={
|
|
452
437
|
'accept': [
|
|
453
|
-
'
|
|
454
|
-
'application/json',
|
|
455
|
-
'text/json'
|
|
438
|
+
'application/json'
|
|
456
439
|
],
|
|
457
440
|
'content_type': [
|
|
458
|
-
'application/json
|
|
459
|
-
'application/json',
|
|
460
|
-
'text/json',
|
|
461
|
-
'application/*+json'
|
|
441
|
+
'application/json'
|
|
462
442
|
]
|
|
463
443
|
},
|
|
464
444
|
api_client=api_client
|
|
@@ -514,15 +494,10 @@ class CreativeApi(object):
|
|
|
514
494
|
},
|
|
515
495
|
headers_map={
|
|
516
496
|
'accept': [
|
|
517
|
-
'
|
|
518
|
-
'application/json',
|
|
519
|
-
'text/json'
|
|
497
|
+
'application/json'
|
|
520
498
|
],
|
|
521
499
|
'content_type': [
|
|
522
|
-
'application/json
|
|
523
|
-
'application/json',
|
|
524
|
-
'text/json',
|
|
525
|
-
'application/*+json'
|
|
500
|
+
'application/json'
|
|
526
501
|
]
|
|
527
502
|
},
|
|
528
503
|
api_client=api_client
|
|
@@ -584,8 +559,7 @@ class CreativeApi(object):
|
|
|
584
559
|
headers_map={
|
|
585
560
|
'accept': [
|
|
586
561
|
'text/html',
|
|
587
|
-
'application/json'
|
|
588
|
-
'text/json'
|
|
562
|
+
'application/json'
|
|
589
563
|
],
|
|
590
564
|
'content_type': [],
|
|
591
565
|
},
|
|
@@ -637,9 +611,7 @@ class CreativeApi(object):
|
|
|
637
611
|
},
|
|
638
612
|
headers_map={
|
|
639
613
|
'accept': [
|
|
640
|
-
'
|
|
641
|
-
'application/json',
|
|
642
|
-
'text/json'
|
|
614
|
+
'application/json'
|
|
643
615
|
],
|
|
644
616
|
'content_type': [],
|
|
645
617
|
},
|
|
@@ -703,9 +675,7 @@ class CreativeApi(object):
|
|
|
703
675
|
},
|
|
704
676
|
headers_map={
|
|
705
677
|
'accept': [
|
|
706
|
-
'
|
|
707
|
-
'application/json',
|
|
708
|
-
'text/json'
|
|
678
|
+
'application/json'
|
|
709
679
|
],
|
|
710
680
|
'content_type': [],
|
|
711
681
|
},
|
|
@@ -763,9 +733,7 @@ class CreativeApi(object):
|
|
|
763
733
|
},
|
|
764
734
|
headers_map={
|
|
765
735
|
'accept': [
|
|
766
|
-
'
|
|
767
|
-
'application/json',
|
|
768
|
-
'text/json'
|
|
736
|
+
'application/json'
|
|
769
737
|
],
|
|
770
738
|
'content_type': [],
|
|
771
739
|
},
|
|
@@ -834,8 +802,7 @@ class CreativeApi(object):
|
|
|
834
802
|
headers_map={
|
|
835
803
|
'accept': [
|
|
836
804
|
'text/html',
|
|
837
|
-
'application/json'
|
|
838
|
-
'text/json'
|
|
805
|
+
'application/json'
|
|
839
806
|
],
|
|
840
807
|
'content_type': [],
|
|
841
808
|
},
|
|
@@ -892,9 +859,7 @@ class CreativeApi(object):
|
|
|
892
859
|
},
|
|
893
860
|
headers_map={
|
|
894
861
|
'accept': [
|
|
895
|
-
'
|
|
896
|
-
'application/json',
|
|
897
|
-
'text/json'
|
|
862
|
+
'application/json'
|
|
898
863
|
],
|
|
899
864
|
'content_type': [],
|
|
900
865
|
},
|
|
@@ -958,9 +923,7 @@ class CreativeApi(object):
|
|
|
958
923
|
},
|
|
959
924
|
headers_map={
|
|
960
925
|
'accept': [
|
|
961
|
-
'
|
|
962
|
-
'application/json',
|
|
963
|
-
'text/json'
|
|
926
|
+
'application/json'
|
|
964
927
|
],
|
|
965
928
|
'content_type': [],
|
|
966
929
|
},
|
|
@@ -1024,9 +987,7 @@ class CreativeApi(object):
|
|
|
1024
987
|
},
|
|
1025
988
|
headers_map={
|
|
1026
989
|
'accept': [
|
|
1027
|
-
'
|
|
1028
|
-
'application/json',
|
|
1029
|
-
'text/json'
|
|
990
|
+
'application/json'
|
|
1030
991
|
],
|
|
1031
992
|
'content_type': [],
|
|
1032
993
|
},
|
|
@@ -1078,9 +1039,7 @@ class CreativeApi(object):
|
|
|
1078
1039
|
},
|
|
1079
1040
|
headers_map={
|
|
1080
1041
|
'accept': [
|
|
1081
|
-
'
|
|
1082
|
-
'application/json',
|
|
1083
|
-
'text/json'
|
|
1042
|
+
'application/json'
|
|
1084
1043
|
],
|
|
1085
1044
|
'content_type': [],
|
|
1086
1045
|
},
|
|
@@ -84,15 +84,10 @@ class RecoApi(object):
|
|
|
84
84
|
},
|
|
85
85
|
headers_map={
|
|
86
86
|
'accept': [
|
|
87
|
-
'
|
|
88
|
-
'application/json',
|
|
89
|
-
'text/json'
|
|
87
|
+
'application/json'
|
|
90
88
|
],
|
|
91
89
|
'content_type': [
|
|
92
|
-
'application/json
|
|
93
|
-
'application/json',
|
|
94
|
-
'text/json',
|
|
95
|
-
'application/*+json'
|
|
90
|
+
'application/json'
|
|
96
91
|
]
|
|
97
92
|
},
|
|
98
93
|
api_client=api_client
|
|
@@ -143,9 +138,7 @@ class RecoApi(object):
|
|
|
143
138
|
},
|
|
144
139
|
headers_map={
|
|
145
140
|
'accept': [
|
|
146
|
-
'
|
|
147
|
-
'application/json',
|
|
148
|
-
'text/json'
|
|
141
|
+
'application/json'
|
|
149
142
|
],
|
|
150
143
|
'content_type': [],
|
|
151
144
|
},
|
|
@@ -201,15 +194,10 @@ class RecoApi(object):
|
|
|
201
194
|
},
|
|
202
195
|
headers_map={
|
|
203
196
|
'accept': [
|
|
204
|
-
'
|
|
205
|
-
'application/json',
|
|
206
|
-
'text/json'
|
|
197
|
+
'application/json'
|
|
207
198
|
],
|
|
208
199
|
'content_type': [
|
|
209
|
-
'application/json
|
|
210
|
-
'application/json',
|
|
211
|
-
'text/json',
|
|
212
|
-
'application/*+json'
|
|
200
|
+
'application/json'
|
|
213
201
|
]
|
|
214
202
|
},
|
|
215
203
|
api_client=api_client
|
|
@@ -260,9 +248,7 @@ class RecoApi(object):
|
|
|
260
248
|
},
|
|
261
249
|
headers_map={
|
|
262
250
|
'accept': [
|
|
263
|
-
'
|
|
264
|
-
'application/json',
|
|
265
|
-
'text/json'
|
|
251
|
+
'application/json'
|
|
266
252
|
],
|
|
267
253
|
'content_type': [],
|
|
268
254
|
},
|
|
@@ -314,9 +300,7 @@ class RecoApi(object):
|
|
|
314
300
|
},
|
|
315
301
|
headers_map={
|
|
316
302
|
'accept': [
|
|
317
|
-
'
|
|
318
|
-
'application/json',
|
|
319
|
-
'text/json'
|
|
303
|
+
'application/json'
|
|
320
304
|
],
|
|
321
305
|
'content_type': [],
|
|
322
306
|
},
|
|
@@ -368,9 +352,7 @@ class RecoApi(object):
|
|
|
368
352
|
},
|
|
369
353
|
headers_map={
|
|
370
354
|
'accept': [
|
|
371
|
-
'
|
|
372
|
-
'application/json',
|
|
373
|
-
'text/json'
|
|
355
|
+
'application/json'
|
|
374
356
|
],
|
|
375
357
|
'content_type': [],
|
|
376
358
|
},
|
|
@@ -422,9 +404,7 @@ class RecoApi(object):
|
|
|
422
404
|
},
|
|
423
405
|
headers_map={
|
|
424
406
|
'accept': [
|
|
425
|
-
'
|
|
426
|
-
'application/json',
|
|
427
|
-
'text/json'
|
|
407
|
+
'application/json'
|
|
428
408
|
],
|
|
429
409
|
'content_type': [],
|
|
430
410
|
},
|
|
@@ -476,9 +456,7 @@ class RecoApi(object):
|
|
|
476
456
|
},
|
|
477
457
|
headers_map={
|
|
478
458
|
'accept': [
|
|
479
|
-
'
|
|
480
|
-
'application/json',
|
|
481
|
-
'text/json'
|
|
459
|
+
'application/json'
|
|
482
460
|
],
|
|
483
461
|
'content_type': [],
|
|
484
462
|
},
|
|
@@ -76,7 +76,7 @@ class ApiClient(object):
|
|
|
76
76
|
self.default_headers[header_name] = header_value
|
|
77
77
|
self.cookie = cookie
|
|
78
78
|
# Set default User-Agent.
|
|
79
|
-
self.user_agent = 'OpenAPI-Generator/0.0.
|
|
79
|
+
self.user_agent = 'OpenAPI-Generator/0.0.250915/python'
|
|
80
80
|
|
|
81
81
|
def __enter__(self):
|
|
82
82
|
return self
|
|
@@ -395,7 +395,7 @@ class Configuration(object):
|
|
|
395
395
|
"OS: {env}\n"\
|
|
396
396
|
"Python Version: {pyversion}\n"\
|
|
397
397
|
"Version of the API: Preview\n"\
|
|
398
|
-
"SDK Package Version: 0.0.
|
|
398
|
+
"SDK Package Version: 0.0.250915".\
|
|
399
399
|
format(env=sys.platform, pyversion=sys.version)
|
|
400
400
|
|
|
401
401
|
def get_host_settings(self):
|
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():
|