criteo-api-marketingsolutions-sdk 2025.10.0.251029__py3-none-any.whl → 2025.10.0.251030__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_sdk-2025.10.0.251029.dist-info → criteo_api_marketingsolutions_sdk-2025.10.0.251030.dist-info}/METADATA +3 -3
- {criteo_api_marketingsolutions_sdk-2025.10.0.251029.dist-info → criteo_api_marketingsolutions_sdk-2025.10.0.251030.dist-info}/RECORD +16 -11
- criteo_api_marketingsolutions_v2025_10/__init__.py +1 -1
- criteo_api_marketingsolutions_v2025_10/api/campaign_api.py +89 -43
- criteo_api_marketingsolutions_v2025_10/api/reco_api.py +9 -9
- criteo_api_marketingsolutions_v2025_10/api_client.py +1 -1
- criteo_api_marketingsolutions_v2025_10/configuration.py +1 -1
- criteo_api_marketingsolutions_v2025_10/model/ad_set_delivery_status.py +291 -0
- criteo_api_marketingsolutions_v2025_10/model/advertiser_adset_message.py +289 -0
- criteo_api_marketingsolutions_v2025_10/model/advertiser_campaign_message.py +287 -0
- criteo_api_marketingsolutions_v2025_10/model/advertiser_info_message.py +271 -0
- criteo_api_marketingsolutions_v2025_10/model/advertiser_quota_message.py +279 -0
- criteo_api_marketingsolutions_v2025_10/model/seller_budget_status_v2.py +4 -4
- criteo_api_marketingsolutions_v2025_10/models/__init__.py +5 -0
- {criteo_api_marketingsolutions_sdk-2025.10.0.251029.dist-info → criteo_api_marketingsolutions_sdk-2025.10.0.251030.dist-info}/WHEEL +0 -0
- {criteo_api_marketingsolutions_sdk-2025.10.0.251029.dist-info → criteo_api_marketingsolutions_sdk-2025.10.0.251030.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Criteo API
|
|
3
|
+
|
|
4
|
+
Criteo API - MarketingSolutions # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2025-10
|
|
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_marketingsolutions_v2025_10.model_utils import ( # noqa: F401
|
|
15
|
+
ApiTypeError,
|
|
16
|
+
ModelComposed,
|
|
17
|
+
ModelNormal,
|
|
18
|
+
ModelSimple,
|
|
19
|
+
cached_property,
|
|
20
|
+
change_keys_js_to_python,
|
|
21
|
+
convert_js_args_to_python_args,
|
|
22
|
+
date,
|
|
23
|
+
datetime,
|
|
24
|
+
file_type,
|
|
25
|
+
none_type,
|
|
26
|
+
validate_get_composed_info,
|
|
27
|
+
OpenApiModel
|
|
28
|
+
)
|
|
29
|
+
from criteo_api_marketingsolutions_v2025_10.exceptions import ApiAttributeError
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class AdvertiserQuotaMessage(ModelNormal):
|
|
34
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
|
+
Ref: https://openapi-generator.tech
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
|
|
39
|
+
Attributes:
|
|
40
|
+
allowed_values (dict): The key is the tuple path to the attribute
|
|
41
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
42
|
+
with a capitalized key describing the allowed value and an allowed
|
|
43
|
+
value. These dicts store the allowed enum values.
|
|
44
|
+
attribute_map (dict): The key is attribute name
|
|
45
|
+
and the value is json key in definition.
|
|
46
|
+
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
47
|
+
variable value to the discriminator class name.
|
|
48
|
+
validations (dict): The key is the tuple path to the attribute
|
|
49
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
50
|
+
that stores validations for max_length, min_length, max_items,
|
|
51
|
+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
52
|
+
inclusive_minimum, and regex.
|
|
53
|
+
additional_properties_type (tuple): A tuple of classes accepted
|
|
54
|
+
as additional properties values.
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
allowed_values = {
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
validations = {
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@cached_property
|
|
64
|
+
def additional_properties_type():
|
|
65
|
+
"""
|
|
66
|
+
This must be a method because a model may have properties that are
|
|
67
|
+
of type self, this must run after the class is loaded
|
|
68
|
+
"""
|
|
69
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
70
|
+
|
|
71
|
+
_nullable = False
|
|
72
|
+
|
|
73
|
+
@cached_property
|
|
74
|
+
def openapi_types():
|
|
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
|
+
Returns
|
|
80
|
+
openapi_types (dict): The key is attribute name
|
|
81
|
+
and the value is attribute type.
|
|
82
|
+
"""
|
|
83
|
+
return {
|
|
84
|
+
'advertiser_id': (int, none_type,), # noqa: E501
|
|
85
|
+
'quota_end_date': (datetime, none_type,), # noqa: E501
|
|
86
|
+
'quota_limit': (int, none_type,), # noqa: E501
|
|
87
|
+
'quota_start_date': (datetime, none_type,), # noqa: E501
|
|
88
|
+
'quota_used': (int, none_type,), # noqa: E501
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@cached_property
|
|
92
|
+
def discriminator():
|
|
93
|
+
return None
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
attribute_map = {
|
|
97
|
+
'advertiser_id': 'advertiserId', # noqa: E501
|
|
98
|
+
'quota_end_date': 'quotaEndDate', # noqa: E501
|
|
99
|
+
'quota_limit': 'quotaLimit', # noqa: E501
|
|
100
|
+
'quota_start_date': 'quotaStartDate', # noqa: E501
|
|
101
|
+
'quota_used': 'quotaUsed', # noqa: E501
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
read_only_vars = {
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
_composed_schemas = {}
|
|
108
|
+
|
|
109
|
+
@classmethod
|
|
110
|
+
@convert_js_args_to_python_args
|
|
111
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
112
|
+
"""AdvertiserQuotaMessage - a model defined in OpenAPI
|
|
113
|
+
|
|
114
|
+
Keyword Args:
|
|
115
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
116
|
+
will be type checked and a TypeError will be
|
|
117
|
+
raised if the wrong type is input.
|
|
118
|
+
Defaults to True
|
|
119
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
120
|
+
drill down to the model in received_data
|
|
121
|
+
when deserializing a response
|
|
122
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
123
|
+
are serialized names, as specified in the OpenAPI document.
|
|
124
|
+
False if the variable names in the input data
|
|
125
|
+
are pythonic names, e.g. snake case (default)
|
|
126
|
+
_configuration (Configuration): the instance to use when
|
|
127
|
+
deserializing a file_type parameter.
|
|
128
|
+
If passed, type conversion is attempted
|
|
129
|
+
If omitted no type conversion is done.
|
|
130
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
131
|
+
classes that we have traveled through so that
|
|
132
|
+
if we see that class again we will not use its
|
|
133
|
+
discriminator again.
|
|
134
|
+
When traveling through a discriminator, the
|
|
135
|
+
composed schema that is
|
|
136
|
+
is traveled through is added to this set.
|
|
137
|
+
For example if Animal has a discriminator
|
|
138
|
+
petType and we pass in "Dog", and the class Dog
|
|
139
|
+
allOf includes Animal, we move through Animal
|
|
140
|
+
once using the discriminator, and pick Dog.
|
|
141
|
+
Then in Dog, we will make an instance of the
|
|
142
|
+
Animal class but this time we won't travel
|
|
143
|
+
through its discriminator because we passed in
|
|
144
|
+
_visited_composed_classes = (Animal,)
|
|
145
|
+
advertiser_id (int, none_type): [optional] # noqa: E501
|
|
146
|
+
quota_end_date (datetime, none_type): [optional] # noqa: E501
|
|
147
|
+
quota_limit (int, none_type): [optional] # noqa: E501
|
|
148
|
+
quota_start_date (datetime, none_type): [optional] # noqa: E501
|
|
149
|
+
quota_used (int, none_type): [optional] # noqa: E501
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
153
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
154
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
155
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
156
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
157
|
+
|
|
158
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
159
|
+
|
|
160
|
+
if args:
|
|
161
|
+
for arg in args:
|
|
162
|
+
if isinstance(arg, dict):
|
|
163
|
+
kwargs.update(arg)
|
|
164
|
+
else:
|
|
165
|
+
raise ApiTypeError(
|
|
166
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
167
|
+
args,
|
|
168
|
+
self.__class__.__name__,
|
|
169
|
+
),
|
|
170
|
+
path_to_item=_path_to_item,
|
|
171
|
+
valid_classes=(self.__class__,),
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
self._data_store = {}
|
|
175
|
+
self._check_type = _check_type
|
|
176
|
+
self._spec_property_naming = _spec_property_naming
|
|
177
|
+
self._path_to_item = _path_to_item
|
|
178
|
+
self._configuration = _configuration
|
|
179
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
180
|
+
|
|
181
|
+
for var_name, var_value in kwargs.items():
|
|
182
|
+
if var_name not in self.attribute_map and \
|
|
183
|
+
self._configuration is not None and \
|
|
184
|
+
self._configuration.discard_unknown_keys and \
|
|
185
|
+
self.additional_properties_type is None:
|
|
186
|
+
# discard variable.
|
|
187
|
+
continue
|
|
188
|
+
setattr(self, var_name, var_value)
|
|
189
|
+
return self
|
|
190
|
+
|
|
191
|
+
required_properties = set([
|
|
192
|
+
'_data_store',
|
|
193
|
+
'_check_type',
|
|
194
|
+
'_spec_property_naming',
|
|
195
|
+
'_path_to_item',
|
|
196
|
+
'_configuration',
|
|
197
|
+
'_visited_composed_classes',
|
|
198
|
+
])
|
|
199
|
+
|
|
200
|
+
@convert_js_args_to_python_args
|
|
201
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
202
|
+
"""AdvertiserQuotaMessage - a model defined in OpenAPI
|
|
203
|
+
|
|
204
|
+
Keyword Args:
|
|
205
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
206
|
+
will be type checked and a TypeError will be
|
|
207
|
+
raised if the wrong type is input.
|
|
208
|
+
Defaults to True
|
|
209
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
210
|
+
drill down to the model in received_data
|
|
211
|
+
when deserializing a response
|
|
212
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
213
|
+
are serialized names, as specified in the OpenAPI document.
|
|
214
|
+
False if the variable names in the input data
|
|
215
|
+
are pythonic names, e.g. snake case (default)
|
|
216
|
+
_configuration (Configuration): the instance to use when
|
|
217
|
+
deserializing a file_type parameter.
|
|
218
|
+
If passed, type conversion is attempted
|
|
219
|
+
If omitted no type conversion is done.
|
|
220
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
221
|
+
classes that we have traveled through so that
|
|
222
|
+
if we see that class again we will not use its
|
|
223
|
+
discriminator again.
|
|
224
|
+
When traveling through a discriminator, the
|
|
225
|
+
composed schema that is
|
|
226
|
+
is traveled through is added to this set.
|
|
227
|
+
For example if Animal has a discriminator
|
|
228
|
+
petType and we pass in "Dog", and the class Dog
|
|
229
|
+
allOf includes Animal, we move through Animal
|
|
230
|
+
once using the discriminator, and pick Dog.
|
|
231
|
+
Then in Dog, we will make an instance of the
|
|
232
|
+
Animal class but this time we won't travel
|
|
233
|
+
through its discriminator because we passed in
|
|
234
|
+
_visited_composed_classes = (Animal,)
|
|
235
|
+
advertiser_id (int, none_type): [optional] # noqa: E501
|
|
236
|
+
quota_end_date (datetime, none_type): [optional] # noqa: E501
|
|
237
|
+
quota_limit (int, none_type): [optional] # noqa: E501
|
|
238
|
+
quota_start_date (datetime, none_type): [optional] # noqa: E501
|
|
239
|
+
quota_used (int, none_type): [optional] # noqa: E501
|
|
240
|
+
"""
|
|
241
|
+
|
|
242
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
243
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
244
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
245
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
246
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
247
|
+
|
|
248
|
+
if args:
|
|
249
|
+
for arg in args:
|
|
250
|
+
if isinstance(arg, dict):
|
|
251
|
+
kwargs.update(arg)
|
|
252
|
+
else:
|
|
253
|
+
raise ApiTypeError(
|
|
254
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
255
|
+
args,
|
|
256
|
+
self.__class__.__name__,
|
|
257
|
+
),
|
|
258
|
+
path_to_item=_path_to_item,
|
|
259
|
+
valid_classes=(self.__class__,),
|
|
260
|
+
)
|
|
261
|
+
|
|
262
|
+
self._data_store = {}
|
|
263
|
+
self._check_type = _check_type
|
|
264
|
+
self._spec_property_naming = _spec_property_naming
|
|
265
|
+
self._path_to_item = _path_to_item
|
|
266
|
+
self._configuration = _configuration
|
|
267
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
268
|
+
|
|
269
|
+
for var_name, var_value in kwargs.items():
|
|
270
|
+
if var_name not in self.attribute_map and \
|
|
271
|
+
self._configuration is not None and \
|
|
272
|
+
self._configuration.discard_unknown_keys and \
|
|
273
|
+
self.additional_properties_type is None:
|
|
274
|
+
# discard variable.
|
|
275
|
+
continue
|
|
276
|
+
setattr(self, var_name, var_value)
|
|
277
|
+
if var_name in self.read_only_vars:
|
|
278
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
279
|
+
f"class with read only attributes.")
|
|
@@ -106,10 +106,10 @@ class SellerBudgetStatusV2(ModelSimple):
|
|
|
106
106
|
Note that value can be passed either in args or in kwargs, but not in both.
|
|
107
107
|
|
|
108
108
|
Args:
|
|
109
|
-
args[0] (str):
|
|
109
|
+
args[0] (str): Status of a seller budget., must be one of ["Archived", "Current", "Scheduled", ] # noqa: E501
|
|
110
110
|
|
|
111
111
|
Keyword Args:
|
|
112
|
-
value (str):
|
|
112
|
+
value (str): Status of a seller budget., must be one of ["Archived", "Current", "Scheduled", ] # noqa: E501
|
|
113
113
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
114
114
|
will be type checked and a TypeError will be
|
|
115
115
|
raised if the wrong type is input.
|
|
@@ -200,10 +200,10 @@ class SellerBudgetStatusV2(ModelSimple):
|
|
|
200
200
|
Note that value can be passed either in args or in kwargs, but not in both.
|
|
201
201
|
|
|
202
202
|
Args:
|
|
203
|
-
args[0] (str):
|
|
203
|
+
args[0] (str): Status of a seller budget., must be one of ["Archived", "Current", "Scheduled", ] # noqa: E501
|
|
204
204
|
|
|
205
205
|
Keyword Args:
|
|
206
|
-
value (str):
|
|
206
|
+
value (str): Status of a seller budget., must be one of ["Archived", "Current", "Scheduled", ] # noqa: E501
|
|
207
207
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
208
208
|
will be type checked and a TypeError will be
|
|
209
209
|
raised if the wrong type is input.
|
|
@@ -18,6 +18,7 @@ from criteo_api_marketingsolutions_v2025_10.model.ad_set_category_bid import AdS
|
|
|
18
18
|
from criteo_api_marketingsolutions_v2025_10.model.ad_set_category_bid_list_response import AdSetCategoryBidListResponse
|
|
19
19
|
from criteo_api_marketingsolutions_v2025_10.model.ad_set_category_bid_resource import AdSetCategoryBidResource
|
|
20
20
|
from criteo_api_marketingsolutions_v2025_10.model.ad_set_delivery_limitations_v24_q3 import AdSetDeliveryLimitationsV24Q3
|
|
21
|
+
from criteo_api_marketingsolutions_v2025_10.model.ad_set_delivery_status import AdSetDeliveryStatus
|
|
21
22
|
from criteo_api_marketingsolutions_v2025_10.model.ad_set_display_multiplier import AdSetDisplayMultiplier
|
|
22
23
|
from criteo_api_marketingsolutions_v2025_10.model.ad_set_display_multiplier_list_response import AdSetDisplayMultiplierListResponse
|
|
23
24
|
from criteo_api_marketingsolutions_v2025_10.model.ad_set_display_multiplier_resource import AdSetDisplayMultiplierResource
|
|
@@ -33,6 +34,10 @@ from criteo_api_marketingsolutions_v2025_10.model.adaptive_attributes import Ada
|
|
|
33
34
|
from criteo_api_marketingsolutions_v2025_10.model.adaptive_colors import AdaptiveColors
|
|
34
35
|
from criteo_api_marketingsolutions_v2025_10.model.adaptive_read_attributes import AdaptiveReadAttributes
|
|
35
36
|
from criteo_api_marketingsolutions_v2025_10.model.adaptive_write_attributes import AdaptiveWriteAttributes
|
|
37
|
+
from criteo_api_marketingsolutions_v2025_10.model.advertiser_adset_message import AdvertiserAdsetMessage
|
|
38
|
+
from criteo_api_marketingsolutions_v2025_10.model.advertiser_campaign_message import AdvertiserCampaignMessage
|
|
39
|
+
from criteo_api_marketingsolutions_v2025_10.model.advertiser_info_message import AdvertiserInfoMessage
|
|
40
|
+
from criteo_api_marketingsolutions_v2025_10.model.advertiser_quota_message import AdvertiserQuotaMessage
|
|
36
41
|
from criteo_api_marketingsolutions_v2025_10.model.algebra_node_v1 import AlgebraNodeV1
|
|
37
42
|
from criteo_api_marketingsolutions_v2025_10.model.application_summary_model import ApplicationSummaryModel
|
|
38
43
|
from criteo_api_marketingsolutions_v2025_10.model.application_summary_model_resource import ApplicationSummaryModelResource
|
|
File without changes
|