criteo-api-marketingsolutions-sdk 2025.4.0.250730__py3-none-any.whl → 2025.4.0.260112__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.
- {criteo_api_marketingsolutions_sdk-2025.4.0.250730.dist-info → criteo_api_marketingsolutions_sdk-2025.4.0.260112.dist-info}/METADATA +3 -3
- {criteo_api_marketingsolutions_sdk-2025.4.0.250730.dist-info → criteo_api_marketingsolutions_sdk-2025.4.0.260112.dist-info}/RECORD +21 -20
- criteo_api_marketingsolutions_v2025_04/__init__.py +1 -1
- criteo_api_marketingsolutions_v2025_04/api/advertiser_api.py +7 -9
- criteo_api_marketingsolutions_v2025_04/api/analytics_api.py +12 -25
- criteo_api_marketingsolutions_v2025_04/api/audience_api.py +542 -609
- criteo_api_marketingsolutions_v2025_04/api/campaign_api.py +147 -210
- criteo_api_marketingsolutions_v2025_04/api/creative_api.py +22 -63
- criteo_api_marketingsolutions_v2025_04/api_client.py +4 -4
- criteo_api_marketingsolutions_v2025_04/configuration.py +1 -1
- criteo_api_marketingsolutions_v2025_04/model/adaptive_colors.py +1 -1
- criteo_api_marketingsolutions_v2025_04/model/adaptive_read_attributes.py +330 -0
- criteo_api_marketingsolutions_v2025_04/model/{outcome.py → creative_read.py} +78 -19
- criteo_api_marketingsolutions_v2025_04/model/placements_report_query_message.py +12 -8
- criteo_api_marketingsolutions_v2025_04/model/{resource_collection_outcome_of_creative.py → resource_collection_outcome_of_creative_read.py} +8 -8
- criteo_api_marketingsolutions_v2025_04/model/{error_code_response.py → resource_of_creative_read.py} +19 -23
- criteo_api_marketingsolutions_v2025_04/model/statistics_report_query_message.py +248 -8
- criteo_api_marketingsolutions_v2025_04/model/transactions_report_query_message.py +12 -8
- criteo_api_marketingsolutions_v2025_04/models/__init__.py +4 -3
- {criteo_api_marketingsolutions_sdk-2025.4.0.250730.dist-info → criteo_api_marketingsolutions_sdk-2025.4.0.260112.dist-info}/WHEEL +0 -0
- {criteo_api_marketingsolutions_sdk-2025.4.0.250730.dist-info → criteo_api_marketingsolutions_sdk-2025.4.0.260112.dist-info}/top_level.txt +0 -0
|
@@ -30,11 +30,17 @@ from criteo_api_marketingsolutions_v2025_04.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_marketingsolutions_v2025_04.model.
|
|
34
|
-
|
|
33
|
+
from criteo_api_marketingsolutions_v2025_04.model.adaptive_read_attributes import AdaptiveReadAttributes
|
|
34
|
+
from criteo_api_marketingsolutions_v2025_04.model.dynamic_attributes import DynamicAttributes
|
|
35
|
+
from criteo_api_marketingsolutions_v2025_04.model.html_tag_attributes import HtmlTagAttributes
|
|
36
|
+
from criteo_api_marketingsolutions_v2025_04.model.image_attributes import ImageAttributes
|
|
37
|
+
globals()['AdaptiveReadAttributes'] = AdaptiveReadAttributes
|
|
38
|
+
globals()['DynamicAttributes'] = DynamicAttributes
|
|
39
|
+
globals()['HtmlTagAttributes'] = HtmlTagAttributes
|
|
40
|
+
globals()['ImageAttributes'] = ImageAttributes
|
|
35
41
|
|
|
36
42
|
|
|
37
|
-
class
|
|
43
|
+
class CreativeRead(ModelNormal):
|
|
38
44
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
45
|
Ref: https://openapi-generator.tech
|
|
40
46
|
|
|
@@ -64,9 +70,16 @@ class Outcome(ModelNormal):
|
|
|
64
70
|
validations = {
|
|
65
71
|
}
|
|
66
72
|
|
|
67
|
-
|
|
73
|
+
@cached_property
|
|
74
|
+
def additional_properties_type():
|
|
75
|
+
"""
|
|
76
|
+
This must be a method because a model may have properties that are
|
|
77
|
+
of type self, this must run after the class is loaded
|
|
78
|
+
"""
|
|
79
|
+
lazy_import()
|
|
80
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
68
81
|
|
|
69
|
-
_nullable =
|
|
82
|
+
_nullable = True
|
|
70
83
|
|
|
71
84
|
@cached_property
|
|
72
85
|
def openapi_types():
|
|
@@ -80,8 +93,17 @@ class Outcome(ModelNormal):
|
|
|
80
93
|
"""
|
|
81
94
|
lazy_import()
|
|
82
95
|
return {
|
|
83
|
-
'
|
|
84
|
-
'
|
|
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
|
|
85
107
|
}
|
|
86
108
|
|
|
87
109
|
@cached_property
|
|
@@ -90,21 +112,34 @@ class Outcome(ModelNormal):
|
|
|
90
112
|
|
|
91
113
|
|
|
92
114
|
attribute_map = {
|
|
93
|
-
'
|
|
94
|
-
'
|
|
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
|
|
95
126
|
}
|
|
96
127
|
|
|
97
128
|
read_only_vars = {
|
|
98
|
-
'errors', # noqa: E501
|
|
99
|
-
'warnings', # noqa: E501
|
|
100
129
|
}
|
|
101
130
|
|
|
102
131
|
_composed_schemas = {}
|
|
103
132
|
|
|
104
133
|
@classmethod
|
|
105
134
|
@convert_js_args_to_python_args
|
|
106
|
-
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
107
|
-
"""
|
|
135
|
+
def _from_openapi_data(cls, advertiser_id, author, name, status, *args, **kwargs): # noqa: E501
|
|
136
|
+
"""CreativeRead - a model defined in OpenAPI
|
|
137
|
+
|
|
138
|
+
Args:
|
|
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
|
|
108
143
|
|
|
109
144
|
Keyword Args:
|
|
110
145
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -137,8 +172,13 @@ class Outcome(ModelNormal):
|
|
|
137
172
|
Animal class but this time we won't travel
|
|
138
173
|
through its discriminator because we passed in
|
|
139
174
|
_visited_composed_classes = (Animal,)
|
|
140
|
-
|
|
141
|
-
|
|
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
|
|
142
182
|
"""
|
|
143
183
|
|
|
144
184
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -170,6 +210,10 @@ class Outcome(ModelNormal):
|
|
|
170
210
|
self._configuration = _configuration
|
|
171
211
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
172
212
|
|
|
213
|
+
self.advertiser_id = advertiser_id
|
|
214
|
+
self.author = author
|
|
215
|
+
self.name = name
|
|
216
|
+
self.status = status
|
|
173
217
|
for var_name, var_value in kwargs.items():
|
|
174
218
|
if var_name not in self.attribute_map and \
|
|
175
219
|
self._configuration is not None and \
|
|
@@ -190,8 +234,14 @@ class Outcome(ModelNormal):
|
|
|
190
234
|
])
|
|
191
235
|
|
|
192
236
|
@convert_js_args_to_python_args
|
|
193
|
-
def __init__(self, *args, **kwargs): # noqa: E501
|
|
194
|
-
"""
|
|
237
|
+
def __init__(self, advertiser_id, author, name, status, *args, **kwargs): # noqa: E501
|
|
238
|
+
"""CreativeRead - a model defined in OpenAPI
|
|
239
|
+
|
|
240
|
+
Args:
|
|
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
|
|
195
245
|
|
|
196
246
|
Keyword Args:
|
|
197
247
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -224,8 +274,13 @@ class Outcome(ModelNormal):
|
|
|
224
274
|
Animal class but this time we won't travel
|
|
225
275
|
through its discriminator because we passed in
|
|
226
276
|
_visited_composed_classes = (Animal,)
|
|
227
|
-
|
|
228
|
-
|
|
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
|
|
229
284
|
"""
|
|
230
285
|
|
|
231
286
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -255,6 +310,10 @@ class Outcome(ModelNormal):
|
|
|
255
310
|
self._configuration = _configuration
|
|
256
311
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
257
312
|
|
|
313
|
+
self.advertiser_id = advertiser_id
|
|
314
|
+
self.author = author
|
|
315
|
+
self.name = name
|
|
316
|
+
self.status = status
|
|
258
317
|
for var_name, var_value in kwargs.items():
|
|
259
318
|
if var_name not in self.attribute_map and \
|
|
260
319
|
self._configuration is not None and \
|
|
@@ -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_v2025_04.exceptions import ApiAttributeError
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
33
|
from criteo_api_marketingsolutions_v2025_04.model.common_problem import CommonProblem
|
|
34
|
-
from criteo_api_marketingsolutions_v2025_04.model.
|
|
34
|
+
from criteo_api_marketingsolutions_v2025_04.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_v2025_04/model/{error_code_response.py → resource_of_creative_read.py}
RENAMED
|
@@ -30,13 +30,11 @@ from criteo_api_marketingsolutions_v2025_04.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_marketingsolutions_v2025_04.model.
|
|
34
|
-
|
|
35
|
-
globals()['AudienceError'] = AudienceError
|
|
36
|
-
globals()['AudienceWarning'] = AudienceWarning
|
|
33
|
+
from criteo_api_marketingsolutions_v2025_04.model.creative_read import CreativeRead
|
|
34
|
+
globals()['CreativeRead'] = CreativeRead
|
|
37
35
|
|
|
38
36
|
|
|
39
|
-
class
|
|
37
|
+
class ResourceOfCreativeRead(ModelNormal):
|
|
40
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
41
39
|
Ref: https://openapi-generator.tech
|
|
42
40
|
|
|
@@ -89,8 +87,9 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
89
87
|
"""
|
|
90
88
|
lazy_import()
|
|
91
89
|
return {
|
|
92
|
-
'
|
|
93
|
-
'
|
|
90
|
+
'attributes': (CreativeRead,), # noqa: E501
|
|
91
|
+
'id': (str, none_type,), # noqa: E501
|
|
92
|
+
'type': (str, none_type,), # noqa: E501
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
@cached_property
|
|
@@ -99,8 +98,9 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
99
98
|
|
|
100
99
|
|
|
101
100
|
attribute_map = {
|
|
102
|
-
'
|
|
103
|
-
'
|
|
101
|
+
'attributes': 'attributes', # noqa: E501
|
|
102
|
+
'id': 'id', # noqa: E501
|
|
103
|
+
'type': 'type', # noqa: E501
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
read_only_vars = {
|
|
@@ -110,11 +110,8 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
110
110
|
|
|
111
111
|
@classmethod
|
|
112
112
|
@convert_js_args_to_python_args
|
|
113
|
-
def _from_openapi_data(cls,
|
|
114
|
-
"""
|
|
115
|
-
|
|
116
|
-
Args:
|
|
117
|
-
errors ([AudienceError]):
|
|
113
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
114
|
+
"""ResourceOfCreativeRead - a model defined in OpenAPI
|
|
118
115
|
|
|
119
116
|
Keyword Args:
|
|
120
117
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -147,7 +144,9 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
147
144
|
Animal class but this time we won't travel
|
|
148
145
|
through its discriminator because we passed in
|
|
149
146
|
_visited_composed_classes = (Animal,)
|
|
150
|
-
|
|
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
|
|
151
150
|
"""
|
|
152
151
|
|
|
153
152
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -179,7 +178,6 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
179
178
|
self._configuration = _configuration
|
|
180
179
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
181
180
|
|
|
182
|
-
self.errors = errors
|
|
183
181
|
for var_name, var_value in kwargs.items():
|
|
184
182
|
if var_name not in self.attribute_map and \
|
|
185
183
|
self._configuration is not None and \
|
|
@@ -200,11 +198,8 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
200
198
|
])
|
|
201
199
|
|
|
202
200
|
@convert_js_args_to_python_args
|
|
203
|
-
def __init__(self,
|
|
204
|
-
"""
|
|
205
|
-
|
|
206
|
-
Args:
|
|
207
|
-
errors ([AudienceError]):
|
|
201
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
202
|
+
"""ResourceOfCreativeRead - a model defined in OpenAPI
|
|
208
203
|
|
|
209
204
|
Keyword Args:
|
|
210
205
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -237,7 +232,9 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
237
232
|
Animal class but this time we won't travel
|
|
238
233
|
through its discriminator because we passed in
|
|
239
234
|
_visited_composed_classes = (Animal,)
|
|
240
|
-
|
|
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
|
|
241
238
|
"""
|
|
242
239
|
|
|
243
240
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -267,7 +264,6 @@ class ErrorCodeResponse(ModelNormal):
|
|
|
267
264
|
self._configuration = _configuration
|
|
268
265
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
269
266
|
|
|
270
|
-
self.errors = errors
|
|
271
267
|
for var_name, var_value in kwargs.items():
|
|
272
268
|
if var_name not in self.attribute_map and \
|
|
273
269
|
self._configuration is not None and \
|