criteo-api-retailmedia-sdk 0.0.240207__py3-none-any.whl → 0.0.240404__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-retailmedia-sdk might be problematic. Click here for more details.
- criteo_api_retailmedia_preview/__init__.py +1 -1
- criteo_api_retailmedia_preview/api/accounts_api.py +181 -35
- criteo_api_retailmedia_preview/api/analytics_api.py +142 -0
- criteo_api_retailmedia_preview/api/campaign_api.py +443 -974
- criteo_api_retailmedia_preview/api/catalog_api.py +312 -0
- criteo_api_retailmedia_preview/api_client.py +4 -4
- criteo_api_retailmedia_preview/apis/__init__.py +1 -0
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/{creative202210.py → async_accounts_report.py} +149 -95
- criteo_api_retailmedia_preview/model/{external_catalog_request_preview.py → async_accounts_report_request.py} +13 -10
- criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +273 -0
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +57 -53
- criteo_api_retailmedia_preview/model/async_line_items_report.py +57 -54
- criteo_api_retailmedia_preview/model/{text_variable_value.py → batch_accepted_response.py} +11 -11
- criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_of_int64.py → change_details.py} +27 -26
- criteo_api_retailmedia_preview/model/{hyperlink_variable_value.py → custom_attribute.py} +17 -11
- criteo_api_retailmedia_preview/model/export_report_column.py +2 -2
- criteo_api_retailmedia_preview/model/{files_variable_value.py → external_line_item_capping_v2.py} +22 -13
- criteo_api_retailmedia_preview/model/external_line_item_page_category_v2.py +273 -0
- criteo_api_retailmedia_preview/model/{page_type_environment.py → external_line_item_page_v2.py} +40 -29
- criteo_api_retailmedia_preview/model/{creative_create_model202207.py → external_preferred_line_item_create_model_v2.py} +79 -31
- criteo_api_retailmedia_preview/model/{external_catalog_status.py → external_preferred_line_item_update_model_v2.py} +70 -47
- criteo_api_retailmedia_preview/model/{template.py → external_preferred_line_item_v2.py} +93 -70
- criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → fail_response.py} +21 -23
- criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py → input_resource_of_preferred_line_item_create_model_v2.py} +12 -18
- criteo_api_retailmedia_preview/model/{choice_variable_specification.py → insertion_order_history_change_data_capture.py} +49 -29
- criteo_api_retailmedia_preview/model/installment.py +273 -0
- criteo_api_retailmedia_preview/model/loyalty_points.py +271 -0
- criteo_api_retailmedia_preview/model/metadata.py +273 -0
- criteo_api_retailmedia_preview/model/page_of_insertion_order_history_change_data_capture.py +276 -0
- criteo_api_retailmedia_preview/model/{json_api_request_of_catalog_request_preview.py → preferred_line_item_create_model_v2_request.py} +8 -8
- criteo_api_retailmedia_preview/model/preferred_line_item_update_model_v2_request.py +269 -0
- criteo_api_retailmedia_preview/model/{creative202210_response.py → preferred_line_item_v2_paged_list_response.py} +22 -16
- criteo_api_retailmedia_preview/model/{creative202210_list_response.py → preferred_line_item_v2_response.py} +16 -16
- criteo_api_retailmedia_preview/model/price.py +267 -0
- criteo_api_retailmedia_preview/model/product.py +626 -0
- criteo_api_retailmedia_preview/model/{template_variable.py → product_importer_error.py} +37 -48
- criteo_api_retailmedia_preview/model/product_importer_warning.py +299 -0
- criteo_api_retailmedia_preview/model/{template_list_response.py → product_shipping.py} +33 -21
- criteo_api_retailmedia_preview/model/product_shipping_dimension.py +267 -0
- criteo_api_retailmedia_preview/model/{color_variable_value.py → product_shipping_weight.py} +13 -20
- criteo_api_retailmedia_preview/model/product_tax.py +283 -0
- criteo_api_retailmedia_preview/model/{choice_variable_value.py → product_unit_pricing_base_measure.py} +13 -15
- criteo_api_retailmedia_preview/model/{text_variable_specification.py → product_unit_pricing_measure.py} +11 -7
- criteo_api_retailmedia_preview/model/{section.py → products_custom_batch_request.py} +13 -19
- criteo_api_retailmedia_preview/model/{creative_update_model202207.py → products_custom_batch_request_entry.py} +43 -35
- criteo_api_retailmedia_preview/model/{choice_option.py → report_detail_error.py} +41 -23
- criteo_api_retailmedia_preview/model/report_detail_errors.py +281 -0
- criteo_api_retailmedia_preview/model/{template_variable_value.py → report_ok_response.py} +58 -43
- criteo_api_retailmedia_preview/model/{resource_of_creative202210.py → resource_of_preferred_line_item_update_model_v2.py} +9 -9
- criteo_api_retailmedia_preview/model/{resource_of_template.py → resource_of_preferred_line_item_v2.py} +9 -9
- criteo_api_retailmedia_preview/model/retail_media_brands.py +257 -0
- criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +37 -37
- criteo_api_retailmedia_preview/model/sync_campaigns_report.py +51 -47
- criteo_api_retailmedia_preview/model/sync_line_items_report.py +53 -50
- criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brand_account_creation.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brands.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brand_account_creation.py +266 -0
- criteo_api_retailmedia_preview/model/{value_resource_of_int64.py → value_resource_of_retail_media_brands.py} +11 -6
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation.py +266 -0
- criteo_api_retailmedia_preview/models/__init__.py +48 -31
- {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/RECORD +67 -49
- {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_preview/model/files_variables_specification.py +0 -290
- criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py +0 -287
- criteo_api_retailmedia_preview/model/template_response.py +0 -281
- {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Criteo API
|
|
3
|
+
|
|
4
|
+
Criteo API - RetailMedia # 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_retailmedia_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_retailmedia_preview.exceptions import ApiAttributeError
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class RetailMediaBrands(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
|
+
additional_properties_type = None
|
|
64
|
+
|
|
65
|
+
_nullable = False
|
|
66
|
+
|
|
67
|
+
@cached_property
|
|
68
|
+
def openapi_types():
|
|
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
|
+
Returns
|
|
74
|
+
openapi_types (dict): The key is attribute name
|
|
75
|
+
and the value is attribute type.
|
|
76
|
+
"""
|
|
77
|
+
return {
|
|
78
|
+
'brand_ids': ([int], none_type,), # noqa: E501
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@cached_property
|
|
82
|
+
def discriminator():
|
|
83
|
+
return None
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
attribute_map = {
|
|
87
|
+
'brand_ids': 'brandIds', # noqa: E501
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
read_only_vars = {
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
_composed_schemas = {}
|
|
94
|
+
|
|
95
|
+
@classmethod
|
|
96
|
+
@convert_js_args_to_python_args
|
|
97
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
98
|
+
"""RetailMediaBrands - a model defined in OpenAPI
|
|
99
|
+
|
|
100
|
+
Keyword Args:
|
|
101
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
102
|
+
will be type checked and a TypeError will be
|
|
103
|
+
raised if the wrong type is input.
|
|
104
|
+
Defaults to True
|
|
105
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
106
|
+
drill down to the model in received_data
|
|
107
|
+
when deserializing a response
|
|
108
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
109
|
+
are serialized names, as specified in the OpenAPI document.
|
|
110
|
+
False if the variable names in the input data
|
|
111
|
+
are pythonic names, e.g. snake case (default)
|
|
112
|
+
_configuration (Configuration): the instance to use when
|
|
113
|
+
deserializing a file_type parameter.
|
|
114
|
+
If passed, type conversion is attempted
|
|
115
|
+
If omitted no type conversion is done.
|
|
116
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
117
|
+
classes that we have traveled through so that
|
|
118
|
+
if we see that class again we will not use its
|
|
119
|
+
discriminator again.
|
|
120
|
+
When traveling through a discriminator, the
|
|
121
|
+
composed schema that is
|
|
122
|
+
is traveled through is added to this set.
|
|
123
|
+
For example if Animal has a discriminator
|
|
124
|
+
petType and we pass in "Dog", and the class Dog
|
|
125
|
+
allOf includes Animal, we move through Animal
|
|
126
|
+
once using the discriminator, and pick Dog.
|
|
127
|
+
Then in Dog, we will make an instance of the
|
|
128
|
+
Animal class but this time we won't travel
|
|
129
|
+
through its discriminator because we passed in
|
|
130
|
+
_visited_composed_classes = (Animal,)
|
|
131
|
+
brand_ids ([int], none_type): [optional] # noqa: E501
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
135
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
136
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
137
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
138
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
139
|
+
|
|
140
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
141
|
+
|
|
142
|
+
if args:
|
|
143
|
+
for arg in args:
|
|
144
|
+
if isinstance(arg, dict):
|
|
145
|
+
kwargs.update(arg)
|
|
146
|
+
else:
|
|
147
|
+
raise ApiTypeError(
|
|
148
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
149
|
+
args,
|
|
150
|
+
self.__class__.__name__,
|
|
151
|
+
),
|
|
152
|
+
path_to_item=_path_to_item,
|
|
153
|
+
valid_classes=(self.__class__,),
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
self._data_store = {}
|
|
157
|
+
self._check_type = _check_type
|
|
158
|
+
self._spec_property_naming = _spec_property_naming
|
|
159
|
+
self._path_to_item = _path_to_item
|
|
160
|
+
self._configuration = _configuration
|
|
161
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
162
|
+
|
|
163
|
+
for var_name, var_value in kwargs.items():
|
|
164
|
+
if var_name not in self.attribute_map and \
|
|
165
|
+
self._configuration is not None and \
|
|
166
|
+
self._configuration.discard_unknown_keys and \
|
|
167
|
+
self.additional_properties_type is None:
|
|
168
|
+
# discard variable.
|
|
169
|
+
continue
|
|
170
|
+
setattr(self, var_name, var_value)
|
|
171
|
+
return self
|
|
172
|
+
|
|
173
|
+
required_properties = set([
|
|
174
|
+
'_data_store',
|
|
175
|
+
'_check_type',
|
|
176
|
+
'_spec_property_naming',
|
|
177
|
+
'_path_to_item',
|
|
178
|
+
'_configuration',
|
|
179
|
+
'_visited_composed_classes',
|
|
180
|
+
])
|
|
181
|
+
|
|
182
|
+
@convert_js_args_to_python_args
|
|
183
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
184
|
+
"""RetailMediaBrands - a model defined in OpenAPI
|
|
185
|
+
|
|
186
|
+
Keyword Args:
|
|
187
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
188
|
+
will be type checked and a TypeError will be
|
|
189
|
+
raised if the wrong type is input.
|
|
190
|
+
Defaults to True
|
|
191
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
192
|
+
drill down to the model in received_data
|
|
193
|
+
when deserializing a response
|
|
194
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
195
|
+
are serialized names, as specified in the OpenAPI document.
|
|
196
|
+
False if the variable names in the input data
|
|
197
|
+
are pythonic names, e.g. snake case (default)
|
|
198
|
+
_configuration (Configuration): the instance to use when
|
|
199
|
+
deserializing a file_type parameter.
|
|
200
|
+
If passed, type conversion is attempted
|
|
201
|
+
If omitted no type conversion is done.
|
|
202
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
203
|
+
classes that we have traveled through so that
|
|
204
|
+
if we see that class again we will not use its
|
|
205
|
+
discriminator again.
|
|
206
|
+
When traveling through a discriminator, the
|
|
207
|
+
composed schema that is
|
|
208
|
+
is traveled through is added to this set.
|
|
209
|
+
For example if Animal has a discriminator
|
|
210
|
+
petType and we pass in "Dog", and the class Dog
|
|
211
|
+
allOf includes Animal, we move through Animal
|
|
212
|
+
once using the discriminator, and pick Dog.
|
|
213
|
+
Then in Dog, we will make an instance of the
|
|
214
|
+
Animal class but this time we won't travel
|
|
215
|
+
through its discriminator because we passed in
|
|
216
|
+
_visited_composed_classes = (Animal,)
|
|
217
|
+
brand_ids ([int], none_type): [optional] # noqa: E501
|
|
218
|
+
"""
|
|
219
|
+
|
|
220
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
221
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
222
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
223
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
224
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
225
|
+
|
|
226
|
+
if args:
|
|
227
|
+
for arg in args:
|
|
228
|
+
if isinstance(arg, dict):
|
|
229
|
+
kwargs.update(arg)
|
|
230
|
+
else:
|
|
231
|
+
raise ApiTypeError(
|
|
232
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
233
|
+
args,
|
|
234
|
+
self.__class__.__name__,
|
|
235
|
+
),
|
|
236
|
+
path_to_item=_path_to_item,
|
|
237
|
+
valid_classes=(self.__class__,),
|
|
238
|
+
)
|
|
239
|
+
|
|
240
|
+
self._data_store = {}
|
|
241
|
+
self._check_type = _check_type
|
|
242
|
+
self._spec_property_naming = _spec_property_naming
|
|
243
|
+
self._path_to_item = _path_to_item
|
|
244
|
+
self._configuration = _configuration
|
|
245
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
246
|
+
|
|
247
|
+
for var_name, var_value in kwargs.items():
|
|
248
|
+
if var_name not in self.attribute_map and \
|
|
249
|
+
self._configuration is not None and \
|
|
250
|
+
self._configuration.discard_unknown_keys and \
|
|
251
|
+
self.additional_properties_type is None:
|
|
252
|
+
# discard variable.
|
|
253
|
+
continue
|
|
254
|
+
setattr(self, var_name, var_value)
|
|
255
|
+
if var_name in self.read_only_vars:
|
|
256
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
257
|
+
f"class with read only attributes.")
|
|
@@ -55,6 +55,31 @@ class SyncAttributedTransactionsReport(ModelNormal):
|
|
|
55
55
|
"""
|
|
56
56
|
|
|
57
57
|
allowed_values = {
|
|
58
|
+
('click_attribution_window',): {
|
|
59
|
+
'None': None,
|
|
60
|
+
'7D': "7D",
|
|
61
|
+
'14D': "14D",
|
|
62
|
+
'30D': "30D",
|
|
63
|
+
'NONE': "none",
|
|
64
|
+
},
|
|
65
|
+
('view_attribution_window',): {
|
|
66
|
+
'None': None,
|
|
67
|
+
'1D': "1D",
|
|
68
|
+
'7D': "7D",
|
|
69
|
+
'14D': "14D",
|
|
70
|
+
'30D': "30D",
|
|
71
|
+
'NONE': "none",
|
|
72
|
+
},
|
|
73
|
+
('campaign_type',): {
|
|
74
|
+
'None': None,
|
|
75
|
+
'SPONSOREDPRODUCTS': "sponsoredProducts",
|
|
76
|
+
'ONSITEDISPLAYS': "onSiteDisplays",
|
|
77
|
+
},
|
|
78
|
+
('sales_channel',): {
|
|
79
|
+
'None': None,
|
|
80
|
+
'OFFLINE': "offline",
|
|
81
|
+
'ONLINE': "online",
|
|
82
|
+
},
|
|
58
83
|
('dimensions',): {
|
|
59
84
|
'None': None,
|
|
60
85
|
'CAMPAIGNNAME': "campaignName",
|
|
@@ -89,31 +114,6 @@ class SyncAttributedTransactionsReport(ModelNormal):
|
|
|
89
114
|
'ATTRIBUTEDUNITS': "attributedUnits",
|
|
90
115
|
'ATTRIBUTEDSALES': "attributedSales",
|
|
91
116
|
},
|
|
92
|
-
('click_attribution_window',): {
|
|
93
|
-
'None': None,
|
|
94
|
-
'7D': "7D",
|
|
95
|
-
'14D': "14D",
|
|
96
|
-
'30D': "30D",
|
|
97
|
-
'NONE': "none",
|
|
98
|
-
},
|
|
99
|
-
('view_attribution_window',): {
|
|
100
|
-
'None': None,
|
|
101
|
-
'1D': "1D",
|
|
102
|
-
'7D': "7D",
|
|
103
|
-
'14D': "14D",
|
|
104
|
-
'30D': "30D",
|
|
105
|
-
'NONE': "none",
|
|
106
|
-
},
|
|
107
|
-
('campaign_type',): {
|
|
108
|
-
'None': None,
|
|
109
|
-
'SPONSOREDPRODUCTS': "sponsoredProducts",
|
|
110
|
-
'ONSITEDISPLAYS': "onSiteDisplays",
|
|
111
|
-
},
|
|
112
|
-
('sales_channel',): {
|
|
113
|
-
'None': None,
|
|
114
|
-
'OFFLINE': "offline",
|
|
115
|
-
'ONLINE': "online",
|
|
116
|
-
},
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
validations = {
|
|
@@ -145,12 +145,12 @@ class SyncAttributedTransactionsReport(ModelNormal):
|
|
|
145
145
|
'end_date': (datetime,), # noqa: E501
|
|
146
146
|
'campaign_ids': ([str], none_type,), # noqa: E501
|
|
147
147
|
'line_item_ids': ([str], none_type,), # noqa: E501
|
|
148
|
-
'dimensions': ([str], none_type,), # noqa: E501
|
|
149
|
-
'metrics': ([str], none_type,), # noqa: E501
|
|
150
148
|
'click_attribution_window': (str, none_type,), # noqa: E501
|
|
151
149
|
'view_attribution_window': (str, none_type,), # noqa: E501
|
|
152
150
|
'campaign_type': (str, none_type,), # noqa: E501
|
|
153
151
|
'sales_channel': (str, none_type,), # noqa: E501
|
|
152
|
+
'dimensions': ([str], none_type,), # noqa: E501
|
|
153
|
+
'metrics': ([str], none_type,), # noqa: E501
|
|
154
154
|
'timezone': (str, none_type,), # noqa: E501
|
|
155
155
|
}
|
|
156
156
|
|
|
@@ -165,12 +165,12 @@ class SyncAttributedTransactionsReport(ModelNormal):
|
|
|
165
165
|
'end_date': 'endDate', # noqa: E501
|
|
166
166
|
'campaign_ids': 'campaignIds', # noqa: E501
|
|
167
167
|
'line_item_ids': 'lineItemIds', # noqa: E501
|
|
168
|
-
'dimensions': 'dimensions', # noqa: E501
|
|
169
|
-
'metrics': 'metrics', # noqa: E501
|
|
170
168
|
'click_attribution_window': 'clickAttributionWindow', # noqa: E501
|
|
171
169
|
'view_attribution_window': 'viewAttributionWindow', # noqa: E501
|
|
172
170
|
'campaign_type': 'campaignType', # noqa: E501
|
|
173
171
|
'sales_channel': 'salesChannel', # noqa: E501
|
|
172
|
+
'dimensions': 'dimensions', # noqa: E501
|
|
173
|
+
'metrics': 'metrics', # noqa: E501
|
|
174
174
|
'timezone': 'timezone', # noqa: E501
|
|
175
175
|
}
|
|
176
176
|
|
|
@@ -220,14 +220,14 @@ class SyncAttributedTransactionsReport(ModelNormal):
|
|
|
220
220
|
Animal class but this time we won't travel
|
|
221
221
|
through its discriminator because we passed in
|
|
222
222
|
_visited_composed_classes = (Animal,)
|
|
223
|
-
campaign_ids ([str], none_type): Campaign ids to
|
|
224
|
-
line_item_ids ([str], none_type): Line item ids to
|
|
225
|
-
dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501
|
|
226
|
-
metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501
|
|
223
|
+
campaign_ids ([str], none_type): Campaign ids to filter. [optional] # noqa: E501
|
|
224
|
+
line_item_ids ([str], none_type): Line item ids to filter. [optional] # noqa: E501
|
|
227
225
|
click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
|
|
228
226
|
view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
|
|
229
227
|
campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501
|
|
230
228
|
sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501
|
|
229
|
+
dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501
|
|
230
|
+
metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501
|
|
231
231
|
timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501
|
|
232
232
|
"""
|
|
233
233
|
|
|
@@ -322,14 +322,14 @@ class SyncAttributedTransactionsReport(ModelNormal):
|
|
|
322
322
|
Animal class but this time we won't travel
|
|
323
323
|
through its discriminator because we passed in
|
|
324
324
|
_visited_composed_classes = (Animal,)
|
|
325
|
-
campaign_ids ([str], none_type): Campaign ids to
|
|
326
|
-
line_item_ids ([str], none_type): Line item ids to
|
|
327
|
-
dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501
|
|
328
|
-
metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501
|
|
325
|
+
campaign_ids ([str], none_type): Campaign ids to filter. [optional] # noqa: E501
|
|
326
|
+
line_item_ids ([str], none_type): Line item ids to filter. [optional] # noqa: E501
|
|
329
327
|
click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
|
|
330
328
|
view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
|
|
331
329
|
campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501
|
|
332
330
|
sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501
|
|
331
|
+
dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501
|
|
332
|
+
metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501
|
|
333
333
|
timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501
|
|
334
334
|
"""
|
|
335
335
|
|
|
@@ -65,43 +65,6 @@ class SyncCampaignsReport(ModelNormal):
|
|
|
65
65
|
'ENVIRONMENT': "environment",
|
|
66
66
|
'SERVEDCATEGORY': "servedCategory",
|
|
67
67
|
},
|
|
68
|
-
('metrics',): {
|
|
69
|
-
'None': None,
|
|
70
|
-
'IMPRESSIONS': "impressions",
|
|
71
|
-
'CLICKS': "clicks",
|
|
72
|
-
'SPEND': "spend",
|
|
73
|
-
'ATTRIBUTEDSALES': "attributedSales",
|
|
74
|
-
'ATTRIBUTEDUNITS': "attributedUnits",
|
|
75
|
-
'ATTRIBUTEDORDERS': "attributedOrders",
|
|
76
|
-
'CTR': "ctr",
|
|
77
|
-
'CPC': "cpc",
|
|
78
|
-
'CPO': "cpo",
|
|
79
|
-
'CPM': "cpm",
|
|
80
|
-
'ROAS': "roas",
|
|
81
|
-
'UNIQUEVISITORS': "uniqueVisitors",
|
|
82
|
-
'FREQUENCY': "frequency",
|
|
83
|
-
'ASSISTEDUNITS': "assistedUnits",
|
|
84
|
-
'ASSISTEDSALES': "assistedSales",
|
|
85
|
-
},
|
|
86
|
-
('dimensions',): {
|
|
87
|
-
'None': None,
|
|
88
|
-
'DATE': "date",
|
|
89
|
-
'HOUR': "hour",
|
|
90
|
-
'CAMPAIGNID': "campaignId",
|
|
91
|
-
'CAMPAIGNNAME': "campaignName",
|
|
92
|
-
'CAMPAIGNTYPENAME': "campaignTypeName",
|
|
93
|
-
'ADVPRODUCTCATEGORY': "advProductCategory",
|
|
94
|
-
'ADVPRODUCTID': "advProductId",
|
|
95
|
-
'ADVPRODUCTNAME': "advProductName",
|
|
96
|
-
'BRANDID': "brandId",
|
|
97
|
-
'BRANDNAME': "brandName",
|
|
98
|
-
'PAGETYPENAME': "pageTypeName",
|
|
99
|
-
'ENVIRONMENT': "environment",
|
|
100
|
-
'KEYWORD': "keyword",
|
|
101
|
-
'SALESCHANNEL': "salesChannel",
|
|
102
|
-
'RETAILERID': "retailerId",
|
|
103
|
-
'RETAILERNAME': "retailerName",
|
|
104
|
-
},
|
|
105
68
|
('click_attribution_window',): {
|
|
106
69
|
'None': None,
|
|
107
70
|
'7D': "7D",
|
|
@@ -127,6 +90,47 @@ class SyncCampaignsReport(ModelNormal):
|
|
|
127
90
|
'OFFLINE': "offline",
|
|
128
91
|
'ONLINE': "online",
|
|
129
92
|
},
|
|
93
|
+
('dimensions',): {
|
|
94
|
+
'None': None,
|
|
95
|
+
'DATE': "date",
|
|
96
|
+
'HOUR': "hour",
|
|
97
|
+
'ACCOUNTID': "accountId",
|
|
98
|
+
'ACCOUNTNAME': "accountName",
|
|
99
|
+
'CAMPAIGNID': "campaignId",
|
|
100
|
+
'CAMPAIGNNAME': "campaignName",
|
|
101
|
+
'CAMPAIGNTYPENAME': "campaignTypeName",
|
|
102
|
+
'ADVPRODUCTCATEGORY': "advProductCategory",
|
|
103
|
+
'ADVPRODUCTID': "advProductId",
|
|
104
|
+
'ADVPRODUCTNAME': "advProductName",
|
|
105
|
+
'BRANDID': "brandId",
|
|
106
|
+
'BRANDNAME': "brandName",
|
|
107
|
+
'LINEITEMID': "lineItemId",
|
|
108
|
+
'LINEITEMNAME': "lineItemName",
|
|
109
|
+
'RETAILERID': "retailerId",
|
|
110
|
+
'RETAILERNAME': "retailerName",
|
|
111
|
+
'KEYWORD': "keyword",
|
|
112
|
+
'PAGETYPENAME': "pageTypeName",
|
|
113
|
+
'SALESCHANNEL': "salesChannel",
|
|
114
|
+
'ENVIRONMENT': "environment",
|
|
115
|
+
},
|
|
116
|
+
('metrics',): {
|
|
117
|
+
'None': None,
|
|
118
|
+
'IMPRESSIONS': "impressions",
|
|
119
|
+
'CLICKS': "clicks",
|
|
120
|
+
'SPEND': "spend",
|
|
121
|
+
'ATTRIBUTEDSALES': "attributedSales",
|
|
122
|
+
'ATTRIBUTEDUNITS': "attributedUnits",
|
|
123
|
+
'ATTRIBUTEDORDERS': "attributedOrders",
|
|
124
|
+
'ASSISTEDSALES': "assistedSales",
|
|
125
|
+
'ASSISTEDUNITS': "assistedUnits",
|
|
126
|
+
'CTR': "ctr",
|
|
127
|
+
'CPC': "cpc",
|
|
128
|
+
'CPO': "cpo",
|
|
129
|
+
'CPM': "cpm",
|
|
130
|
+
'ROAS': "roas",
|
|
131
|
+
'UNIQUEVISITORS': "uniqueVisitors",
|
|
132
|
+
'FREQUENCY': "frequency",
|
|
133
|
+
},
|
|
130
134
|
}
|
|
131
135
|
|
|
132
136
|
validations = {
|
|
@@ -158,12 +162,12 @@ class SyncCampaignsReport(ModelNormal):
|
|
|
158
162
|
'end_date': (datetime,), # noqa: E501
|
|
159
163
|
'report_type': (str, none_type,), # noqa: E501
|
|
160
164
|
'campaign_ids': ([str], none_type,), # noqa: E501
|
|
161
|
-
'metrics': ([str], none_type,), # noqa: E501
|
|
162
|
-
'dimensions': ([str], none_type,), # noqa: E501
|
|
163
165
|
'click_attribution_window': (str, none_type,), # noqa: E501
|
|
164
166
|
'view_attribution_window': (str, none_type,), # noqa: E501
|
|
165
167
|
'campaign_type': (str, none_type,), # noqa: E501
|
|
166
168
|
'sales_channel': (str, none_type,), # noqa: E501
|
|
169
|
+
'dimensions': ([str], none_type,), # noqa: E501
|
|
170
|
+
'metrics': ([str], none_type,), # noqa: E501
|
|
167
171
|
'timezone': (str, none_type,), # noqa: E501
|
|
168
172
|
}
|
|
169
173
|
|
|
@@ -178,12 +182,12 @@ class SyncCampaignsReport(ModelNormal):
|
|
|
178
182
|
'end_date': 'endDate', # noqa: E501
|
|
179
183
|
'report_type': 'reportType', # noqa: E501
|
|
180
184
|
'campaign_ids': 'campaignIds', # noqa: E501
|
|
181
|
-
'metrics': 'metrics', # noqa: E501
|
|
182
|
-
'dimensions': 'dimensions', # noqa: E501
|
|
183
185
|
'click_attribution_window': 'clickAttributionWindow', # noqa: E501
|
|
184
186
|
'view_attribution_window': 'viewAttributionWindow', # noqa: E501
|
|
185
187
|
'campaign_type': 'campaignType', # noqa: E501
|
|
186
188
|
'sales_channel': 'salesChannel', # noqa: E501
|
|
189
|
+
'dimensions': 'dimensions', # noqa: E501
|
|
190
|
+
'metrics': 'metrics', # noqa: E501
|
|
187
191
|
'timezone': 'timezone', # noqa: E501
|
|
188
192
|
}
|
|
189
193
|
|
|
@@ -234,13 +238,13 @@ class SyncCampaignsReport(ModelNormal):
|
|
|
234
238
|
through its discriminator because we passed in
|
|
235
239
|
_visited_composed_classes = (Animal,)
|
|
236
240
|
report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501
|
|
237
|
-
campaign_ids ([str], none_type):
|
|
238
|
-
metrics ([str], none_type): List of Metrics to report on. [optional] # noqa: E501
|
|
239
|
-
dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501
|
|
241
|
+
campaign_ids ([str], none_type): Campaign ids to filter. [optional] # noqa: E501
|
|
240
242
|
click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
|
|
241
243
|
view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
|
|
242
244
|
campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501
|
|
243
245
|
sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501
|
|
246
|
+
dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501
|
|
247
|
+
metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501
|
|
244
248
|
timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501
|
|
245
249
|
"""
|
|
246
250
|
|
|
@@ -336,13 +340,13 @@ class SyncCampaignsReport(ModelNormal):
|
|
|
336
340
|
through its discriminator because we passed in
|
|
337
341
|
_visited_composed_classes = (Animal,)
|
|
338
342
|
report_type (str, none_type): Type of report, if no dimensions/metrics are provided, falls back to summary reportType. [optional] if omitted the server will use the default value of "summary" # noqa: E501
|
|
339
|
-
campaign_ids ([str], none_type):
|
|
340
|
-
metrics ([str], none_type): List of Metrics to report on. [optional] # noqa: E501
|
|
341
|
-
dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501
|
|
343
|
+
campaign_ids ([str], none_type): Campaign ids to filter. [optional] # noqa: E501
|
|
342
344
|
click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
|
|
343
345
|
view_attribution_window (str, none_type): View attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
|
|
344
346
|
campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] # noqa: E501
|
|
345
347
|
sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] # noqa: E501
|
|
348
|
+
dimensions ([str], none_type): List of dimensions to report on. [optional] # noqa: E501
|
|
349
|
+
metrics ([str], none_type): List of metrics to report on. [optional] # noqa: E501
|
|
346
350
|
timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501
|
|
347
351
|
"""
|
|
348
352
|
|