criteo-api-marketingsolutions-sdk 0.0.240808__py3-none-any.whl → 0.0.250129__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_preview/__init__.py +1 -1
- criteo_api_marketingsolutions_preview/api/analytics_api.py +10 -8
- criteo_api_marketingsolutions_preview/api/audience_api.py +139 -431
- criteo_api_marketingsolutions_preview/api/campaign_api.py +57 -934
- criteo_api_marketingsolutions_preview/api/creative_api.py +89 -89
- criteo_api_marketingsolutions_preview/api_client.py +1 -1
- criteo_api_marketingsolutions_preview/configuration.py +1 -1
- criteo_api_marketingsolutions_preview/model/{ad_set_delivery_limitations_v24_q1.py → ad_set_delivery_limitations_v24_q3.py} +3 -3
- criteo_api_marketingsolutions_preview/model/{ad_set_frequency_capping_v24_q1.py → ad_set_frequency_capping_v24_q3.py} +3 -3
- criteo_api_marketingsolutions_preview/model/{ad_set_geo_location_v24_q1.py → ad_set_geo_location_v24_q3.py} +14 -14
- criteo_api_marketingsolutions_preview/model/{ad_set_search_filter_v24_q1.py → ad_set_search_filter_v24_q3.py} +3 -3
- criteo_api_marketingsolutions_preview/model/{ad_set_search_request_v24_q1.py → ad_set_search_request_v24_q3.py} +8 -8
- criteo_api_marketingsolutions_preview/model/{ad_set_targeting_rule_v24_q1.py → ad_set_targeting_rule_v24_q3.py} +3 -3
- criteo_api_marketingsolutions_preview/model/{ad_set_targeting_v24_q1.py → ad_set_targeting_v24_q3.py} +18 -18
- criteo_api_marketingsolutions_preview/model/ad_set_targeting_video_positioning.py +13 -0
- criteo_api_marketingsolutions_preview/model/adaptive_attributes.py +0 -10
- criteo_api_marketingsolutions_preview/model/adaptive_write_attributes.py +0 -4
- criteo_api_marketingsolutions_preview/model/contactlist_amendment_attributes.py +2 -3
- criteo_api_marketingsolutions_preview/model/contactlist_with_attributes_amendment_attributes.py +0 -1
- criteo_api_marketingsolutions_preview/model/coupon.py +0 -2
- criteo_api_marketingsolutions_preview/model/coupon_supported_sizes.py +0 -4
- criteo_api_marketingsolutions_preview/model/create_ad_set_attribution_configuration_v24_q3.py +284 -0
- criteo_api_marketingsolutions_preview/model/{create_ad_set_bidding_v24_q1.py → create_ad_set_bidding_v24_q3.py} +4 -4
- criteo_api_marketingsolutions_preview/model/{create_ad_set_budget_v24_q1.py → create_ad_set_budget_v24_q3.py} +3 -3
- criteo_api_marketingsolutions_preview/model/{create_ad_set_geo_location_v24_q1.py → create_ad_set_geo_location_v24_q3.py} +14 -14
- criteo_api_marketingsolutions_preview/model/{create_ad_set_schedule_v24_q1.py → create_ad_set_schedule_v24_q3.py} +3 -3
- criteo_api_marketingsolutions_preview/model/{create_ad_set_targeting_v24_q1.py → create_ad_set_targeting_v24_q3.py} +18 -18
- criteo_api_marketingsolutions_preview/model/{create_ad_set_v24_q1.py → create_ad_set_v24_q3.py} +31 -25
- criteo_api_marketingsolutions_preview/model/{create_ad_set_v24_q1_request.py → create_ad_set_v24_q3_request.py} +8 -8
- criteo_api_marketingsolutions_preview/model/{create_ad_set_v24_q1_resource.py → create_ad_set_v24_q3_resource.py} +8 -8
- criteo_api_marketingsolutions_preview/model/create_coupon.py +0 -2
- criteo_api_marketingsolutions_preview/model/create_image_slide.py +0 -2
- criteo_api_marketingsolutions_preview/model/dynamic_attributes.py +0 -4
- criteo_api_marketingsolutions_preview/model/dynamic_write_attributes.py +6 -6
- criteo_api_marketingsolutions_preview/model/html_tag_attributes.py +0 -2
- criteo_api_marketingsolutions_preview/model/html_tag_write_attributes.py +0 -2
- criteo_api_marketingsolutions_preview/model/image_attributes.py +0 -2
- criteo_api_marketingsolutions_preview/model/image_set.py +0 -2
- criteo_api_marketingsolutions_preview/model/image_slide.py +0 -2
- criteo_api_marketingsolutions_preview/model/json_report_rows.py +3 -3
- criteo_api_marketingsolutions_preview/model/{nillable_ad_set_targeting_rule_v24_q1.py → nillable_ad_set_targeting_rule_v24_q3.py} +8 -8
- criteo_api_marketingsolutions_preview/model/{nillable_ad_set_targeting_rule_v24_q1_value.py → nillable_ad_set_targeting_rule_v24_q3_value.py} +6 -6
- criteo_api_marketingsolutions_preview/model/nillable_lookback_window_v24_q3.py +271 -0
- criteo_api_marketingsolutions_preview/model/patch_ad_set_attribution_configuration_v24_q3.py +282 -0
- criteo_api_marketingsolutions_preview/model/{patch_ad_set_bidding_v24_q1.py → patch_ad_set_bidding_v24_q3.py} +3 -3
- criteo_api_marketingsolutions_preview/model/{patch_ad_set_budget_v24_q1.py → patch_ad_set_budget_v24_q3.py} +3 -3
- criteo_api_marketingsolutions_preview/model/{patch_ad_set_scheduling_v24_q1.py → patch_ad_set_scheduling_v24_q3.py} +3 -3
- criteo_api_marketingsolutions_preview/model/{patch_ad_set_v24_q1.py → patch_ad_set_v24_q3.py} +31 -25
- criteo_api_marketingsolutions_preview/model/product.py +4 -0
- criteo_api_marketingsolutions_preview/model/read_ad_set_attribution_configuration_v24_q3.py +284 -0
- criteo_api_marketingsolutions_preview/model/{read_ad_set_bidding_v24_q1.py → read_ad_set_bidding_v24_q3.py} +4 -4
- criteo_api_marketingsolutions_preview/model/{read_ad_set_budget_v24_q1.py → read_ad_set_budget_v24_q3.py} +3 -3
- criteo_api_marketingsolutions_preview/model/{read_ad_set_schedule_v24_q1.py → read_ad_set_schedule_v24_q3.py} +3 -3
- criteo_api_marketingsolutions_preview/model/{read_ad_set_v24_q1.py → read_ad_set_v24_q3.py} +31 -25
- criteo_api_marketingsolutions_preview/model/{read_model_ad_set_id_v24_q1.py → read_model_ad_set_id_v24_q3.py} +3 -3
- criteo_api_marketingsolutions_preview/model/{read_model_read_ad_set_v24_q1.py → read_model_read_ad_set_v24_q3.py} +8 -8
- criteo_api_marketingsolutions_preview/model/{user_profile_identifier_model.py → report_detail_warning.py} +21 -11
- criteo_api_marketingsolutions_preview/model/{delete_user_profile_model_resource.py → report_detail_warnings.py} +23 -15
- criteo_api_marketingsolutions_preview/model/report_ok_response.py +31 -17
- criteo_api_marketingsolutions_preview/model/{requests_patch_ad_set_v24_q1.py → requests_patch_ad_set_v24_q3.py} +8 -8
- criteo_api_marketingsolutions_preview/model/{creative_response.py → resource_collection_outcome_of_ad.py} +8 -12
- criteo_api_marketingsolutions_preview/model/resource_collection_outcome_of_coupon.py +281 -0
- criteo_api_marketingsolutions_preview/model/{ad_list_response.py → resource_collection_outcome_of_creative.py} +8 -14
- criteo_api_marketingsolutions_preview/model/{ad_write_request.py → resource_input_of_ad_write.py} +8 -8
- criteo_api_marketingsolutions_preview/model/{create_coupon_request.py → resource_input_of_create_coupon.py} +8 -8
- criteo_api_marketingsolutions_preview/model/{creative_write_request.py → resource_input_of_creative_write.py} +8 -8
- criteo_api_marketingsolutions_preview/model/{update_coupon_request.py → resource_input_of_update_coupon.py} +8 -8
- criteo_api_marketingsolutions_preview/model/{ad_resource.py → resource_of_ad.py} +5 -5
- criteo_api_marketingsolutions_preview/model/{ad_write_resource.py → resource_of_ad_write.py} +5 -5
- criteo_api_marketingsolutions_preview/model/{coupon_resource.py → resource_of_coupon.py} +5 -5
- criteo_api_marketingsolutions_preview/model/{coupon_supported_sizes_resource.py → resource_of_coupon_supported_sizes.py} +5 -5
- criteo_api_marketingsolutions_preview/model/{create_coupon_resource.py → resource_of_create_coupon.py} +5 -5
- criteo_api_marketingsolutions_preview/model/{creative_resource.py → resource_of_creative.py} +5 -5
- criteo_api_marketingsolutions_preview/model/{creative_write_resource.py → resource_of_creative_write.py} +5 -5
- criteo_api_marketingsolutions_preview/model/{update_coupon_resource.py → resource_of_update_coupon.py} +5 -5
- criteo_api_marketingsolutions_preview/model/{ad_response.py → resource_outcome_of_ad.py} +8 -12
- criteo_api_marketingsolutions_preview/model/{coupon_response.py → resource_outcome_of_coupon.py} +8 -12
- criteo_api_marketingsolutions_preview/model/{coupon_list_response.py → resource_outcome_of_coupon_supported_sizes.py} +8 -14
- criteo_api_marketingsolutions_preview/model/resource_outcome_of_creative.py +281 -0
- criteo_api_marketingsolutions_preview/model/{response_read_ad_set_v24_q1.py → response_read_ad_set_v24_q3.py} +8 -8
- criteo_api_marketingsolutions_preview/model/{responses_ad_set_id_v24_q1.py → responses_ad_set_id_v24_q3.py} +8 -8
- criteo_api_marketingsolutions_preview/model/{responses_read_ad_set_v24_q1.py → responses_read_ad_set_v24_q3.py} +8 -8
- criteo_api_marketingsolutions_preview/model/set_ad_set_targeting_video_positioning.py +13 -0
- criteo_api_marketingsolutions_preview/model/{write_model_patch_ad_set_v24_q1.py → write_model_patch_ad_set_v24_q3.py} +8 -8
- criteo_api_marketingsolutions_preview/models/__init__.py +57 -71
- {criteo_api_marketingsolutions_sdk-0.0.240808.dist-info → criteo_api_marketingsolutions_sdk-0.0.250129.dist-info}/METADATA +14 -5
- {criteo_api_marketingsolutions_sdk-0.0.240808.dist-info → criteo_api_marketingsolutions_sdk-0.0.250129.dist-info}/RECORD +89 -103
- {criteo_api_marketingsolutions_sdk-0.0.240808.dist-info → criteo_api_marketingsolutions_sdk-0.0.250129.dist-info}/WHEEL +1 -1
- criteo_api_marketingsolutions_preview/model/coupon_supported_sizes_response.py +0 -285
- criteo_api_marketingsolutions_preview/model/creative_list_response.py +0 -287
- criteo_api_marketingsolutions_preview/model/delete_user_profile_model.py +0 -273
- criteo_api_marketingsolutions_preview/model/delete_user_profile_model_list_request.py +0 -271
- criteo_api_marketingsolutions_preview/model/oci_brand_safety_response.py +0 -279
- criteo_api_marketingsolutions_preview/model/oci_brand_safety_response_data.py +0 -287
- criteo_api_marketingsolutions_preview/model/oci_brand_safety_rule.py +0 -275
- criteo_api_marketingsolutions_preview/model/oci_brand_safety_segment.py +0 -320
- criteo_api_marketingsolutions_preview/model/oci_targeting_node.py +0 -277
- criteo_api_marketingsolutions_preview/model/oci_targeting_response.py +0 -279
- criteo_api_marketingsolutions_preview/model/oci_targeting_response_data.py +0 -287
- criteo_api_marketingsolutions_preview/model/oci_targeting_rule.py +0 -275
- criteo_api_marketingsolutions_preview/model/set_user_profile_model.py +0 -293
- criteo_api_marketingsolutions_preview/model/set_user_profile_model_list_request.py +0 -271
- criteo_api_marketingsolutions_preview/model/set_user_profile_model_resource.py +0 -273
- criteo_api_marketingsolutions_preview/model/target.py +0 -274
- criteo_api_marketingsolutions_preview/model/target_type.py +0 -290
- criteo_api_marketingsolutions_preview/model/targeting_error_model.py +0 -299
- criteo_api_marketingsolutions_preview/model/targeting_operator.py +0 -292
- criteo_api_marketingsolutions_preview/model/user_profile_attribute_model.py +0 -275
- {criteo_api_marketingsolutions_sdk-0.0.240808.dist-info → criteo_api_marketingsolutions_sdk-0.0.250129.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Criteo API
|
|
3
|
+
|
|
4
|
+
Criteo API - MarketingSolutions # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: preview
|
|
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_preview.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_preview.exceptions import ApiAttributeError
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def lazy_import():
|
|
33
|
+
from criteo_api_marketingsolutions_preview.model.nillable_lookback_window_v24_q3 import NillableLookbackWindowV24Q3
|
|
34
|
+
globals()['NillableLookbackWindowV24Q3'] = NillableLookbackWindowV24Q3
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class PatchAdSetAttributionConfigurationV24Q3(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
|
+
('attribution_method',): {
|
|
63
|
+
'None': None,
|
|
64
|
+
'UNKNOWN': "unknown",
|
|
65
|
+
'CRITEOATTRIBUTION': "criteoAttribution",
|
|
66
|
+
'GOOGLEANALYTICSLASTCLICK': "googleAnalyticsLastClick",
|
|
67
|
+
'GOOGLEANALYTICSDATADRIVEN': "googleAnalyticsDataDriven",
|
|
68
|
+
'LASTCLICK': "lastClick",
|
|
69
|
+
'POSTCLICK': "postClick",
|
|
70
|
+
},
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
validations = {
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@cached_property
|
|
77
|
+
def additional_properties_type():
|
|
78
|
+
"""
|
|
79
|
+
This must be a method because a model may have properties that are
|
|
80
|
+
of type self, this must run after the class is loaded
|
|
81
|
+
"""
|
|
82
|
+
lazy_import()
|
|
83
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
84
|
+
|
|
85
|
+
_nullable = False
|
|
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
|
+
lazy_import()
|
|
98
|
+
return {
|
|
99
|
+
'attribution_method': (str, none_type,), # noqa: E501
|
|
100
|
+
'lookback_window': (NillableLookbackWindowV24Q3,), # noqa: E501
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@cached_property
|
|
104
|
+
def discriminator():
|
|
105
|
+
return None
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
attribute_map = {
|
|
109
|
+
'attribution_method': 'attributionMethod', # noqa: E501
|
|
110
|
+
'lookback_window': 'lookbackWindow', # noqa: E501
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
read_only_vars = {
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
_composed_schemas = {}
|
|
117
|
+
|
|
118
|
+
@classmethod
|
|
119
|
+
@convert_js_args_to_python_args
|
|
120
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
121
|
+
"""PatchAdSetAttributionConfigurationV24Q3 - a model defined in OpenAPI
|
|
122
|
+
|
|
123
|
+
Keyword Args:
|
|
124
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
125
|
+
will be type checked and a TypeError will be
|
|
126
|
+
raised if the wrong type is input.
|
|
127
|
+
Defaults to True
|
|
128
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
129
|
+
drill down to the model in received_data
|
|
130
|
+
when deserializing a response
|
|
131
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
132
|
+
are serialized names, as specified in the OpenAPI document.
|
|
133
|
+
False if the variable names in the input data
|
|
134
|
+
are pythonic names, e.g. snake case (default)
|
|
135
|
+
_configuration (Configuration): the instance to use when
|
|
136
|
+
deserializing a file_type parameter.
|
|
137
|
+
If passed, type conversion is attempted
|
|
138
|
+
If omitted no type conversion is done.
|
|
139
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
140
|
+
classes that we have traveled through so that
|
|
141
|
+
if we see that class again we will not use its
|
|
142
|
+
discriminator again.
|
|
143
|
+
When traveling through a discriminator, the
|
|
144
|
+
composed schema that is
|
|
145
|
+
is traveled through is added to this set.
|
|
146
|
+
For example if Animal has a discriminator
|
|
147
|
+
petType and we pass in "Dog", and the class Dog
|
|
148
|
+
allOf includes Animal, we move through Animal
|
|
149
|
+
once using the discriminator, and pick Dog.
|
|
150
|
+
Then in Dog, we will make an instance of the
|
|
151
|
+
Animal class but this time we won't travel
|
|
152
|
+
through its discriminator because we passed in
|
|
153
|
+
_visited_composed_classes = (Animal,)
|
|
154
|
+
attribution_method (str, none_type): The attribution method.. [optional] # noqa: E501
|
|
155
|
+
lookback_window (NillableLookbackWindowV24Q3): [optional] # noqa: E501
|
|
156
|
+
"""
|
|
157
|
+
|
|
158
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
159
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
160
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
161
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
162
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
163
|
+
|
|
164
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
165
|
+
|
|
166
|
+
if args:
|
|
167
|
+
for arg in args:
|
|
168
|
+
if isinstance(arg, dict):
|
|
169
|
+
kwargs.update(arg)
|
|
170
|
+
else:
|
|
171
|
+
raise ApiTypeError(
|
|
172
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
173
|
+
args,
|
|
174
|
+
self.__class__.__name__,
|
|
175
|
+
),
|
|
176
|
+
path_to_item=_path_to_item,
|
|
177
|
+
valid_classes=(self.__class__,),
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
self._data_store = {}
|
|
181
|
+
self._check_type = _check_type
|
|
182
|
+
self._spec_property_naming = _spec_property_naming
|
|
183
|
+
self._path_to_item = _path_to_item
|
|
184
|
+
self._configuration = _configuration
|
|
185
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
186
|
+
|
|
187
|
+
for var_name, var_value in kwargs.items():
|
|
188
|
+
if var_name not in self.attribute_map and \
|
|
189
|
+
self._configuration is not None and \
|
|
190
|
+
self._configuration.discard_unknown_keys and \
|
|
191
|
+
self.additional_properties_type is None:
|
|
192
|
+
# discard variable.
|
|
193
|
+
continue
|
|
194
|
+
setattr(self, var_name, var_value)
|
|
195
|
+
return self
|
|
196
|
+
|
|
197
|
+
required_properties = set([
|
|
198
|
+
'_data_store',
|
|
199
|
+
'_check_type',
|
|
200
|
+
'_spec_property_naming',
|
|
201
|
+
'_path_to_item',
|
|
202
|
+
'_configuration',
|
|
203
|
+
'_visited_composed_classes',
|
|
204
|
+
])
|
|
205
|
+
|
|
206
|
+
@convert_js_args_to_python_args
|
|
207
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
208
|
+
"""PatchAdSetAttributionConfigurationV24Q3 - a model defined in OpenAPI
|
|
209
|
+
|
|
210
|
+
Keyword Args:
|
|
211
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
212
|
+
will be type checked and a TypeError will be
|
|
213
|
+
raised if the wrong type is input.
|
|
214
|
+
Defaults to True
|
|
215
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
216
|
+
drill down to the model in received_data
|
|
217
|
+
when deserializing a response
|
|
218
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
219
|
+
are serialized names, as specified in the OpenAPI document.
|
|
220
|
+
False if the variable names in the input data
|
|
221
|
+
are pythonic names, e.g. snake case (default)
|
|
222
|
+
_configuration (Configuration): the instance to use when
|
|
223
|
+
deserializing a file_type parameter.
|
|
224
|
+
If passed, type conversion is attempted
|
|
225
|
+
If omitted no type conversion is done.
|
|
226
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
227
|
+
classes that we have traveled through so that
|
|
228
|
+
if we see that class again we will not use its
|
|
229
|
+
discriminator again.
|
|
230
|
+
When traveling through a discriminator, the
|
|
231
|
+
composed schema that is
|
|
232
|
+
is traveled through is added to this set.
|
|
233
|
+
For example if Animal has a discriminator
|
|
234
|
+
petType and we pass in "Dog", and the class Dog
|
|
235
|
+
allOf includes Animal, we move through Animal
|
|
236
|
+
once using the discriminator, and pick Dog.
|
|
237
|
+
Then in Dog, we will make an instance of the
|
|
238
|
+
Animal class but this time we won't travel
|
|
239
|
+
through its discriminator because we passed in
|
|
240
|
+
_visited_composed_classes = (Animal,)
|
|
241
|
+
attribution_method (str, none_type): The attribution method.. [optional] # noqa: E501
|
|
242
|
+
lookback_window (NillableLookbackWindowV24Q3): [optional] # noqa: E501
|
|
243
|
+
"""
|
|
244
|
+
|
|
245
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
246
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
247
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
248
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
249
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
250
|
+
|
|
251
|
+
if args:
|
|
252
|
+
for arg in args:
|
|
253
|
+
if isinstance(arg, dict):
|
|
254
|
+
kwargs.update(arg)
|
|
255
|
+
else:
|
|
256
|
+
raise ApiTypeError(
|
|
257
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
258
|
+
args,
|
|
259
|
+
self.__class__.__name__,
|
|
260
|
+
),
|
|
261
|
+
path_to_item=_path_to_item,
|
|
262
|
+
valid_classes=(self.__class__,),
|
|
263
|
+
)
|
|
264
|
+
|
|
265
|
+
self._data_store = {}
|
|
266
|
+
self._check_type = _check_type
|
|
267
|
+
self._spec_property_naming = _spec_property_naming
|
|
268
|
+
self._path_to_item = _path_to_item
|
|
269
|
+
self._configuration = _configuration
|
|
270
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
271
|
+
|
|
272
|
+
for var_name, var_value in kwargs.items():
|
|
273
|
+
if var_name not in self.attribute_map and \
|
|
274
|
+
self._configuration is not None and \
|
|
275
|
+
self._configuration.discard_unknown_keys and \
|
|
276
|
+
self.additional_properties_type is None:
|
|
277
|
+
# discard variable.
|
|
278
|
+
continue
|
|
279
|
+
setattr(self, var_name, var_value)
|
|
280
|
+
if var_name in self.read_only_vars:
|
|
281
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
282
|
+
f"class with read only attributes.")
|
|
@@ -34,7 +34,7 @@ def lazy_import():
|
|
|
34
34
|
globals()['NillableDecimal'] = NillableDecimal
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class PatchAdSetBiddingV24Q3(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -107,7 +107,7 @@ class PatchAdSetBiddingV24Q1(ModelNormal):
|
|
|
107
107
|
@classmethod
|
|
108
108
|
@convert_js_args_to_python_args
|
|
109
109
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
110
|
-
"""
|
|
110
|
+
"""PatchAdSetBiddingV24Q3 - a model defined in OpenAPI
|
|
111
111
|
|
|
112
112
|
Keyword Args:
|
|
113
113
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -193,7 +193,7 @@ class PatchAdSetBiddingV24Q1(ModelNormal):
|
|
|
193
193
|
|
|
194
194
|
@convert_js_args_to_python_args
|
|
195
195
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
196
|
-
"""
|
|
196
|
+
"""PatchAdSetBiddingV24Q3 - a model defined in OpenAPI
|
|
197
197
|
|
|
198
198
|
Keyword Args:
|
|
199
199
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -34,7 +34,7 @@ def lazy_import():
|
|
|
34
34
|
globals()['NillableDecimal'] = NillableDecimal
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class PatchAdSetBudgetV24Q3(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -144,7 +144,7 @@ class PatchAdSetBudgetV24Q1(ModelNormal):
|
|
|
144
144
|
@classmethod
|
|
145
145
|
@convert_js_args_to_python_args
|
|
146
146
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
147
|
-
"""
|
|
147
|
+
"""PatchAdSetBudgetV24Q3 - a model defined in OpenAPI
|
|
148
148
|
|
|
149
149
|
Keyword Args:
|
|
150
150
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -234,7 +234,7 @@ class PatchAdSetBudgetV24Q1(ModelNormal):
|
|
|
234
234
|
|
|
235
235
|
@convert_js_args_to_python_args
|
|
236
236
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
237
|
-
"""
|
|
237
|
+
"""PatchAdSetBudgetV24Q3 - a model defined in OpenAPI
|
|
238
238
|
|
|
239
239
|
Keyword Args:
|
|
240
240
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -34,7 +34,7 @@ def lazy_import():
|
|
|
34
34
|
globals()['NillableDateTime'] = NillableDateTime
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class PatchAdSetSchedulingV24Q3(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -109,7 +109,7 @@ class PatchAdSetSchedulingV24Q1(ModelNormal):
|
|
|
109
109
|
@classmethod
|
|
110
110
|
@convert_js_args_to_python_args
|
|
111
111
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
112
|
-
"""
|
|
112
|
+
"""PatchAdSetSchedulingV24Q3 - a model defined in OpenAPI
|
|
113
113
|
|
|
114
114
|
Keyword Args:
|
|
115
115
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -196,7 +196,7 @@ class PatchAdSetSchedulingV24Q1(ModelNormal):
|
|
|
196
196
|
|
|
197
197
|
@convert_js_args_to_python_args
|
|
198
198
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
199
|
-
"""
|
|
199
|
+
"""PatchAdSetSchedulingV24Q3 - a model defined in OpenAPI
|
|
200
200
|
|
|
201
201
|
Keyword Args:
|
|
202
202
|
_check_type (bool): if True, values for parameters in openapi_types
|
criteo_api_marketingsolutions_preview/model/{patch_ad_set_v24_q1.py → patch_ad_set_v24_q3.py}
RENAMED
|
@@ -30,17 +30,19 @@ from criteo_api_marketingsolutions_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_marketingsolutions_preview.model.
|
|
34
|
-
from criteo_api_marketingsolutions_preview.model.
|
|
35
|
-
from criteo_api_marketingsolutions_preview.model.
|
|
36
|
-
from criteo_api_marketingsolutions_preview.model.
|
|
37
|
-
|
|
38
|
-
globals()['
|
|
39
|
-
globals()['
|
|
40
|
-
globals()['
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
from criteo_api_marketingsolutions_preview.model.ad_set_targeting_v24_q3 import AdSetTargetingV24Q3
|
|
34
|
+
from criteo_api_marketingsolutions_preview.model.patch_ad_set_attribution_configuration_v24_q3 import PatchAdSetAttributionConfigurationV24Q3
|
|
35
|
+
from criteo_api_marketingsolutions_preview.model.patch_ad_set_bidding_v24_q3 import PatchAdSetBiddingV24Q3
|
|
36
|
+
from criteo_api_marketingsolutions_preview.model.patch_ad_set_budget_v24_q3 import PatchAdSetBudgetV24Q3
|
|
37
|
+
from criteo_api_marketingsolutions_preview.model.patch_ad_set_scheduling_v24_q3 import PatchAdSetSchedulingV24Q3
|
|
38
|
+
globals()['AdSetTargetingV24Q3'] = AdSetTargetingV24Q3
|
|
39
|
+
globals()['PatchAdSetAttributionConfigurationV24Q3'] = PatchAdSetAttributionConfigurationV24Q3
|
|
40
|
+
globals()['PatchAdSetBiddingV24Q3'] = PatchAdSetBiddingV24Q3
|
|
41
|
+
globals()['PatchAdSetBudgetV24Q3'] = PatchAdSetBudgetV24Q3
|
|
42
|
+
globals()['PatchAdSetSchedulingV24Q3'] = PatchAdSetSchedulingV24Q3
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class PatchAdSetV24Q3(ModelNormal):
|
|
44
46
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
45
47
|
Ref: https://openapi-generator.tech
|
|
46
48
|
|
|
@@ -94,10 +96,11 @@ class PatchAdSetV24Q1(ModelNormal):
|
|
|
94
96
|
lazy_import()
|
|
95
97
|
return {
|
|
96
98
|
'name': (str, none_type,), # noqa: E501
|
|
97
|
-
'scheduling': (
|
|
98
|
-
'bidding': (
|
|
99
|
-
'targeting': (
|
|
100
|
-
'budget': (
|
|
99
|
+
'scheduling': (PatchAdSetSchedulingV24Q3,), # noqa: E501
|
|
100
|
+
'bidding': (PatchAdSetBiddingV24Q3,), # noqa: E501
|
|
101
|
+
'targeting': (AdSetTargetingV24Q3,), # noqa: E501
|
|
102
|
+
'budget': (PatchAdSetBudgetV24Q3,), # noqa: E501
|
|
103
|
+
'attribution_configuration': (PatchAdSetAttributionConfigurationV24Q3,), # noqa: E501
|
|
101
104
|
}
|
|
102
105
|
|
|
103
106
|
@cached_property
|
|
@@ -111,6 +114,7 @@ class PatchAdSetV24Q1(ModelNormal):
|
|
|
111
114
|
'bidding': 'bidding', # noqa: E501
|
|
112
115
|
'targeting': 'targeting', # noqa: E501
|
|
113
116
|
'budget': 'budget', # noqa: E501
|
|
117
|
+
'attribution_configuration': 'attributionConfiguration', # noqa: E501
|
|
114
118
|
}
|
|
115
119
|
|
|
116
120
|
read_only_vars = {
|
|
@@ -121,7 +125,7 @@ class PatchAdSetV24Q1(ModelNormal):
|
|
|
121
125
|
@classmethod
|
|
122
126
|
@convert_js_args_to_python_args
|
|
123
127
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
124
|
-
"""
|
|
128
|
+
"""PatchAdSetV24Q3 - a model defined in OpenAPI
|
|
125
129
|
|
|
126
130
|
Keyword Args:
|
|
127
131
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -155,10 +159,11 @@ class PatchAdSetV24Q1(ModelNormal):
|
|
|
155
159
|
through its discriminator because we passed in
|
|
156
160
|
_visited_composed_classes = (Animal,)
|
|
157
161
|
name (str, none_type): [optional] # noqa: E501
|
|
158
|
-
scheduling (
|
|
159
|
-
bidding (
|
|
160
|
-
targeting (
|
|
161
|
-
budget (
|
|
162
|
+
scheduling (PatchAdSetSchedulingV24Q3): [optional] # noqa: E501
|
|
163
|
+
bidding (PatchAdSetBiddingV24Q3): [optional] # noqa: E501
|
|
164
|
+
targeting (AdSetTargetingV24Q3): [optional] # noqa: E501
|
|
165
|
+
budget (PatchAdSetBudgetV24Q3): [optional] # noqa: E501
|
|
166
|
+
attribution_configuration (PatchAdSetAttributionConfigurationV24Q3): [optional] # noqa: E501
|
|
162
167
|
"""
|
|
163
168
|
|
|
164
169
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -211,7 +216,7 @@ class PatchAdSetV24Q1(ModelNormal):
|
|
|
211
216
|
|
|
212
217
|
@convert_js_args_to_python_args
|
|
213
218
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
214
|
-
"""
|
|
219
|
+
"""PatchAdSetV24Q3 - a model defined in OpenAPI
|
|
215
220
|
|
|
216
221
|
Keyword Args:
|
|
217
222
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -245,10 +250,11 @@ class PatchAdSetV24Q1(ModelNormal):
|
|
|
245
250
|
through its discriminator because we passed in
|
|
246
251
|
_visited_composed_classes = (Animal,)
|
|
247
252
|
name (str, none_type): [optional] # noqa: E501
|
|
248
|
-
scheduling (
|
|
249
|
-
bidding (
|
|
250
|
-
targeting (
|
|
251
|
-
budget (
|
|
253
|
+
scheduling (PatchAdSetSchedulingV24Q3): [optional] # noqa: E501
|
|
254
|
+
bidding (PatchAdSetBiddingV24Q3): [optional] # noqa: E501
|
|
255
|
+
targeting (AdSetTargetingV24Q3): [optional] # noqa: E501
|
|
256
|
+
budget (PatchAdSetBudgetV24Q3): [optional] # noqa: E501
|
|
257
|
+
attribution_configuration (PatchAdSetAttributionConfigurationV24Q3): [optional] # noqa: E501
|
|
252
258
|
"""
|
|
253
259
|
|
|
254
260
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -189,6 +189,7 @@ class Product(ModelNormal):
|
|
|
189
189
|
'external_seller_name': (str, none_type,), # noqa: E501
|
|
190
190
|
'number_of_reviews': (int, none_type,), # noqa: E501
|
|
191
191
|
'product_rating': (str, none_type,), # noqa: E501
|
|
192
|
+
'badge': (str, none_type,), # noqa: E501
|
|
192
193
|
}
|
|
193
194
|
|
|
194
195
|
@cached_property
|
|
@@ -278,6 +279,7 @@ class Product(ModelNormal):
|
|
|
278
279
|
'external_seller_name': 'externalSellerName', # noqa: E501
|
|
279
280
|
'number_of_reviews': 'numberOfReviews', # noqa: E501
|
|
280
281
|
'product_rating': 'productRating', # noqa: E501
|
|
282
|
+
'badge': 'badge', # noqa: E501
|
|
281
283
|
}
|
|
282
284
|
|
|
283
285
|
read_only_vars = {
|
|
@@ -404,6 +406,7 @@ class Product(ModelNormal):
|
|
|
404
406
|
external_seller_name (str, none_type): The external name of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501
|
|
405
407
|
number_of_reviews (int, none_type): The number of customer reviews for the product. [optional] # noqa: E501
|
|
406
408
|
product_rating (str, none_type): The product rating for the product. [optional] # noqa: E501
|
|
409
|
+
badge (str, none_type): URL of a badge image to display on the product.. [optional] # noqa: E501
|
|
407
410
|
"""
|
|
408
411
|
|
|
409
412
|
channel = kwargs.get('channel', "online")
|
|
@@ -578,6 +581,7 @@ class Product(ModelNormal):
|
|
|
578
581
|
external_seller_name (str, none_type): The external name of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501
|
|
579
582
|
number_of_reviews (int, none_type): The number of customer reviews for the product. [optional] # noqa: E501
|
|
580
583
|
product_rating (str, none_type): The product rating for the product. [optional] # noqa: E501
|
|
584
|
+
badge (str, none_type): URL of a badge image to display on the product.. [optional] # noqa: E501
|
|
581
585
|
"""
|
|
582
586
|
|
|
583
587
|
channel = kwargs.get('channel', "online")
|