criteo-api-marketingsolutions-sdk 2025.7.0.251028__py3-none-any.whl → 2025.7.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.

@@ -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/2025.07.0.251028/python'
79
+ self.user_agent = 'OpenAPI-Generator/2025.07.0.251030/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: 2025-07\n"\
398
- "SDK Package Version: 2025.07.0.251028".\
398
+ "SDK Package Version: 2025.07.0.251030".\
399
399
  format(env=sys.platform, pyversion=sys.version)
400
400
 
401
401
  def get_host_settings(self):
@@ -0,0 +1,291 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - MarketingSolutions # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2025-07
7
+ Generated by: https://openapi-generator.tech
8
+ """
9
+
10
+
11
+ import re # noqa: F401
12
+ import sys # noqa: F401
13
+
14
+ from criteo_api_marketingsolutions_v2025_07.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_07.exceptions import ApiAttributeError
30
+
31
+
32
+
33
+ class AdSetDeliveryStatus(ModelSimple):
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
+ validations (dict): The key is the tuple path to the attribute
45
+ and the for var_name this is (var_name,). The value is a dict
46
+ that stores validations for max_length, min_length, max_items,
47
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
48
+ inclusive_minimum, and regex.
49
+ additional_properties_type (tuple): A tuple of classes accepted
50
+ as additional properties values.
51
+ """
52
+
53
+ allowed_values = {
54
+ ('value',): {
55
+ 'RUNNING': "Running",
56
+ 'ARCHIVED': "Archived",
57
+ 'NOTRUNNING': "NotRunning",
58
+ },
59
+ }
60
+
61
+ validations = {
62
+ }
63
+
64
+ additional_properties_type = None
65
+
66
+ _nullable = False
67
+
68
+ @cached_property
69
+ def openapi_types():
70
+ """
71
+ This must be a method because a model may have properties that are
72
+ of type self, this must run after the class is loaded
73
+
74
+ Returns
75
+ openapi_types (dict): The key is attribute name
76
+ and the value is attribute type.
77
+ """
78
+ return {
79
+ 'value': (str,),
80
+ }
81
+
82
+ @cached_property
83
+ def discriminator():
84
+ return None
85
+
86
+
87
+ attribute_map = {}
88
+
89
+ read_only_vars = set()
90
+
91
+ _composed_schemas = None
92
+
93
+ required_properties = set([
94
+ '_data_store',
95
+ '_check_type',
96
+ '_spec_property_naming',
97
+ '_path_to_item',
98
+ '_configuration',
99
+ '_visited_composed_classes',
100
+ ])
101
+
102
+ @convert_js_args_to_python_args
103
+ def __init__(self, *args, **kwargs):
104
+ """AdSetDeliveryStatus - a model defined in OpenAPI
105
+
106
+ Note that value can be passed either in args or in kwargs, but not in both.
107
+
108
+ Args:
109
+ args[0] (str): Status of an ad set's delivery., must be one of ["Running", "Archived", "NotRunning", ] # noqa: E501
110
+
111
+ Keyword Args:
112
+ value (str): Status of an ad set's delivery., must be one of ["Running", "Archived", "NotRunning", ] # noqa: E501
113
+ _check_type (bool): if True, values for parameters in openapi_types
114
+ will be type checked and a TypeError will be
115
+ raised if the wrong type is input.
116
+ Defaults to True
117
+ _path_to_item (tuple/list): This is a list of keys or values to
118
+ drill down to the model in received_data
119
+ when deserializing a response
120
+ _spec_property_naming (bool): True if the variable names in the input data
121
+ are serialized names, as specified in the OpenAPI document.
122
+ False if the variable names in the input data
123
+ are pythonic names, e.g. snake case (default)
124
+ _configuration (Configuration): the instance to use when
125
+ deserializing a file_type parameter.
126
+ If passed, type conversion is attempted
127
+ If omitted no type conversion is done.
128
+ _visited_composed_classes (tuple): This stores a tuple of
129
+ classes that we have traveled through so that
130
+ if we see that class again we will not use its
131
+ discriminator again.
132
+ When traveling through a discriminator, the
133
+ composed schema that is
134
+ is traveled through is added to this set.
135
+ For example if Animal has a discriminator
136
+ petType and we pass in "Dog", and the class Dog
137
+ allOf includes Animal, we move through Animal
138
+ once using the discriminator, and pick Dog.
139
+ Then in Dog, we will make an instance of the
140
+ Animal class but this time we won't travel
141
+ through its discriminator because we passed in
142
+ _visited_composed_classes = (Animal,)
143
+ """
144
+ # required up here when default value is not given
145
+ _path_to_item = kwargs.pop('_path_to_item', ())
146
+
147
+ if 'value' in kwargs:
148
+ value = kwargs.pop('value')
149
+ elif args:
150
+ args = list(args)
151
+ value = args.pop(0)
152
+ else:
153
+ raise ApiTypeError(
154
+ "value is required, but not passed in args or kwargs and doesn't have default",
155
+ path_to_item=_path_to_item,
156
+ valid_classes=(self.__class__,),
157
+ )
158
+
159
+ _check_type = kwargs.pop('_check_type', True)
160
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
161
+ _configuration = kwargs.pop('_configuration', None)
162
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
163
+
164
+ if args:
165
+ for arg in args:
166
+ if isinstance(arg, dict):
167
+ kwargs.update(arg)
168
+ else:
169
+ raise ApiTypeError(
170
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
171
+ args,
172
+ self.__class__.__name__,
173
+ ),
174
+ path_to_item=_path_to_item,
175
+ valid_classes=(self.__class__,),
176
+ )
177
+
178
+ self._data_store = {}
179
+ self._check_type = _check_type
180
+ self._spec_property_naming = _spec_property_naming
181
+ self._path_to_item = _path_to_item
182
+ self._configuration = _configuration
183
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
184
+ self.value = value
185
+ if kwargs:
186
+ raise ApiTypeError(
187
+ "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
188
+ kwargs,
189
+ self.__class__.__name__,
190
+ ),
191
+ path_to_item=_path_to_item,
192
+ valid_classes=(self.__class__,),
193
+ )
194
+
195
+ @classmethod
196
+ @convert_js_args_to_python_args
197
+ def _from_openapi_data(cls, *args, **kwargs):
198
+ """AdSetDeliveryStatus - a model defined in OpenAPI
199
+
200
+ Note that value can be passed either in args or in kwargs, but not in both.
201
+
202
+ Args:
203
+ args[0] (str): Status of an ad set's delivery., must be one of ["Running", "Archived", "NotRunning", ] # noqa: E501
204
+
205
+ Keyword Args:
206
+ value (str): Status of an ad set's delivery., must be one of ["Running", "Archived", "NotRunning", ] # noqa: E501
207
+ _check_type (bool): if True, values for parameters in openapi_types
208
+ will be type checked and a TypeError will be
209
+ raised if the wrong type is input.
210
+ Defaults to True
211
+ _path_to_item (tuple/list): This is a list of keys or values to
212
+ drill down to the model in received_data
213
+ when deserializing a response
214
+ _spec_property_naming (bool): True if the variable names in the input data
215
+ are serialized names, as specified in the OpenAPI document.
216
+ False if the variable names in the input data
217
+ are pythonic names, e.g. snake case (default)
218
+ _configuration (Configuration): the instance to use when
219
+ deserializing a file_type parameter.
220
+ If passed, type conversion is attempted
221
+ If omitted no type conversion is done.
222
+ _visited_composed_classes (tuple): This stores a tuple of
223
+ classes that we have traveled through so that
224
+ if we see that class again we will not use its
225
+ discriminator again.
226
+ When traveling through a discriminator, the
227
+ composed schema that is
228
+ is traveled through is added to this set.
229
+ For example if Animal has a discriminator
230
+ petType and we pass in "Dog", and the class Dog
231
+ allOf includes Animal, we move through Animal
232
+ once using the discriminator, and pick Dog.
233
+ Then in Dog, we will make an instance of the
234
+ Animal class but this time we won't travel
235
+ through its discriminator because we passed in
236
+ _visited_composed_classes = (Animal,)
237
+ """
238
+ # required up here when default value is not given
239
+ _path_to_item = kwargs.pop('_path_to_item', ())
240
+
241
+ self = super(OpenApiModel, cls).__new__(cls)
242
+
243
+ if 'value' in kwargs:
244
+ value = kwargs.pop('value')
245
+ elif args:
246
+ args = list(args)
247
+ value = args.pop(0)
248
+ else:
249
+ raise ApiTypeError(
250
+ "value is required, but not passed in args or kwargs and doesn't have default",
251
+ path_to_item=_path_to_item,
252
+ valid_classes=(self.__class__,),
253
+ )
254
+
255
+ _check_type = kwargs.pop('_check_type', True)
256
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
257
+ _configuration = kwargs.pop('_configuration', None)
258
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
259
+
260
+ if args:
261
+ for arg in args:
262
+ if isinstance(arg, dict):
263
+ kwargs.update(arg)
264
+ else:
265
+ raise ApiTypeError(
266
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
267
+ args,
268
+ self.__class__.__name__,
269
+ ),
270
+ path_to_item=_path_to_item,
271
+ valid_classes=(self.__class__,),
272
+ )
273
+
274
+ self._data_store = {}
275
+ self._check_type = _check_type
276
+ self._spec_property_naming = _spec_property_naming
277
+ self._path_to_item = _path_to_item
278
+ self._configuration = _configuration
279
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
280
+ self.value = value
281
+ if kwargs:
282
+ raise ApiTypeError(
283
+ "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % (
284
+ kwargs,
285
+ self.__class__.__name__,
286
+ ),
287
+ path_to_item=_path_to_item,
288
+ valid_classes=(self.__class__,),
289
+ )
290
+
291
+ return self
@@ -0,0 +1,289 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - MarketingSolutions # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2025-07
7
+ Generated by: https://openapi-generator.tech
8
+ """
9
+
10
+
11
+ import re # noqa: F401
12
+ import sys # noqa: F401
13
+
14
+ from criteo_api_marketingsolutions_v2025_07.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_07.exceptions import ApiAttributeError
30
+
31
+
32
+ def lazy_import():
33
+ from criteo_api_marketingsolutions_v2025_07.model.ad_set_delivery_status import AdSetDeliveryStatus
34
+ globals()['AdSetDeliveryStatus'] = AdSetDeliveryStatus
35
+
36
+
37
+ class AdvertiserAdsetMessage(ModelNormal):
38
+ """NOTE: This class is auto generated by OpenAPI Generator.
39
+ Ref: https://openapi-generator.tech
40
+
41
+ Do not edit the class manually.
42
+
43
+ Attributes:
44
+ allowed_values (dict): The key is the tuple path to the attribute
45
+ and the for var_name this is (var_name,). The value is a dict
46
+ with a capitalized key describing the allowed value and an allowed
47
+ value. These dicts store the allowed enum values.
48
+ attribute_map (dict): The key is attribute name
49
+ and the value is json key in definition.
50
+ discriminator_value_class_map (dict): A dict to go from the discriminator
51
+ variable value to the discriminator class name.
52
+ validations (dict): The key is the tuple path to the attribute
53
+ and the for var_name this is (var_name,). The value is a dict
54
+ that stores validations for max_length, min_length, max_items,
55
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
56
+ inclusive_minimum, and regex.
57
+ additional_properties_type (tuple): A tuple of classes accepted
58
+ as additional properties values.
59
+ """
60
+
61
+ allowed_values = {
62
+ }
63
+
64
+ validations = {
65
+ }
66
+
67
+ @cached_property
68
+ def additional_properties_type():
69
+ """
70
+ This must be a method because a model may have properties that are
71
+ of type self, this must run after the class is loaded
72
+ """
73
+ lazy_import()
74
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
+
76
+ _nullable = False
77
+
78
+ @cached_property
79
+ def openapi_types():
80
+ """
81
+ This must be a method because a model may have properties that are
82
+ of type self, this must run after the class is loaded
83
+
84
+ Returns
85
+ openapi_types (dict): The key is attribute name
86
+ and the value is attribute type.
87
+ """
88
+ lazy_import()
89
+ return {
90
+ 'adset_id': (int,), # noqa: E501
91
+ 'adset_name': (str,), # noqa: E501
92
+ 'advertiser_id': (int,), # noqa: E501
93
+ 'is_coa': (bool,), # noqa: E501
94
+ 'partner_id': (int,), # noqa: E501
95
+ 'status': (AdSetDeliveryStatus,), # noqa: E501
96
+ }
97
+
98
+ @cached_property
99
+ def discriminator():
100
+ return None
101
+
102
+
103
+ attribute_map = {
104
+ 'adset_id': 'adsetId', # noqa: E501
105
+ 'adset_name': 'adsetName', # noqa: E501
106
+ 'advertiser_id': 'advertiserId', # noqa: E501
107
+ 'is_coa': 'isCoa', # noqa: E501
108
+ 'partner_id': 'partnerId', # noqa: E501
109
+ 'status': 'status', # noqa: E501
110
+ }
111
+
112
+ read_only_vars = {
113
+ }
114
+
115
+ _composed_schemas = {}
116
+
117
+ @classmethod
118
+ @convert_js_args_to_python_args
119
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
120
+ """AdvertiserAdsetMessage - a model defined in OpenAPI
121
+
122
+ Keyword Args:
123
+ _check_type (bool): if True, values for parameters in openapi_types
124
+ will be type checked and a TypeError will be
125
+ raised if the wrong type is input.
126
+ Defaults to True
127
+ _path_to_item (tuple/list): This is a list of keys or values to
128
+ drill down to the model in received_data
129
+ when deserializing a response
130
+ _spec_property_naming (bool): True if the variable names in the input data
131
+ are serialized names, as specified in the OpenAPI document.
132
+ False if the variable names in the input data
133
+ are pythonic names, e.g. snake case (default)
134
+ _configuration (Configuration): the instance to use when
135
+ deserializing a file_type parameter.
136
+ If passed, type conversion is attempted
137
+ If omitted no type conversion is done.
138
+ _visited_composed_classes (tuple): This stores a tuple of
139
+ classes that we have traveled through so that
140
+ if we see that class again we will not use its
141
+ discriminator again.
142
+ When traveling through a discriminator, the
143
+ composed schema that is
144
+ is traveled through is added to this set.
145
+ For example if Animal has a discriminator
146
+ petType and we pass in "Dog", and the class Dog
147
+ allOf includes Animal, we move through Animal
148
+ once using the discriminator, and pick Dog.
149
+ Then in Dog, we will make an instance of the
150
+ Animal class but this time we won't travel
151
+ through its discriminator because we passed in
152
+ _visited_composed_classes = (Animal,)
153
+ adset_id (int): [optional] # noqa: E501
154
+ adset_name (str): [optional] # noqa: E501
155
+ advertiser_id (int): [optional] # noqa: E501
156
+ is_coa (bool): [optional] # noqa: E501
157
+ partner_id (int): [optional] # noqa: E501
158
+ status (AdSetDeliveryStatus): [optional] # noqa: E501
159
+ """
160
+
161
+ _check_type = kwargs.pop('_check_type', True)
162
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
163
+ _path_to_item = kwargs.pop('_path_to_item', ())
164
+ _configuration = kwargs.pop('_configuration', None)
165
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
166
+
167
+ self = super(OpenApiModel, cls).__new__(cls)
168
+
169
+ if args:
170
+ for arg in args:
171
+ if isinstance(arg, dict):
172
+ kwargs.update(arg)
173
+ else:
174
+ raise ApiTypeError(
175
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
176
+ args,
177
+ self.__class__.__name__,
178
+ ),
179
+ path_to_item=_path_to_item,
180
+ valid_classes=(self.__class__,),
181
+ )
182
+
183
+ self._data_store = {}
184
+ self._check_type = _check_type
185
+ self._spec_property_naming = _spec_property_naming
186
+ self._path_to_item = _path_to_item
187
+ self._configuration = _configuration
188
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
189
+
190
+ for var_name, var_value in kwargs.items():
191
+ if var_name not in self.attribute_map and \
192
+ self._configuration is not None and \
193
+ self._configuration.discard_unknown_keys and \
194
+ self.additional_properties_type is None:
195
+ # discard variable.
196
+ continue
197
+ setattr(self, var_name, var_value)
198
+ return self
199
+
200
+ required_properties = set([
201
+ '_data_store',
202
+ '_check_type',
203
+ '_spec_property_naming',
204
+ '_path_to_item',
205
+ '_configuration',
206
+ '_visited_composed_classes',
207
+ ])
208
+
209
+ @convert_js_args_to_python_args
210
+ def __init__(self, *args, **kwargs): # noqa: E501
211
+ """AdvertiserAdsetMessage - a model defined in OpenAPI
212
+
213
+ Keyword Args:
214
+ _check_type (bool): if True, values for parameters in openapi_types
215
+ will be type checked and a TypeError will be
216
+ raised if the wrong type is input.
217
+ Defaults to True
218
+ _path_to_item (tuple/list): This is a list of keys or values to
219
+ drill down to the model in received_data
220
+ when deserializing a response
221
+ _spec_property_naming (bool): True if the variable names in the input data
222
+ are serialized names, as specified in the OpenAPI document.
223
+ False if the variable names in the input data
224
+ are pythonic names, e.g. snake case (default)
225
+ _configuration (Configuration): the instance to use when
226
+ deserializing a file_type parameter.
227
+ If passed, type conversion is attempted
228
+ If omitted no type conversion is done.
229
+ _visited_composed_classes (tuple): This stores a tuple of
230
+ classes that we have traveled through so that
231
+ if we see that class again we will not use its
232
+ discriminator again.
233
+ When traveling through a discriminator, the
234
+ composed schema that is
235
+ is traveled through is added to this set.
236
+ For example if Animal has a discriminator
237
+ petType and we pass in "Dog", and the class Dog
238
+ allOf includes Animal, we move through Animal
239
+ once using the discriminator, and pick Dog.
240
+ Then in Dog, we will make an instance of the
241
+ Animal class but this time we won't travel
242
+ through its discriminator because we passed in
243
+ _visited_composed_classes = (Animal,)
244
+ adset_id (int): [optional] # noqa: E501
245
+ adset_name (str): [optional] # noqa: E501
246
+ advertiser_id (int): [optional] # noqa: E501
247
+ is_coa (bool): [optional] # noqa: E501
248
+ partner_id (int): [optional] # noqa: E501
249
+ status (AdSetDeliveryStatus): [optional] # noqa: E501
250
+ """
251
+
252
+ _check_type = kwargs.pop('_check_type', True)
253
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
254
+ _path_to_item = kwargs.pop('_path_to_item', ())
255
+ _configuration = kwargs.pop('_configuration', None)
256
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
257
+
258
+ if args:
259
+ for arg in args:
260
+ if isinstance(arg, dict):
261
+ kwargs.update(arg)
262
+ else:
263
+ raise ApiTypeError(
264
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
265
+ args,
266
+ self.__class__.__name__,
267
+ ),
268
+ path_to_item=_path_to_item,
269
+ valid_classes=(self.__class__,),
270
+ )
271
+
272
+ self._data_store = {}
273
+ self._check_type = _check_type
274
+ self._spec_property_naming = _spec_property_naming
275
+ self._path_to_item = _path_to_item
276
+ self._configuration = _configuration
277
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
278
+
279
+ for var_name, var_value in kwargs.items():
280
+ if var_name not in self.attribute_map and \
281
+ self._configuration is not None and \
282
+ self._configuration.discard_unknown_keys and \
283
+ self.additional_properties_type is None:
284
+ # discard variable.
285
+ continue
286
+ setattr(self, var_name, var_value)
287
+ if var_name in self.read_only_vars:
288
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
289
+ f"class with read only attributes.")