criteo-api-marketingsolutions-sdk 2025.7.0.250915__py3-none-any.whl → 2025.7.0.251009__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of criteo-api-marketingsolutions-sdk might be problematic. Click here for more details.

Files changed (31) hide show
  1. {criteo_api_marketingsolutions_sdk-2025.7.0.250915.dist-info → criteo_api_marketingsolutions_sdk-2025.7.0.251009.dist-info}/METADATA +3 -3
  2. {criteo_api_marketingsolutions_sdk-2025.7.0.250915.dist-info → criteo_api_marketingsolutions_sdk-2025.7.0.251009.dist-info}/RECORD +31 -20
  3. criteo_api_marketingsolutions_v2025_07/__init__.py +1 -1
  4. criteo_api_marketingsolutions_v2025_07/api/advertiser_api.py +7 -9
  5. criteo_api_marketingsolutions_v2025_07/api/analytics_api.py +12 -25
  6. criteo_api_marketingsolutions_v2025_07/api/audience_api.py +27 -94
  7. criteo_api_marketingsolutions_v2025_07/api/campaign_api.py +4430 -406
  8. criteo_api_marketingsolutions_v2025_07/api/creative_api.py +22 -63
  9. criteo_api_marketingsolutions_v2025_07/api_client.py +4 -4
  10. criteo_api_marketingsolutions_v2025_07/configuration.py +1 -1
  11. criteo_api_marketingsolutions_v2025_07/model/adaptive_colors.py +1 -1
  12. criteo_api_marketingsolutions_v2025_07/model/adaptive_read_attributes.py +330 -0
  13. criteo_api_marketingsolutions_v2025_07/model/create_seller_budget_mapi_message.py +283 -0
  14. criteo_api_marketingsolutions_v2025_07/model/{outcome.py → create_seller_campaign_message_mapi.py} +18 -19
  15. criteo_api_marketingsolutions_v2025_07/model/creative_read.py +327 -0
  16. criteo_api_marketingsolutions_v2025_07/model/placements_report_query_message.py +12 -8
  17. criteo_api_marketingsolutions_v2025_07/model/{resource_collection_outcome_of_creative.py → resource_collection_outcome_of_creative_read.py} +8 -8
  18. criteo_api_marketingsolutions_v2025_07/model/{error_code_response.py → resource_of_creative_read.py} +19 -23
  19. criteo_api_marketingsolutions_v2025_07/model/seller_base.py +267 -0
  20. criteo_api_marketingsolutions_v2025_07/model/seller_budget_message.py +305 -0
  21. criteo_api_marketingsolutions_v2025_07/model/seller_budget_status_v2.py +291 -0
  22. criteo_api_marketingsolutions_v2025_07/model/seller_campaign_message.py +290 -0
  23. criteo_api_marketingsolutions_v2025_07/model/seller_campaign_suspension_reason.py +294 -0
  24. criteo_api_marketingsolutions_v2025_07/model/seller_campaign_update.py +267 -0
  25. criteo_api_marketingsolutions_v2025_07/model/statistics_report_query_message.py +248 -8
  26. criteo_api_marketingsolutions_v2025_07/model/transactions_report_query_message.py +12 -8
  27. criteo_api_marketingsolutions_v2025_07/model/update_seller_budget_message.py +283 -0
  28. criteo_api_marketingsolutions_v2025_07/model/update_seller_budget_message_base.py +279 -0
  29. criteo_api_marketingsolutions_v2025_07/models/__init__.py +14 -3
  30. {criteo_api_marketingsolutions_sdk-2025.7.0.250915.dist-info → criteo_api_marketingsolutions_sdk-2025.7.0.251009.dist-info}/WHEEL +0 -0
  31. {criteo_api_marketingsolutions_sdk-2025.7.0.250915.dist-info → criteo_api_marketingsolutions_sdk-2025.7.0.251009.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,283 @@
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 CreateSellerBudgetMapiMessage(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
+ 'amount': (str,), # noqa: E501
85
+ 'budget_type': (str,), # noqa: E501
86
+ 'campaign_ids': ([int],), # noqa: E501
87
+ 'end_date': (str,), # noqa: E501
88
+ 'seller_id': (str,), # noqa: E501
89
+ 'start_date': (datetime,), # noqa: E501
90
+ }
91
+
92
+ @cached_property
93
+ def discriminator():
94
+ return None
95
+
96
+
97
+ attribute_map = {
98
+ 'amount': 'amount', # noqa: E501
99
+ 'budget_type': 'budgetType', # noqa: E501
100
+ 'campaign_ids': 'campaignIds', # noqa: E501
101
+ 'end_date': 'endDate', # noqa: E501
102
+ 'seller_id': 'sellerId', # noqa: E501
103
+ 'start_date': 'startDate', # noqa: E501
104
+ }
105
+
106
+ read_only_vars = {
107
+ }
108
+
109
+ _composed_schemas = {}
110
+
111
+ @classmethod
112
+ @convert_js_args_to_python_args
113
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
114
+ """CreateSellerBudgetMapiMessage - a model defined in OpenAPI
115
+
116
+ Keyword Args:
117
+ _check_type (bool): if True, values for parameters in openapi_types
118
+ will be type checked and a TypeError will be
119
+ raised if the wrong type is input.
120
+ Defaults to True
121
+ _path_to_item (tuple/list): This is a list of keys or values to
122
+ drill down to the model in received_data
123
+ when deserializing a response
124
+ _spec_property_naming (bool): True if the variable names in the input data
125
+ are serialized names, as specified in the OpenAPI document.
126
+ False if the variable names in the input data
127
+ are pythonic names, e.g. snake case (default)
128
+ _configuration (Configuration): the instance to use when
129
+ deserializing a file_type parameter.
130
+ If passed, type conversion is attempted
131
+ If omitted no type conversion is done.
132
+ _visited_composed_classes (tuple): This stores a tuple of
133
+ classes that we have traveled through so that
134
+ if we see that class again we will not use its
135
+ discriminator again.
136
+ When traveling through a discriminator, the
137
+ composed schema that is
138
+ is traveled through is added to this set.
139
+ For example if Animal has a discriminator
140
+ petType and we pass in "Dog", and the class Dog
141
+ allOf includes Animal, we move through Animal
142
+ once using the discriminator, and pick Dog.
143
+ Then in Dog, we will make an instance of the
144
+ Animal class but this time we won't travel
145
+ through its discriminator because we passed in
146
+ _visited_composed_classes = (Animal,)
147
+ amount (str): [optional] # noqa: E501
148
+ budget_type (str): [optional] # noqa: E501
149
+ campaign_ids ([int]): [optional] # noqa: E501
150
+ end_date (str): [optional] # noqa: E501
151
+ seller_id (str): [optional] # noqa: E501
152
+ start_date (datetime): [optional] # noqa: E501
153
+ """
154
+
155
+ _check_type = kwargs.pop('_check_type', True)
156
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
157
+ _path_to_item = kwargs.pop('_path_to_item', ())
158
+ _configuration = kwargs.pop('_configuration', None)
159
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
160
+
161
+ self = super(OpenApiModel, cls).__new__(cls)
162
+
163
+ if args:
164
+ for arg in args:
165
+ if isinstance(arg, dict):
166
+ kwargs.update(arg)
167
+ else:
168
+ raise ApiTypeError(
169
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
170
+ args,
171
+ self.__class__.__name__,
172
+ ),
173
+ path_to_item=_path_to_item,
174
+ valid_classes=(self.__class__,),
175
+ )
176
+
177
+ self._data_store = {}
178
+ self._check_type = _check_type
179
+ self._spec_property_naming = _spec_property_naming
180
+ self._path_to_item = _path_to_item
181
+ self._configuration = _configuration
182
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
183
+
184
+ for var_name, var_value in kwargs.items():
185
+ if var_name not in self.attribute_map and \
186
+ self._configuration is not None and \
187
+ self._configuration.discard_unknown_keys and \
188
+ self.additional_properties_type is None:
189
+ # discard variable.
190
+ continue
191
+ setattr(self, var_name, var_value)
192
+ return self
193
+
194
+ required_properties = set([
195
+ '_data_store',
196
+ '_check_type',
197
+ '_spec_property_naming',
198
+ '_path_to_item',
199
+ '_configuration',
200
+ '_visited_composed_classes',
201
+ ])
202
+
203
+ @convert_js_args_to_python_args
204
+ def __init__(self, *args, **kwargs): # noqa: E501
205
+ """CreateSellerBudgetMapiMessage - a model defined in OpenAPI
206
+
207
+ Keyword Args:
208
+ _check_type (bool): if True, values for parameters in openapi_types
209
+ will be type checked and a TypeError will be
210
+ raised if the wrong type is input.
211
+ Defaults to True
212
+ _path_to_item (tuple/list): This is a list of keys or values to
213
+ drill down to the model in received_data
214
+ when deserializing a response
215
+ _spec_property_naming (bool): True if the variable names in the input data
216
+ are serialized names, as specified in the OpenAPI document.
217
+ False if the variable names in the input data
218
+ are pythonic names, e.g. snake case (default)
219
+ _configuration (Configuration): the instance to use when
220
+ deserializing a file_type parameter.
221
+ If passed, type conversion is attempted
222
+ If omitted no type conversion is done.
223
+ _visited_composed_classes (tuple): This stores a tuple of
224
+ classes that we have traveled through so that
225
+ if we see that class again we will not use its
226
+ discriminator again.
227
+ When traveling through a discriminator, the
228
+ composed schema that is
229
+ is traveled through is added to this set.
230
+ For example if Animal has a discriminator
231
+ petType and we pass in "Dog", and the class Dog
232
+ allOf includes Animal, we move through Animal
233
+ once using the discriminator, and pick Dog.
234
+ Then in Dog, we will make an instance of the
235
+ Animal class but this time we won't travel
236
+ through its discriminator because we passed in
237
+ _visited_composed_classes = (Animal,)
238
+ amount (str): [optional] # noqa: E501
239
+ budget_type (str): [optional] # noqa: E501
240
+ campaign_ids ([int]): [optional] # noqa: E501
241
+ end_date (str): [optional] # noqa: E501
242
+ seller_id (str): [optional] # noqa: E501
243
+ start_date (datetime): [optional] # noqa: E501
244
+ """
245
+
246
+ _check_type = kwargs.pop('_check_type', True)
247
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
248
+ _path_to_item = kwargs.pop('_path_to_item', ())
249
+ _configuration = kwargs.pop('_configuration', None)
250
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
251
+
252
+ if args:
253
+ for arg in args:
254
+ if isinstance(arg, dict):
255
+ kwargs.update(arg)
256
+ else:
257
+ raise ApiTypeError(
258
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
259
+ args,
260
+ self.__class__.__name__,
261
+ ),
262
+ path_to_item=_path_to_item,
263
+ valid_classes=(self.__class__,),
264
+ )
265
+
266
+ self._data_store = {}
267
+ self._check_type = _check_type
268
+ self._spec_property_naming = _spec_property_naming
269
+ self._path_to_item = _path_to_item
270
+ self._configuration = _configuration
271
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
272
+
273
+ for var_name, var_value in kwargs.items():
274
+ if var_name not in self.attribute_map and \
275
+ self._configuration is not None and \
276
+ self._configuration.discard_unknown_keys and \
277
+ self.additional_properties_type is None:
278
+ # discard variable.
279
+ continue
280
+ setattr(self, var_name, var_value)
281
+ if var_name in self.read_only_vars:
282
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
283
+ f"class with read only attributes.")
@@ -29,12 +29,8 @@ from criteo_api_marketingsolutions_v2025_07.model_utils import ( # noqa: F401
29
29
  from criteo_api_marketingsolutions_v2025_07.exceptions import ApiAttributeError
30
30
 
31
31
 
32
- def lazy_import():
33
- from criteo_api_marketingsolutions_v2025_07.model.common_problem import CommonProblem
34
- globals()['CommonProblem'] = CommonProblem
35
32
 
36
-
37
- class Outcome(ModelNormal):
33
+ class CreateSellerCampaignMessageMapi(ModelNormal):
38
34
  """NOTE: This class is auto generated by OpenAPI Generator.
39
35
  Ref: https://openapi-generator.tech
40
36
 
@@ -64,7 +60,13 @@ class Outcome(ModelNormal):
64
60
  validations = {
65
61
  }
66
62
 
67
- additional_properties_type = None
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
68
70
 
69
71
  _nullable = False
70
72
 
@@ -78,10 +80,9 @@ class Outcome(ModelNormal):
78
80
  openapi_types (dict): The key is attribute name
79
81
  and the value is attribute type.
80
82
  """
81
- lazy_import()
82
83
  return {
83
- 'errors': ([CommonProblem], none_type,), # noqa: E501
84
- 'warnings': ([CommonProblem], none_type,), # noqa: E501
84
+ 'bid': (float,), # noqa: E501
85
+ 'campaign_id': (int,), # noqa: E501
85
86
  }
86
87
 
87
88
  @cached_property
@@ -90,13 +91,11 @@ class Outcome(ModelNormal):
90
91
 
91
92
 
92
93
  attribute_map = {
93
- 'errors': 'errors', # noqa: E501
94
- 'warnings': 'warnings', # noqa: E501
94
+ 'bid': 'bid', # noqa: E501
95
+ 'campaign_id': 'campaignId', # noqa: E501
95
96
  }
96
97
 
97
98
  read_only_vars = {
98
- 'errors', # noqa: E501
99
- 'warnings', # noqa: E501
100
99
  }
101
100
 
102
101
  _composed_schemas = {}
@@ -104,7 +103,7 @@ class Outcome(ModelNormal):
104
103
  @classmethod
105
104
  @convert_js_args_to_python_args
106
105
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
107
- """Outcome - a model defined in OpenAPI
106
+ """CreateSellerCampaignMessageMapi - a model defined in OpenAPI
108
107
 
109
108
  Keyword Args:
110
109
  _check_type (bool): if True, values for parameters in openapi_types
@@ -137,8 +136,8 @@ class Outcome(ModelNormal):
137
136
  Animal class but this time we won't travel
138
137
  through its discriminator because we passed in
139
138
  _visited_composed_classes = (Animal,)
140
- errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
141
- warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
139
+ bid (float): [optional] # noqa: E501
140
+ campaign_id (int): [optional] # noqa: E501
142
141
  """
143
142
 
144
143
  _check_type = kwargs.pop('_check_type', True)
@@ -191,7 +190,7 @@ class Outcome(ModelNormal):
191
190
 
192
191
  @convert_js_args_to_python_args
193
192
  def __init__(self, *args, **kwargs): # noqa: E501
194
- """Outcome - a model defined in OpenAPI
193
+ """CreateSellerCampaignMessageMapi - a model defined in OpenAPI
195
194
 
196
195
  Keyword Args:
197
196
  _check_type (bool): if True, values for parameters in openapi_types
@@ -224,8 +223,8 @@ class Outcome(ModelNormal):
224
223
  Animal class but this time we won't travel
225
224
  through its discriminator because we passed in
226
225
  _visited_composed_classes = (Animal,)
227
- errors ([CommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
228
- warnings ([CommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
226
+ bid (float): [optional] # noqa: E501
227
+ campaign_id (int): [optional] # noqa: E501
229
228
  """
230
229
 
231
230
  _check_type = kwargs.pop('_check_type', True)