criteo-api-marketingsolutions-sdk 2025.1.0.250211__py3-none-any.whl → 2025.1.0.250218__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: criteo-api-marketingsolutions-sdk
3
- Version: 2025.1.0.250211
3
+ Version: 2025.1.0.250218
4
4
  Summary: Criteo API SDK
5
5
  Home-page: https://github.com/criteo/criteo-api-python-sdk
6
6
  Author: Criteo
@@ -35,9 +35,9 @@ IMPORTANT: This Python package links to Criteo production environment. Any test
35
35
 
36
36
 
37
37
  ```sh
38
- pip install criteo-api-marketingsolutions-sdk==2025.01.0.250211
38
+ pip install criteo-api-marketingsolutions-sdk==2025.01.0.250218
39
39
  ```
40
- (you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2025.01.0.250211`)
40
+ (you may need to run `pip` with root permission: `sudo pip install criteo-api-marketingsolutions-sdk==2025.01.0.250218`)
41
41
 
42
42
  Then import the package:
43
43
  ```python
@@ -1,7 +1,7 @@
1
- criteo_api_marketingsolutions_v2025_01/__init__.py,sha256=gEXK_BRqSXwFnyojarLwxo1i-tyYwiFFZIFRxPMimEE,1124
2
- criteo_api_marketingsolutions_v2025_01/api_client.py,sha256=od8HQnkSuQY-vPPkzKdpuLhXpLymHrNdXS0ZvBHQVck,39256
1
+ criteo_api_marketingsolutions_v2025_01/__init__.py,sha256=yDN6KTiznq-Jf8CxKOfONPW1IzQ1GXO1JUNFTyUxzME,1124
2
+ criteo_api_marketingsolutions_v2025_01/api_client.py,sha256=Fxnzj0zSIPtUljGu957CA8NdV22qI41U1HBQEZin3mQ,39256
3
3
  criteo_api_marketingsolutions_v2025_01/api_client_builder.py,sha256=Tz48vgmfTNqm9N-IkpxmDQOwu0pXRUXE1XEQ0c4bQ0g,1528
4
- criteo_api_marketingsolutions_v2025_01/configuration.py,sha256=7urHuS8XB3DVb7f8YsLr448l0p7jF748-u8y36bgSns,16743
4
+ criteo_api_marketingsolutions_v2025_01/configuration.py,sha256=nOgzYYsCtuBS8-gYcGBMJjYfhp_PkJiMCGnIrizm1wE,16743
5
5
  criteo_api_marketingsolutions_v2025_01/criteo_api_client.py,sha256=srUFQ_Ohbfg75eVubYIcbeh1CUbInysoBGFnqESWFEw,668
6
6
  criteo_api_marketingsolutions_v2025_01/criteo_auth.py,sha256=mKJdwMH5ET6grYsYLtuORJ06n4SOM591BDaZOTCpdSo,4717
7
7
  criteo_api_marketingsolutions_v2025_01/criteo_rest.py,sha256=yj3q56KIYYfx9yy4HAkzED1h-H_5jjNbi5KOieEN4Lo,3434
@@ -107,10 +107,12 @@ criteo_api_marketingsolutions_v2025_01/model/audience_update_entity_v1_resource.
107
107
  criteo_api_marketingsolutions_v2025_01/model/audience_warning.py,sha256=np-OhkVRULcimQM7RVcyteDZR9IhTKKpFB3XHCOkR1s,14967
108
108
  criteo_api_marketingsolutions_v2025_01/model/basic_audience_definition.py,sha256=cjE9d_ccMLl06a0dnyVB0QVq4btcTzKFk5ikTKwF0Ew,12263
109
109
  criteo_api_marketingsolutions_v2025_01/model/behavioral_v1.py,sha256=UpRy2AFRXVlgg9ZfDEFKCVe-zEMlV9EwD3aqXEYYOws,12710
110
+ criteo_api_marketingsolutions_v2025_01/model/campaign_budget_automation_v23_q1.py,sha256=V-JuvylD-GbSR9NhyEO5dGdvmLgItzv_ZnaoOHBS3LI,12355
111
+ criteo_api_marketingsolutions_v2025_01/model/campaign_budget_automation_v23_q1_automated_budget_configuration.py,sha256=JuSuGC3Yv1NpnAqAePYip0zetaj12rZGWmt7AYuHVhY,12190
110
112
  criteo_api_marketingsolutions_v2025_01/model/campaign_search_filters_v23_q1.py,sha256=Ct59lneZCyWSzNAarkr9ij5GV1D4eebm2WVYUtnEF4Y,11788
111
113
  criteo_api_marketingsolutions_v2025_01/model/campaign_search_request_v23_q1.py,sha256=caUr_dWkv7_PfmDvgs4TVoHiSbH0w2_Jov4Fb0U8yoY,11784
112
114
  criteo_api_marketingsolutions_v2025_01/model/campaign_spend_limit_v23_q1.py,sha256=BGjimKD0oB_aUYD7jA0fpC9YzZ-pRy2TWipp0-oMuvY,12650
113
- criteo_api_marketingsolutions_v2025_01/model/campaign_v23_q1.py,sha256=SHSKoOBd6i1rTMeylKuBiN3T27GoxVxWMoSLY_ElKhw,12897
115
+ criteo_api_marketingsolutions_v2025_01/model/campaign_v23_q1.py,sha256=kqgDeryn28qxGm8cxYwvlZcyneQ28Sp-uL8Zlr2bDws,13421
114
116
  criteo_api_marketingsolutions_v2025_01/model/campaign_v23_q1_list_response.py,sha256=Ke5qqvl6_NsLHq-CGNm7TEs8OjhCr3WYhmAJpUkV2g8,12496
115
117
  criteo_api_marketingsolutions_v2025_01/model/campaign_v23_q1_resource.py,sha256=7Am2dOEQtEkhWTJq8sTIMbSabT01CD4LshQwjpyz734,12209
116
118
  criteo_api_marketingsolutions_v2025_01/model/campaign_v23_q1_response.py,sha256=7mqWglg1cG-UBk7Ax7XjDXVP_xqfmCtSmHaB0opFccs,12445
@@ -131,7 +133,7 @@ criteo_api_marketingsolutions_v2025_01/model/create_ad_set_budget_v24_q1.py,sha2
131
133
  criteo_api_marketingsolutions_v2025_01/model/create_ad_set_geo_location_v24_q1.py,sha256=OfHISTR6oCrm7I0LVSmFziyRSqQ4Dz45rzEnxE5O8OE,12317
132
134
  criteo_api_marketingsolutions_v2025_01/model/create_ad_set_schedule_v24_q1.py,sha256=szzo_JPICGhVL41YdjJ8DyT8fnQzzYO2JJoany7tNd4,11805
133
135
  criteo_api_marketingsolutions_v2025_01/model/create_ad_set_targeting_v24_q1.py,sha256=GiyiUYwBGCWoEfv3YOHFRjhtF0gTnWZ8V_QpgecL2k4,12978
134
- criteo_api_marketingsolutions_v2025_01/model/create_ad_set_v24_q1.py,sha256=dmRpgbyfsJlUFGcRjqgwKxRFC8KLC84OulpXGZfQLlY,15770
136
+ criteo_api_marketingsolutions_v2025_01/model/create_ad_set_v24_q1.py,sha256=o3bvpZE3UMBP24bm9FDgZ6LUbwoh_ZKXfl12A-ZUBYI,15746
135
137
  criteo_api_marketingsolutions_v2025_01/model/create_ad_set_v24_q1_request.py,sha256=eZxp-AYFWuSo2vU4wwAwmcLCeTgZMBk04c1XwqG6en0,11747
136
138
  criteo_api_marketingsolutions_v2025_01/model/create_ad_set_v24_q1_resource.py,sha256=Tuoi_T90r61WgDXUGJdde24kgUtQ5Eyb5_1UF8aTN88,12004
137
139
  criteo_api_marketingsolutions_v2025_01/model/create_campaign.py,sha256=u7yoshZb2T2-6ddAC0m98WOQjCegWk3Q6-H34F8JV3o,12908
@@ -262,8 +264,8 @@ criteo_api_marketingsolutions_v2025_01/model/update_coupon.py,sha256=rKbrkn78QnL
262
264
  criteo_api_marketingsolutions_v2025_01/model/video_detail.py,sha256=x7EvFsHHCqIAi4a4Lw7hwDjcH4Ti1pVL20Wo2qz6ie0,12438
263
265
  criteo_api_marketingsolutions_v2025_01/model/write_model_ad_set_id.py,sha256=cRFt8A1wmvmWcpfELXxBqWwjI7nhKktgiKrX190f4UI,11757
264
266
  criteo_api_marketingsolutions_v2025_01/model/write_model_patch_ad_set_v24_q1.py,sha256=YxODxkaWGRp7HhYLd_L107G-G3T9tf4SbwT9wShDLsY,12237
265
- criteo_api_marketingsolutions_v2025_01/models/__init__.py,sha256=UOOmSqNVIa5XC9yn3RBUjDtzwlC_a-LXvbIjRC839v4,27676
266
- criteo_api_marketingsolutions_sdk-2025.1.0.250211.dist-info/METADATA,sha256=asDjhGc5dCzazA5o1i1eOqMplMoi65wzfEDq_Y_vx90,1894
267
- criteo_api_marketingsolutions_sdk-2025.1.0.250211.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
268
- criteo_api_marketingsolutions_sdk-2025.1.0.250211.dist-info/top_level.txt,sha256=gdJP9ReKWFDDEB_vheoku6RfnMisBzJk22J0eWDohNU,39
269
- criteo_api_marketingsolutions_sdk-2025.1.0.250211.dist-info/RECORD,,
267
+ criteo_api_marketingsolutions_v2025_01/models/__init__.py,sha256=sssTedEwzIqW909QL1zwsjxBbEBqIloI9CY3EC-t8rQ,27977
268
+ criteo_api_marketingsolutions_sdk-2025.1.0.250218.dist-info/METADATA,sha256=0CH5YK2dR6bL9L_2LhNZx9NDWV3JAh0QOQtlvha_nAg,1894
269
+ criteo_api_marketingsolutions_sdk-2025.1.0.250218.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
270
+ criteo_api_marketingsolutions_sdk-2025.1.0.250218.dist-info/top_level.txt,sha256=gdJP9ReKWFDDEB_vheoku6RfnMisBzJk22J0eWDohNU,39
271
+ criteo_api_marketingsolutions_sdk-2025.1.0.250218.dist-info/RECORD,,
@@ -8,7 +8,7 @@
8
8
  """
9
9
 
10
10
 
11
- __version__ = "2025.01.0.250211"
11
+ __version__ = "2025.01.0.250218"
12
12
 
13
13
  # import ApiClient
14
14
  from criteo_api_marketingsolutions_v2025_01.api_client import ApiClient
@@ -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.01.0.250211/python'
79
+ self.user_agent = 'OpenAPI-Generator/2025.01.0.250218/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-01\n"\
398
- "SDK Package Version: 2025.01.0.250211".\
398
+ "SDK Package Version: 2025.01.0.250218".\
399
399
  format(env=sys.platform, pyversion=sys.version)
400
400
 
401
401
  def get_host_settings(self):
@@ -0,0 +1,273 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - MarketingSolutions # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2025-01
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_01.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_01.exceptions import ApiAttributeError
30
+
31
+
32
+ def lazy_import():
33
+ from criteo_api_marketingsolutions_v2025_01.model.campaign_budget_automation_v23_q1_automated_budget_configuration import CampaignBudgetAutomationV23Q1AutomatedBudgetConfiguration
34
+ globals()['CampaignBudgetAutomationV23Q1AutomatedBudgetConfiguration'] = CampaignBudgetAutomationV23Q1AutomatedBudgetConfiguration
35
+
36
+
37
+ class CampaignBudgetAutomationV23Q1(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
+ 'enabled': (bool, none_type,), # noqa: E501
91
+ 'automated_budget_configuration': (CampaignBudgetAutomationV23Q1AutomatedBudgetConfiguration,), # noqa: E501
92
+ }
93
+
94
+ @cached_property
95
+ def discriminator():
96
+ return None
97
+
98
+
99
+ attribute_map = {
100
+ 'enabled': 'enabled', # noqa: E501
101
+ 'automated_budget_configuration': 'automatedBudgetConfiguration', # 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
+ """CampaignBudgetAutomationV23Q1 - 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
+ enabled (bool, none_type): [optional] # noqa: E501
146
+ automated_budget_configuration (CampaignBudgetAutomationV23Q1AutomatedBudgetConfiguration): [optional] # noqa: E501
147
+ """
148
+
149
+ _check_type = kwargs.pop('_check_type', True)
150
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
151
+ _path_to_item = kwargs.pop('_path_to_item', ())
152
+ _configuration = kwargs.pop('_configuration', None)
153
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
154
+
155
+ self = super(OpenApiModel, cls).__new__(cls)
156
+
157
+ if args:
158
+ for arg in args:
159
+ if isinstance(arg, dict):
160
+ kwargs.update(arg)
161
+ else:
162
+ raise ApiTypeError(
163
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
164
+ args,
165
+ self.__class__.__name__,
166
+ ),
167
+ path_to_item=_path_to_item,
168
+ valid_classes=(self.__class__,),
169
+ )
170
+
171
+ self._data_store = {}
172
+ self._check_type = _check_type
173
+ self._spec_property_naming = _spec_property_naming
174
+ self._path_to_item = _path_to_item
175
+ self._configuration = _configuration
176
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
177
+
178
+ for var_name, var_value in kwargs.items():
179
+ if var_name not in self.attribute_map and \
180
+ self._configuration is not None and \
181
+ self._configuration.discard_unknown_keys and \
182
+ self.additional_properties_type is None:
183
+ # discard variable.
184
+ continue
185
+ setattr(self, var_name, var_value)
186
+ return self
187
+
188
+ required_properties = set([
189
+ '_data_store',
190
+ '_check_type',
191
+ '_spec_property_naming',
192
+ '_path_to_item',
193
+ '_configuration',
194
+ '_visited_composed_classes',
195
+ ])
196
+
197
+ @convert_js_args_to_python_args
198
+ def __init__(self, *args, **kwargs): # noqa: E501
199
+ """CampaignBudgetAutomationV23Q1 - a model defined in OpenAPI
200
+
201
+ Keyword Args:
202
+ _check_type (bool): if True, values for parameters in openapi_types
203
+ will be type checked and a TypeError will be
204
+ raised if the wrong type is input.
205
+ Defaults to True
206
+ _path_to_item (tuple/list): This is a list of keys or values to
207
+ drill down to the model in received_data
208
+ when deserializing a response
209
+ _spec_property_naming (bool): True if the variable names in the input data
210
+ are serialized names, as specified in the OpenAPI document.
211
+ False if the variable names in the input data
212
+ are pythonic names, e.g. snake case (default)
213
+ _configuration (Configuration): the instance to use when
214
+ deserializing a file_type parameter.
215
+ If passed, type conversion is attempted
216
+ If omitted no type conversion is done.
217
+ _visited_composed_classes (tuple): This stores a tuple of
218
+ classes that we have traveled through so that
219
+ if we see that class again we will not use its
220
+ discriminator again.
221
+ When traveling through a discriminator, the
222
+ composed schema that is
223
+ is traveled through is added to this set.
224
+ For example if Animal has a discriminator
225
+ petType and we pass in "Dog", and the class Dog
226
+ allOf includes Animal, we move through Animal
227
+ once using the discriminator, and pick Dog.
228
+ Then in Dog, we will make an instance of the
229
+ Animal class but this time we won't travel
230
+ through its discriminator because we passed in
231
+ _visited_composed_classes = (Animal,)
232
+ enabled (bool, none_type): [optional] # noqa: E501
233
+ automated_budget_configuration (CampaignBudgetAutomationV23Q1AutomatedBudgetConfiguration): [optional] # noqa: E501
234
+ """
235
+
236
+ _check_type = kwargs.pop('_check_type', True)
237
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
238
+ _path_to_item = kwargs.pop('_path_to_item', ())
239
+ _configuration = kwargs.pop('_configuration', None)
240
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
241
+
242
+ if args:
243
+ for arg in args:
244
+ if isinstance(arg, dict):
245
+ kwargs.update(arg)
246
+ else:
247
+ raise ApiTypeError(
248
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
249
+ args,
250
+ self.__class__.__name__,
251
+ ),
252
+ path_to_item=_path_to_item,
253
+ valid_classes=(self.__class__,),
254
+ )
255
+
256
+ self._data_store = {}
257
+ self._check_type = _check_type
258
+ self._spec_property_naming = _spec_property_naming
259
+ self._path_to_item = _path_to_item
260
+ self._configuration = _configuration
261
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
262
+
263
+ for var_name, var_value in kwargs.items():
264
+ if var_name not in self.attribute_map and \
265
+ self._configuration is not None and \
266
+ self._configuration.discard_unknown_keys and \
267
+ self.additional_properties_type is None:
268
+ # discard variable.
269
+ continue
270
+ setattr(self, var_name, var_value)
271
+ if var_name in self.read_only_vars:
272
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
273
+ f"class with read only attributes.")
@@ -0,0 +1,277 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - MarketingSolutions # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2025-01
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_01.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_01.exceptions import ApiAttributeError
30
+
31
+
32
+
33
+ class CampaignBudgetAutomationV23Q1AutomatedBudgetConfiguration(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
+ ('ad_set_optimization_objective',): {
59
+ 'None': None,
60
+ 'CUSTOMACTION': "customAction",
61
+ 'CLICKS': "clicks",
62
+ 'CONVERSIONS': "conversions",
63
+ 'DISPLAYS': "displays",
64
+ 'APPPROMOTION': "appPromotion",
65
+ 'REVENUE': "revenue",
66
+ 'STORECONVERSIONS': "storeConversions",
67
+ 'VALUE': "value",
68
+ 'REACH': "reach",
69
+ 'VISITS': "visits",
70
+ 'VIDEOVIEWS': "videoViews",
71
+ },
72
+ }
73
+
74
+ validations = {
75
+ }
76
+
77
+ @cached_property
78
+ def additional_properties_type():
79
+ """
80
+ This must be a method because a model may have properties that are
81
+ of type self, this must run after the class is loaded
82
+ """
83
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
84
+
85
+ _nullable = True
86
+
87
+ @cached_property
88
+ def openapi_types():
89
+ """
90
+ This must be a method because a model may have properties that are
91
+ of type self, this must run after the class is loaded
92
+
93
+ Returns
94
+ openapi_types (dict): The key is attribute name
95
+ and the value is attribute type.
96
+ """
97
+ return {
98
+ 'ad_set_optimization_objective': (str, none_type,), # noqa: E501
99
+ }
100
+
101
+ @cached_property
102
+ def discriminator():
103
+ return None
104
+
105
+
106
+ attribute_map = {
107
+ 'ad_set_optimization_objective': 'adSetOptimizationObjective', # noqa: E501
108
+ }
109
+
110
+ read_only_vars = {
111
+ }
112
+
113
+ _composed_schemas = {}
114
+
115
+ @classmethod
116
+ @convert_js_args_to_python_args
117
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118
+ """CampaignBudgetAutomationV23Q1AutomatedBudgetConfiguration - a model defined in OpenAPI
119
+
120
+ Keyword Args:
121
+ _check_type (bool): if True, values for parameters in openapi_types
122
+ will be type checked and a TypeError will be
123
+ raised if the wrong type is input.
124
+ Defaults to True
125
+ _path_to_item (tuple/list): This is a list of keys or values to
126
+ drill down to the model in received_data
127
+ when deserializing a response
128
+ _spec_property_naming (bool): True if the variable names in the input data
129
+ are serialized names, as specified in the OpenAPI document.
130
+ False if the variable names in the input data
131
+ are pythonic names, e.g. snake case (default)
132
+ _configuration (Configuration): the instance to use when
133
+ deserializing a file_type parameter.
134
+ If passed, type conversion is attempted
135
+ If omitted no type conversion is done.
136
+ _visited_composed_classes (tuple): This stores a tuple of
137
+ classes that we have traveled through so that
138
+ if we see that class again we will not use its
139
+ discriminator again.
140
+ When traveling through a discriminator, the
141
+ composed schema that is
142
+ is traveled through is added to this set.
143
+ For example if Animal has a discriminator
144
+ petType and we pass in "Dog", and the class Dog
145
+ allOf includes Animal, we move through Animal
146
+ once using the discriminator, and pick Dog.
147
+ Then in Dog, we will make an instance of the
148
+ Animal class but this time we won't travel
149
+ through its discriminator because we passed in
150
+ _visited_composed_classes = (Animal,)
151
+ ad_set_optimization_objective (str, none_type): [optional] # noqa: E501
152
+ """
153
+
154
+ _check_type = kwargs.pop('_check_type', True)
155
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
156
+ _path_to_item = kwargs.pop('_path_to_item', ())
157
+ _configuration = kwargs.pop('_configuration', None)
158
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
159
+
160
+ self = super(OpenApiModel, cls).__new__(cls)
161
+
162
+ if args:
163
+ for arg in args:
164
+ if isinstance(arg, dict):
165
+ kwargs.update(arg)
166
+ else:
167
+ raise ApiTypeError(
168
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
169
+ args,
170
+ self.__class__.__name__,
171
+ ),
172
+ path_to_item=_path_to_item,
173
+ valid_classes=(self.__class__,),
174
+ )
175
+
176
+ self._data_store = {}
177
+ self._check_type = _check_type
178
+ self._spec_property_naming = _spec_property_naming
179
+ self._path_to_item = _path_to_item
180
+ self._configuration = _configuration
181
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
182
+
183
+ for var_name, var_value in kwargs.items():
184
+ if var_name not in self.attribute_map and \
185
+ self._configuration is not None and \
186
+ self._configuration.discard_unknown_keys and \
187
+ self.additional_properties_type is None:
188
+ # discard variable.
189
+ continue
190
+ setattr(self, var_name, var_value)
191
+ return self
192
+
193
+ required_properties = set([
194
+ '_data_store',
195
+ '_check_type',
196
+ '_spec_property_naming',
197
+ '_path_to_item',
198
+ '_configuration',
199
+ '_visited_composed_classes',
200
+ ])
201
+
202
+ @convert_js_args_to_python_args
203
+ def __init__(self, *args, **kwargs): # noqa: E501
204
+ """CampaignBudgetAutomationV23Q1AutomatedBudgetConfiguration - a model defined in OpenAPI
205
+
206
+ Keyword Args:
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
+ ad_set_optimization_objective (str, none_type): [optional] # noqa: E501
238
+ """
239
+
240
+ _check_type = kwargs.pop('_check_type', True)
241
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
242
+ _path_to_item = kwargs.pop('_path_to_item', ())
243
+ _configuration = kwargs.pop('_configuration', None)
244
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
245
+
246
+ if args:
247
+ for arg in args:
248
+ if isinstance(arg, dict):
249
+ kwargs.update(arg)
250
+ else:
251
+ raise ApiTypeError(
252
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
253
+ args,
254
+ self.__class__.__name__,
255
+ ),
256
+ path_to_item=_path_to_item,
257
+ valid_classes=(self.__class__,),
258
+ )
259
+
260
+ self._data_store = {}
261
+ self._check_type = _check_type
262
+ self._spec_property_naming = _spec_property_naming
263
+ self._path_to_item = _path_to_item
264
+ self._configuration = _configuration
265
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
266
+
267
+ for var_name, var_value in kwargs.items():
268
+ if var_name not in self.attribute_map and \
269
+ self._configuration is not None and \
270
+ self._configuration.discard_unknown_keys and \
271
+ self.additional_properties_type is None:
272
+ # discard variable.
273
+ continue
274
+ setattr(self, var_name, var_value)
275
+ if var_name in self.read_only_vars:
276
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
277
+ f"class with read only attributes.")
@@ -30,7 +30,9 @@ from criteo_api_marketingsolutions_v2025_01.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
+ from criteo_api_marketingsolutions_v2025_01.model.campaign_budget_automation_v23_q1 import CampaignBudgetAutomationV23Q1
33
34
  from criteo_api_marketingsolutions_v2025_01.model.campaign_spend_limit_v23_q1 import CampaignSpendLimitV23Q1
35
+ globals()['CampaignBudgetAutomationV23Q1'] = CampaignBudgetAutomationV23Q1
34
36
  globals()['CampaignSpendLimitV23Q1'] = CampaignSpendLimitV23Q1
35
37
 
36
38
 
@@ -97,6 +99,7 @@ class CampaignV23Q1(ModelNormal):
97
99
  'advertiser_id': (str, none_type,), # noqa: E501
98
100
  'spend_limit': (CampaignSpendLimitV23Q1,), # noqa: E501
99
101
  'goal': (str, none_type,), # noqa: E501
102
+ 'budget_automation': (CampaignBudgetAutomationV23Q1,), # noqa: E501
100
103
  'id': (str, none_type,), # noqa: E501
101
104
  }
102
105
 
@@ -110,6 +113,7 @@ class CampaignV23Q1(ModelNormal):
110
113
  'advertiser_id': 'advertiserId', # noqa: E501
111
114
  'spend_limit': 'spendLimit', # noqa: E501
112
115
  'goal': 'goal', # noqa: E501
116
+ 'budget_automation': 'budgetAutomation', # noqa: E501
113
117
  'id': 'id', # noqa: E501
114
118
  }
115
119
 
@@ -158,6 +162,7 @@ class CampaignV23Q1(ModelNormal):
158
162
  advertiser_id (str, none_type): [optional] # noqa: E501
159
163
  spend_limit (CampaignSpendLimitV23Q1): [optional] # noqa: E501
160
164
  goal (str, none_type): [optional] # noqa: E501
165
+ budget_automation (CampaignBudgetAutomationV23Q1): [optional] # noqa: E501
161
166
  id (str, none_type): Id of the entity (duplicate of the parent id).. [optional] # noqa: E501
162
167
  """
163
168
 
@@ -248,6 +253,7 @@ class CampaignV23Q1(ModelNormal):
248
253
  advertiser_id (str, none_type): [optional] # noqa: E501
249
254
  spend_limit (CampaignSpendLimitV23Q1): [optional] # noqa: E501
250
255
  goal (str, none_type): [optional] # noqa: E501
256
+ budget_automation (CampaignBudgetAutomationV23Q1): [optional] # noqa: E501
251
257
  id (str, none_type): Id of the entity (duplicate of the parent id).. [optional] # noqa: E501
252
258
  """
253
259
 
@@ -117,9 +117,9 @@ class CreateAdSetV24Q1(ModelNormal):
117
117
  'schedule': (CreateAdSetScheduleV24Q1,), # noqa: E501
118
118
  'bidding': (CreateAdSetBiddingV24Q1,), # noqa: E501
119
119
  'targeting': (CreateAdSetTargetingV24Q1,), # noqa: E501
120
- 'budget': (CreateAdSetBudgetV24Q1,), # noqa: E501
121
120
  'tracking_code': (str, none_type,), # noqa: E501
122
121
  'media_type': (str,), # noqa: E501
122
+ 'budget': (CreateAdSetBudgetV24Q1,), # noqa: E501
123
123
  }
124
124
 
125
125
  @cached_property
@@ -135,9 +135,9 @@ class CreateAdSetV24Q1(ModelNormal):
135
135
  'schedule': 'schedule', # noqa: E501
136
136
  'bidding': 'bidding', # noqa: E501
137
137
  'targeting': 'targeting', # noqa: E501
138
- 'budget': 'budget', # noqa: E501
139
138
  'tracking_code': 'trackingCode', # noqa: E501
140
139
  'media_type': 'mediaType', # noqa: E501
140
+ 'budget': 'budget', # noqa: E501
141
141
  }
142
142
 
143
143
  read_only_vars = {
@@ -147,7 +147,7 @@ class CreateAdSetV24Q1(ModelNormal):
147
147
 
148
148
  @classmethod
149
149
  @convert_js_args_to_python_args
150
- def _from_openapi_data(cls, name, dataset_id, campaign_id, objective, schedule, bidding, targeting, budget, tracking_code, media_type, *args, **kwargs): # noqa: E501
150
+ def _from_openapi_data(cls, name, dataset_id, campaign_id, objective, schedule, bidding, targeting, tracking_code, media_type, *args, **kwargs): # noqa: E501
151
151
  """CreateAdSetV24Q1 - a model defined in OpenAPI
152
152
 
153
153
  Args:
@@ -158,7 +158,6 @@ class CreateAdSetV24Q1(ModelNormal):
158
158
  schedule (CreateAdSetScheduleV24Q1):
159
159
  bidding (CreateAdSetBiddingV24Q1):
160
160
  targeting (CreateAdSetTargetingV24Q1):
161
- budget (CreateAdSetBudgetV24Q1):
162
161
  tracking_code (str, none_type): The click tracking code associated to this Ad Set.
163
162
  media_type (str): Media type for the ad set
164
163
 
@@ -193,6 +192,7 @@ class CreateAdSetV24Q1(ModelNormal):
193
192
  Animal class but this time we won't travel
194
193
  through its discriminator because we passed in
195
194
  _visited_composed_classes = (Animal,)
195
+ budget (CreateAdSetBudgetV24Q1): [optional] # noqa: E501
196
196
  """
197
197
 
198
198
  _check_type = kwargs.pop('_check_type', True)
@@ -231,7 +231,6 @@ class CreateAdSetV24Q1(ModelNormal):
231
231
  self.schedule = schedule
232
232
  self.bidding = bidding
233
233
  self.targeting = targeting
234
- self.budget = budget
235
234
  self.tracking_code = tracking_code
236
235
  self.media_type = media_type
237
236
  for var_name, var_value in kwargs.items():
@@ -254,7 +253,7 @@ class CreateAdSetV24Q1(ModelNormal):
254
253
  ])
255
254
 
256
255
  @convert_js_args_to_python_args
257
- def __init__(self, name, dataset_id, campaign_id, objective, schedule, bidding, targeting, budget, tracking_code, media_type, *args, **kwargs): # noqa: E501
256
+ def __init__(self, name, dataset_id, campaign_id, objective, schedule, bidding, targeting, tracking_code, media_type, *args, **kwargs): # noqa: E501
258
257
  """CreateAdSetV24Q1 - a model defined in OpenAPI
259
258
 
260
259
  Args:
@@ -265,7 +264,6 @@ class CreateAdSetV24Q1(ModelNormal):
265
264
  schedule (CreateAdSetScheduleV24Q1):
266
265
  bidding (CreateAdSetBiddingV24Q1):
267
266
  targeting (CreateAdSetTargetingV24Q1):
268
- budget (CreateAdSetBudgetV24Q1):
269
267
  tracking_code (str, none_type): The click tracking code associated to this Ad Set.
270
268
  media_type (str): Media type for the ad set
271
269
 
@@ -300,6 +298,7 @@ class CreateAdSetV24Q1(ModelNormal):
300
298
  Animal class but this time we won't travel
301
299
  through its discriminator because we passed in
302
300
  _visited_composed_classes = (Animal,)
301
+ budget (CreateAdSetBudgetV24Q1): [optional] # noqa: E501
303
302
  """
304
303
 
305
304
  _check_type = kwargs.pop('_check_type', True)
@@ -336,7 +335,6 @@ class CreateAdSetV24Q1(ModelNormal):
336
335
  self.schedule = schedule
337
336
  self.bidding = bidding
338
337
  self.targeting = targeting
339
- self.budget = budget
340
338
  self.tracking_code = tracking_code
341
339
  self.media_type = media_type
342
340
  for var_name, var_value in kwargs.items():
@@ -98,6 +98,8 @@ from criteo_api_marketingsolutions_v2025_01.model.audience_update_entity_v1_reso
98
98
  from criteo_api_marketingsolutions_v2025_01.model.audience_warning import AudienceWarning
99
99
  from criteo_api_marketingsolutions_v2025_01.model.basic_audience_definition import BasicAudienceDefinition
100
100
  from criteo_api_marketingsolutions_v2025_01.model.behavioral_v1 import BehavioralV1
101
+ from criteo_api_marketingsolutions_v2025_01.model.campaign_budget_automation_v23_q1 import CampaignBudgetAutomationV23Q1
102
+ from criteo_api_marketingsolutions_v2025_01.model.campaign_budget_automation_v23_q1_automated_budget_configuration import CampaignBudgetAutomationV23Q1AutomatedBudgetConfiguration
101
103
  from criteo_api_marketingsolutions_v2025_01.model.campaign_search_filters_v23_q1 import CampaignSearchFiltersV23Q1
102
104
  from criteo_api_marketingsolutions_v2025_01.model.campaign_search_request_v23_q1 import CampaignSearchRequestV23Q1
103
105
  from criteo_api_marketingsolutions_v2025_01.model.campaign_spend_limit_v23_q1 import CampaignSpendLimitV23Q1