criteo-api-retailmedia-sdk 0.0.250320__py3-none-any.whl → 0.0.250409__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.

Files changed (209) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +302 -6
  3. criteo_api_retailmedia_preview/api/analytics_api.py +144 -2
  4. criteo_api_retailmedia_preview/api/balance_api.py +12 -12
  5. criteo_api_retailmedia_preview/api/campaign_api.py +387 -76
  6. criteo_api_retailmedia_preview/api_client.py +1 -1
  7. criteo_api_retailmedia_preview/configuration.py +1 -1
  8. criteo_api_retailmedia_preview/model/account_fees_search_request.py +257 -0
  9. criteo_api_retailmedia_preview/model/account_fees_update_request.py +274 -0
  10. criteo_api_retailmedia_preview/model/account_fees_update_result.py +261 -0
  11. criteo_api_retailmedia_preview/model/add_remove_keyword_model.py +8 -8
  12. criteo_api_retailmedia_preview/model/add_remove_keywords_model_resource.py +4 -4
  13. criteo_api_retailmedia_preview/model/application_summary_model.py +8 -8
  14. criteo_api_retailmedia_preview/model/application_summary_model_resource.py +4 -4
  15. criteo_api_retailmedia_preview/model/application_summary_model_response.py +5 -5
  16. criteo_api_retailmedia_preview/model/async_accounts_report.py +71 -71
  17. criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +4 -4
  18. criteo_api_retailmedia_preview/model/async_campaigns_report.py +79 -79
  19. criteo_api_retailmedia_preview/model/async_campaigns_report_resource.py +4 -4
  20. criteo_api_retailmedia_preview/model/async_fill_rate_report.py +14 -14
  21. criteo_api_retailmedia_preview/model/async_fill_rate_report_resource.py +4 -4
  22. criteo_api_retailmedia_preview/model/async_line_items_report.py +79 -79
  23. criteo_api_retailmedia_preview/model/async_line_items_report_resource.py +4 -4
  24. criteo_api_retailmedia_preview/model/async_offsite_report.py +434 -0
  25. criteo_api_retailmedia_preview/model/async_offsite_report_request.py +269 -0
  26. criteo_api_retailmedia_preview/model/async_offsite_report_resource.py +273 -0
  27. criteo_api_retailmedia_preview/model/async_report_response.py +5 -5
  28. criteo_api_retailmedia_preview/model/audience_error.py +16 -16
  29. criteo_api_retailmedia_preview/model/audience_warning.py +22 -22
  30. criteo_api_retailmedia_preview/model/balance_history_change_data_capture_v1.py +14 -14
  31. criteo_api_retailmedia_preview/model/balance_response_v2.py +45 -45
  32. criteo_api_retailmedia_preview/model/balance_response_v2_response.py +5 -5
  33. criteo_api_retailmedia_preview/model/bot_message.py +4 -4
  34. criteo_api_retailmedia_preview/model/brand_catalog_request_v2.py +9 -9
  35. criteo_api_retailmedia_preview/model/brand_id_search_request.py +4 -4
  36. criteo_api_retailmedia_preview/model/brand_id_search_result.py +8 -8
  37. criteo_api_retailmedia_preview/model/brand_preview_list_response.py +5 -5
  38. criteo_api_retailmedia_preview/model/catalog_status_v2.py +12 -12
  39. criteo_api_retailmedia_preview/model/category202204.py +8 -8
  40. criteo_api_retailmedia_preview/model/change_dates_of_balance_v2.py +4 -4
  41. criteo_api_retailmedia_preview/model/change_details_v1.py +8 -8
  42. criteo_api_retailmedia_preview/model/common_error.py +16 -16
  43. criteo_api_retailmedia_preview/model/common_problem.py +20 -20
  44. criteo_api_retailmedia_preview/model/common_warning.py +16 -16
  45. criteo_api_retailmedia_preview/model/cpc_rate_card_preview.py +4 -4
  46. criteo_api_retailmedia_preview/model/cpc_rate_card_preview_response.py +5 -5
  47. criteo_api_retailmedia_preview/model/create_balance_v2.py +12 -12
  48. criteo_api_retailmedia_preview/model/creative2.py +50 -50
  49. criteo_api_retailmedia_preview/model/creative2_list_response.py +5 -5
  50. criteo_api_retailmedia_preview/model/creative2_response.py +5 -5
  51. criteo_api_retailmedia_preview/model/demand_managed_fee.py +267 -0
  52. criteo_api_retailmedia_preview/model/entity_resource_brand_id_search_result.py +4 -4
  53. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_brand_id_search_result_paging_offset_limit_metadata.py +9 -9
  54. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_line_item_keyword_review_report_and_metadata.py +280 -0
  55. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_of_retail_media_child_account_and_metadata.py +9 -9
  56. criteo_api_retailmedia_preview/model/entity_resource_line_item_keyword_review_report.py +270 -0
  57. criteo_api_retailmedia_preview/model/{resource_of_catalog_status_v2.py → entity_resource_of_catalog_status_v2.py} +7 -7
  58. criteo_api_retailmedia_preview/model/entity_resource_of_retail_media_child_account.py +4 -4
  59. criteo_api_retailmedia_preview/model/{catalog_status_v2_response.py → entity_resource_outcome_of_catalog_status_v2.py} +18 -18
  60. criteo_api_retailmedia_preview/model/entity_resource_outcome_partner_billing_report_status_v1.py +5 -5
  61. criteo_api_retailmedia_preview/model/entity_resource_partner_billing_report_status_v1.py +4 -4
  62. criteo_api_retailmedia_preview/model/export_report_column.py +30 -30
  63. criteo_api_retailmedia_preview/model/external_line_item_bid_multipliers_v2.py +28 -28
  64. criteo_api_retailmedia_preview/model/external_line_item_capping_v2.py +9 -9
  65. criteo_api_retailmedia_preview/model/external_line_item_page_v2.py +3 -3
  66. criteo_api_retailmedia_preview/model/external_preferred_line_item_create_model_v2.py +24 -24
  67. criteo_api_retailmedia_preview/model/external_preferred_line_item_update_model_v2.py +20 -20
  68. criteo_api_retailmedia_preview/model/external_preferred_line_item_v2.py +36 -36
  69. criteo_api_retailmedia_preview/model/external_product_button_request.py +8 -8
  70. criteo_api_retailmedia_preview/model/external_product_button_response.py +14 -14
  71. criteo_api_retailmedia_preview/model/external_retail_media_child_account.py +22 -22
  72. criteo_api_retailmedia_preview/model/grant_consent_model.py +8 -8
  73. criteo_api_retailmedia_preview/model/grant_consent_model_value_resource.py +4 -4
  74. criteo_api_retailmedia_preview/model/input_resource_of_preferred_line_item_create_model_v2.py +4 -4
  75. criteo_api_retailmedia_preview/model/installment.py +4 -4
  76. criteo_api_retailmedia_preview/model/keyword_data_model.py +12 -12
  77. criteo_api_retailmedia_preview/model/keywords.py +18 -18
  78. criteo_api_retailmedia_preview/model/keywords_model_resource.py +4 -4
  79. criteo_api_retailmedia_preview/model/keywords_model_response.py +4 -4
  80. criteo_api_retailmedia_preview/model/line_item_bid_multipliers_v2_response.py +5 -5
  81. criteo_api_retailmedia_preview/model/line_item_keyword_review_report.py +311 -0
  82. criteo_api_retailmedia_preview/model/managed_service_fee.py +279 -0
  83. criteo_api_retailmedia_preview/model/message.py +4 -4
  84. criteo_api_retailmedia_preview/model/message_error.py +8 -8
  85. criteo_api_retailmedia_preview/model/metadata.py +8 -8
  86. criteo_api_retailmedia_preview/model/outcome.py +5 -5
  87. criteo_api_retailmedia_preview/model/page_metadata.py +16 -16
  88. criteo_api_retailmedia_preview/model/page_of_balance_history_change_data_capture_v1.py +8 -8
  89. criteo_api_retailmedia_preview/model/page_type_environment2.py +14 -14
  90. criteo_api_retailmedia_preview/model/paged_resource_collection_outcome_of_balance_response_v2.py +9 -9
  91. criteo_api_retailmedia_preview/model/paging_offset_limit_metadata.py +8 -8
  92. criteo_api_retailmedia_preview/model/partner_billing_report_request_v1.py +12 -14
  93. criteo_api_retailmedia_preview/model/partner_billing_report_status_v1.py +12 -12
  94. criteo_api_retailmedia_preview/model/placement_preview.py +24 -24
  95. criteo_api_retailmedia_preview/model/placement_preview_list_response.py +5 -5
  96. criteo_api_retailmedia_preview/model/preferred_line_item_v2_paged_list_response.py +9 -9
  97. criteo_api_retailmedia_preview/model/preferred_line_item_v2_response.py +5 -5
  98. criteo_api_retailmedia_preview/model/private_market_account_fees.py +266 -0
  99. criteo_api_retailmedia_preview/model/private_market_fees.py +276 -0
  100. criteo_api_retailmedia_preview/model/problem_details.py +20 -20
  101. criteo_api_retailmedia_preview/model/product.py +242 -242
  102. criteo_api_retailmedia_preview/model/product_button_list_response.py +5 -5
  103. criteo_api_retailmedia_preview/model/product_importer_error.py +20 -20
  104. criteo_api_retailmedia_preview/model/product_importer_warning.py +20 -20
  105. criteo_api_retailmedia_preview/model/product_metadata.py +8 -8
  106. criteo_api_retailmedia_preview/model/product_recommendation.py +16 -16
  107. criteo_api_retailmedia_preview/model/product_shipping.py +16 -16
  108. criteo_api_retailmedia_preview/model/product_shipping_dimension.py +4 -4
  109. criteo_api_retailmedia_preview/model/product_shipping_weight.py +4 -4
  110. criteo_api_retailmedia_preview/model/product_tax.py +12 -12
  111. criteo_api_retailmedia_preview/model/product_unit_pricing_base_measure.py +4 -4
  112. criteo_api_retailmedia_preview/model/product_unit_pricing_measure.py +4 -4
  113. criteo_api_retailmedia_preview/model/products_custom_batch_request_entry.py +8 -8
  114. criteo_api_retailmedia_preview/model/promoted_product.py +4 -4
  115. criteo_api_retailmedia_preview/model/promoted_product_resource.py +4 -4
  116. criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py +8 -8
  117. criteo_api_retailmedia_preview/model/report_data_response_resource.py +4 -4
  118. criteo_api_retailmedia_preview/model/report_detail_error.py +14 -14
  119. criteo_api_retailmedia_preview/model/report_detail_errors.py +8 -8
  120. criteo_api_retailmedia_preview/model/report_detail_warning.py +14 -14
  121. criteo_api_retailmedia_preview/model/report_ok_response.py +20 -20
  122. criteo_api_retailmedia_preview/model/report_outcome.py +5 -5
  123. criteo_api_retailmedia_preview/model/report_response.py +9 -9
  124. criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_update_model_v2.py +4 -4
  125. criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_v2.py +4 -4
  126. criteo_api_retailmedia_preview/model/resource_of_seller_preview.py +4 -4
  127. criteo_api_retailmedia_preview/model/resource_of_sku_data_preview.py +4 -4
  128. criteo_api_retailmedia_preview/model/resource_of_sku_search_request_preview.py +4 -4
  129. criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_attributes.py +8 -8
  130. criteo_api_retailmedia_preview/model/retail_media_keywords_review.py +271 -0
  131. criteo_api_retailmedia_preview/model/retail_media_keywords_review_result.py +271 -0
  132. criteo_api_retailmedia_preview/model/retail_media_seller.py +8 -8
  133. criteo_api_retailmedia_preview/model/review_set_state.py +278 -0
  134. criteo_api_retailmedia_preview/model/rm_algebra_node_v1.py +8 -8
  135. criteo_api_retailmedia_preview/model/rm_audience_entity_v1.py +20 -20
  136. criteo_api_retailmedia_preview/model/rm_audience_entity_v1_rm_audience_search_metadata_v1_list_response.py +9 -9
  137. criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1.py +4 -4
  138. criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1_resource.py +4 -4
  139. criteo_api_retailmedia_preview/model/rm_audience_search_metadata_v1.py +4 -4
  140. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +4 -4
  141. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1_resource.py +4 -4
  142. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py +30 -30
  143. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1_list_response.py +5 -5
  144. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1_rm_audience_segment_search_metadata_v1_list_response.py +9 -9
  145. criteo_api_retailmedia_preview/model/rm_audience_segment_id_entity_v1_list_response.py +5 -5
  146. criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +4 -4
  147. criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1_resource.py +4 -4
  148. criteo_api_retailmedia_preview/model/rm_audience_segment_search_metadata_v1.py +4 -4
  149. criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1.py +8 -8
  150. criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1.py +4 -4
  151. criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1_response.py +5 -5
  152. criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +4 -4
  153. criteo_api_retailmedia_preview/model/rm_events_v1.py +23 -23
  154. criteo_api_retailmedia_preview/model/rmca_common_problem.py +16 -16
  155. criteo_api_retailmedia_preview/model/sdk_api_rest_common_problem.py +16 -16
  156. criteo_api_retailmedia_preview/model/seller_catalog_request_v2.py +8 -8
  157. criteo_api_retailmedia_preview/model/seller_preview_response.py +5 -5
  158. criteo_api_retailmedia_preview/model/set_bid_model.py +4 -4
  159. criteo_api_retailmedia_preview/model/set_bids_model_resource.py +4 -4
  160. criteo_api_retailmedia_preview/model/sku_data_preview.py +60 -60
  161. criteo_api_retailmedia_preview/model/sku_data_preview_list_response.py +5 -5
  162. criteo_api_retailmedia_preview/model/sku_min_bid.py +8 -8
  163. criteo_api_retailmedia_preview/model/sku_search_request_preview.py +17 -17
  164. criteo_api_retailmedia_preview/model/sku_search_request_slim_preview.py +8 -8
  165. criteo_api_retailmedia_preview/model/sku_slim_data_preview.py +30 -30
  166. criteo_api_retailmedia_preview/model/sku_slim_data_preview_list_response.py +5 -5
  167. criteo_api_retailmedia_preview/model/sku_slim_data_v2.py +24 -24
  168. criteo_api_retailmedia_preview/model/sku_slim_data_v2_list_response.py +5 -5
  169. criteo_api_retailmedia_preview/model/status_response.py +20 -20
  170. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +41 -41
  171. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report_resource.py +4 -4
  172. criteo_api_retailmedia_preview/model/sync_campaigns_report.py +48 -48
  173. criteo_api_retailmedia_preview/model/sync_campaigns_report_resource.py +4 -4
  174. criteo_api_retailmedia_preview/model/sync_line_items_report.py +52 -52
  175. criteo_api_retailmedia_preview/model/sync_line_items_report_resource.py +4 -4
  176. criteo_api_retailmedia_preview/model/template_variable_value.py +4 -4
  177. criteo_api_retailmedia_preview/model/update_balance_model_v2.py +8 -8
  178. criteo_api_retailmedia_preview/model/value_resource_account_fees_search_request.py +266 -0
  179. criteo_api_retailmedia_preview/model/value_resource_account_fees_update_request.py +266 -0
  180. criteo_api_retailmedia_preview/model/value_resource_account_fees_update_result.py +266 -0
  181. criteo_api_retailmedia_preview/model/value_resource_brand_id_search_request.py +4 -4
  182. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_seller_search_result.py +5 -5
  183. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_private_market_account_fees.py +274 -0
  184. criteo_api_retailmedia_preview/model/value_resource_cpc_min_bids_request.py +4 -4
  185. criteo_api_retailmedia_preview/model/value_resource_cpc_min_bids_response.py +4 -4
  186. criteo_api_retailmedia_preview/model/value_resource_input_account_fees_search_request.py +262 -0
  187. criteo_api_retailmedia_preview/model/value_resource_input_account_fees_update_request.py +262 -0
  188. criteo_api_retailmedia_preview/model/{json_api_request_of_brand_catalog_request_v2.py → value_resource_input_of_brand_catalog_request_v2.py} +8 -8
  189. criteo_api_retailmedia_preview/model/{json_api_request_of_seller_catalog_request_v2.py → value_resource_input_of_seller_catalog_request_v2.py} +8 -8
  190. criteo_api_retailmedia_preview/model/value_resource_input_retail_media_keywords_review.py +262 -0
  191. criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_brand_catalog_request_v2_and_brand_catalog_request_v2.py → value_resource_of_brand_catalog_request_v2.py} +10 -16
  192. criteo_api_retailmedia_preview/model/value_resource_of_recommended_keywords_result.py +4 -4
  193. criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_seller_catalog_request_v2_and_seller_catalog_request_v2.py → value_resource_of_seller_catalog_request_v2.py} +10 -16
  194. criteo_api_retailmedia_preview/model/value_resource_of_seller_search.py +4 -4
  195. criteo_api_retailmedia_preview/model/value_resource_of_seller_search_result.py +4 -4
  196. criteo_api_retailmedia_preview/model/value_resource_outcome_account_fees_update_result.py +274 -0
  197. criteo_api_retailmedia_preview/model/value_resource_outcome_cpc_min_bids_response.py +5 -5
  198. criteo_api_retailmedia_preview/model/value_resource_outcome_of_recommended_keywords_result.py +5 -5
  199. criteo_api_retailmedia_preview/model/value_resource_outcome_retail_media_keywords_review_result.py +274 -0
  200. criteo_api_retailmedia_preview/model/value_resource_partner_billing_report_request_v1.py +4 -4
  201. criteo_api_retailmedia_preview/model/value_resource_private_market_account_fees.py +266 -0
  202. criteo_api_retailmedia_preview/model/value_resource_retail_media_keywords_review.py +266 -0
  203. criteo_api_retailmedia_preview/model/value_resource_retail_media_keywords_review_result.py +266 -0
  204. criteo_api_retailmedia_preview/model/video_variable_value.py +16 -16
  205. criteo_api_retailmedia_preview/models/__init__.py +34 -6
  206. {criteo_api_retailmedia_sdk-0.0.250320.dist-info → criteo_api_retailmedia_sdk-0.0.250409.dist-info}/METADATA +3 -3
  207. {criteo_api_retailmedia_sdk-0.0.250320.dist-info → criteo_api_retailmedia_sdk-0.0.250409.dist-info}/RECORD +209 -181
  208. {criteo_api_retailmedia_sdk-0.0.250320.dist-info → criteo_api_retailmedia_sdk-0.0.250409.dist-info}/WHEEL +1 -1
  209. {criteo_api_retailmedia_sdk-0.0.250320.dist-info → criteo_api_retailmedia_sdk-0.0.250409.dist-info}/top_level.txt +0 -0
@@ -84,11 +84,11 @@ class KeywordDataModel(ModelNormal):
84
84
  """
85
85
  lazy_import()
86
86
  return {
87
- 'review_state': (ReviewStateModel,), # noqa: E501
88
- 'match_type': (MatchTypeModel,), # noqa: E501
89
87
  'bid': (float, none_type,), # noqa: E501
90
- 'input_keywords': (InputKeywordsModel,), # noqa: E501
91
88
  'created_at': (datetime,), # noqa: E501
89
+ 'input_keywords': (InputKeywordsModel,), # noqa: E501
90
+ 'match_type': (MatchTypeModel,), # noqa: E501
91
+ 'review_state': (ReviewStateModel,), # noqa: E501
92
92
  'updated_at': (datetime,), # noqa: E501
93
93
  }
94
94
 
@@ -98,11 +98,11 @@ class KeywordDataModel(ModelNormal):
98
98
 
99
99
 
100
100
  attribute_map = {
101
- 'review_state': 'reviewState', # noqa: E501
102
- 'match_type': 'matchType', # noqa: E501
103
101
  'bid': 'bid', # noqa: E501
104
- 'input_keywords': 'inputKeywords', # noqa: E501
105
102
  'created_at': 'createdAt', # noqa: E501
103
+ 'input_keywords': 'inputKeywords', # noqa: E501
104
+ 'match_type': 'matchType', # noqa: E501
105
+ 'review_state': 'reviewState', # noqa: E501
106
106
  'updated_at': 'updatedAt', # noqa: E501
107
107
  }
108
108
 
@@ -147,11 +147,11 @@ class KeywordDataModel(ModelNormal):
147
147
  Animal class but this time we won't travel
148
148
  through its discriminator because we passed in
149
149
  _visited_composed_classes = (Animal,)
150
- review_state (ReviewStateModel): [optional] # noqa: E501
151
- match_type (MatchTypeModel): [optional] # noqa: E501
152
150
  bid (float, none_type): [optional] # noqa: E501
153
- input_keywords (InputKeywordsModel): [optional] # noqa: E501
154
151
  created_at (datetime): [optional] # noqa: E501
152
+ input_keywords (InputKeywordsModel): [optional] # noqa: E501
153
+ match_type (MatchTypeModel): [optional] # noqa: E501
154
+ review_state (ReviewStateModel): [optional] # noqa: E501
155
155
  updated_at (datetime): [optional] # noqa: E501
156
156
  """
157
157
 
@@ -238,11 +238,11 @@ class KeywordDataModel(ModelNormal):
238
238
  Animal class but this time we won't travel
239
239
  through its discriminator because we passed in
240
240
  _visited_composed_classes = (Animal,)
241
- review_state (ReviewStateModel): [optional] # noqa: E501
242
- match_type (MatchTypeModel): [optional] # noqa: E501
243
241
  bid (float, none_type): [optional] # noqa: E501
244
- input_keywords (InputKeywordsModel): [optional] # noqa: E501
245
242
  created_at (datetime): [optional] # noqa: E501
243
+ input_keywords (InputKeywordsModel): [optional] # noqa: E501
244
+ match_type (MatchTypeModel): [optional] # noqa: E501
245
+ review_state (ReviewStateModel): [optional] # noqa: E501
246
246
  updated_at (datetime): [optional] # noqa: E501
247
247
  """
248
248
 
@@ -59,6 +59,12 @@ class Keywords(ModelNormal):
59
59
  """
60
60
 
61
61
  allowed_values = {
62
+ ('match_type',): {
63
+ 'POSITIVEEXACTMATCH': "PositiveExactMatch",
64
+ 'NEGATIVEEXACTMATCH': "NegativeExactMatch",
65
+ 'NEGATIVEBROADMATCH': "NegativeBroadMatch",
66
+ 'UNKNOWN': "Unknown",
67
+ },
62
68
  ('review_state',): {
63
69
  'INREVIEW': "InReview",
64
70
  'RECOMMENDED': "Recommended",
@@ -68,12 +74,6 @@ class Keywords(ModelNormal):
68
74
  'AUTOREJECTED': "AutoRejected",
69
75
  'UNKOWN': "Unkown",
70
76
  },
71
- ('match_type',): {
72
- 'POSITIVEEXACTMATCH': "PositiveExactMatch",
73
- 'NEGATIVEEXACTMATCH': "NegativeExactMatch",
74
- 'NEGATIVEBROADMATCH': "NegativeBroadMatch",
75
- 'UNKNOWN': "Unknown",
76
- },
77
77
  }
78
78
 
79
79
  validations = {
@@ -95,11 +95,11 @@ class Keywords(ModelNormal):
95
95
  """
96
96
  lazy_import()
97
97
  return {
98
- 'review_state': (str,), # noqa: E501
99
- 'match_type': (str,), # noqa: E501
100
98
  'bid': (float, none_type,), # noqa: E501
101
- 'input_keywords': (InputKeywords,), # noqa: E501
102
99
  'created_at': (datetime,), # noqa: E501
100
+ 'input_keywords': (InputKeywords,), # noqa: E501
101
+ 'match_type': (str,), # noqa: E501
102
+ 'review_state': (str,), # noqa: E501
103
103
  'updated_at': (datetime,), # noqa: E501
104
104
  }
105
105
 
@@ -109,11 +109,11 @@ class Keywords(ModelNormal):
109
109
 
110
110
 
111
111
  attribute_map = {
112
- 'review_state': 'reviewState', # noqa: E501
113
- 'match_type': 'matchType', # noqa: E501
114
112
  'bid': 'bid', # noqa: E501
115
- 'input_keywords': 'inputKeywords', # noqa: E501
116
113
  'created_at': 'createdAt', # noqa: E501
114
+ 'input_keywords': 'inputKeywords', # noqa: E501
115
+ 'match_type': 'matchType', # noqa: E501
116
+ 'review_state': 'reviewState', # noqa: E501
117
117
  'updated_at': 'updatedAt', # noqa: E501
118
118
  }
119
119
 
@@ -158,11 +158,11 @@ class Keywords(ModelNormal):
158
158
  Animal class but this time we won't travel
159
159
  through its discriminator because we passed in
160
160
  _visited_composed_classes = (Animal,)
161
- review_state (str): Review status of the keyword. [optional] # noqa: E501
162
- match_type (str): The matching algorthim to be use when comparing this keyword with the shopper search phrase. [optional] # noqa: E501
163
161
  bid (float, none_type): The bid to use when a positive keyword matches the shopper search phrase. [optional] # noqa: E501
164
- input_keywords (InputKeywords): [optional] # noqa: E501
165
162
  created_at (datetime): The time at which this keyword was created in UTC. [optional] # noqa: E501
163
+ input_keywords (InputKeywords): [optional] # noqa: E501
164
+ match_type (str): The matching algorthim to be use when comparing this keyword with the shopper search phrase. [optional] # noqa: E501
165
+ review_state (str): Review status of the keyword. [optional] # noqa: E501
166
166
  updated_at (datetime): The time at which the keyword was last modified in UTC. [optional] # noqa: E501
167
167
  """
168
168
 
@@ -249,11 +249,11 @@ class Keywords(ModelNormal):
249
249
  Animal class but this time we won't travel
250
250
  through its discriminator because we passed in
251
251
  _visited_composed_classes = (Animal,)
252
- review_state (str): Review status of the keyword. [optional] # noqa: E501
253
- match_type (str): The matching algorthim to be use when comparing this keyword with the shopper search phrase. [optional] # noqa: E501
254
252
  bid (float, none_type): The bid to use when a positive keyword matches the shopper search phrase. [optional] # noqa: E501
255
- input_keywords (InputKeywords): [optional] # noqa: E501
256
253
  created_at (datetime): The time at which this keyword was created in UTC. [optional] # noqa: E501
254
+ input_keywords (InputKeywords): [optional] # noqa: E501
255
+ match_type (str): The matching algorthim to be use when comparing this keyword with the shopper search phrase. [optional] # noqa: E501
256
+ review_state (str): Review status of the keyword. [optional] # noqa: E501
257
257
  updated_at (datetime): The time at which the keyword was last modified in UTC. [optional] # noqa: E501
258
258
  """
259
259
 
@@ -80,9 +80,9 @@ class KeywordsModelResource(ModelNormal):
80
80
  """
81
81
  lazy_import()
82
82
  return {
83
+ 'attributes': (KeywordsModel,), # noqa: E501
83
84
  'id': (str, none_type,), # noqa: E501
84
85
  'type': (str, none_type,), # noqa: E501
85
- 'attributes': (KeywordsModel,), # noqa: E501
86
86
  }
87
87
 
88
88
  @cached_property
@@ -91,9 +91,9 @@ class KeywordsModelResource(ModelNormal):
91
91
 
92
92
 
93
93
  attribute_map = {
94
+ 'attributes': 'attributes', # noqa: E501
94
95
  'id': 'id', # noqa: E501
95
96
  'type': 'type', # noqa: E501
96
- 'attributes': 'attributes', # noqa: E501
97
97
  }
98
98
 
99
99
  read_only_vars = {
@@ -137,9 +137,9 @@ class KeywordsModelResource(ModelNormal):
137
137
  Animal class but this time we won't travel
138
138
  through its discriminator because we passed in
139
139
  _visited_composed_classes = (Animal,)
140
+ attributes (KeywordsModel): [optional] # noqa: E501
140
141
  id (str, none_type): [optional] # noqa: E501
141
142
  type (str, none_type): [optional] # noqa: E501
142
- attributes (KeywordsModel): [optional] # noqa: E501
143
143
  """
144
144
 
145
145
  _check_type = kwargs.pop('_check_type', True)
@@ -225,9 +225,9 @@ class KeywordsModelResource(ModelNormal):
225
225
  Animal class but this time we won't travel
226
226
  through its discriminator because we passed in
227
227
  _visited_composed_classes = (Animal,)
228
+ attributes (KeywordsModel): [optional] # noqa: E501
228
229
  id (str, none_type): [optional] # noqa: E501
229
230
  type (str, none_type): [optional] # noqa: E501
230
- attributes (KeywordsModel): [optional] # noqa: E501
231
231
  """
232
232
 
233
233
  _check_type = kwargs.pop('_check_type', True)
@@ -82,9 +82,9 @@ class KeywordsModelResponse(ModelNormal):
82
82
  """
83
83
  lazy_import()
84
84
  return {
85
+ 'data': (KeywordsModelResource,), # noqa: E501
85
86
  'errors': ([RmcaCommonProblem], none_type,), # noqa: E501
86
87
  'warnings': ([RmcaCommonProblem], none_type,), # noqa: E501
87
- 'data': (KeywordsModelResource,), # noqa: E501
88
88
  }
89
89
 
90
90
  @cached_property
@@ -93,9 +93,9 @@ class KeywordsModelResponse(ModelNormal):
93
93
 
94
94
 
95
95
  attribute_map = {
96
+ 'data': 'data', # noqa: E501
96
97
  'errors': 'errors', # noqa: E501
97
98
  'warnings': 'warnings', # noqa: E501
98
- 'data': 'data', # noqa: E501
99
99
  }
100
100
 
101
101
  read_only_vars = {
@@ -141,9 +141,9 @@ class KeywordsModelResponse(ModelNormal):
141
141
  Animal class but this time we won't travel
142
142
  through its discriminator because we passed in
143
143
  _visited_composed_classes = (Animal,)
144
+ data (KeywordsModelResource): [optional] # noqa: E501
144
145
  errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501
145
146
  warnings ([RmcaCommonProblem], none_type): [optional] # noqa: E501
146
- data (KeywordsModelResource): [optional] # noqa: E501
147
147
  """
148
148
 
149
149
  _check_type = kwargs.pop('_check_type', True)
@@ -229,9 +229,9 @@ class KeywordsModelResponse(ModelNormal):
229
229
  Animal class but this time we won't travel
230
230
  through its discriminator because we passed in
231
231
  _visited_composed_classes = (Animal,)
232
+ data (KeywordsModelResource): [optional] # noqa: E501
232
233
  errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501
233
234
  warnings ([RmcaCommonProblem], none_type): [optional] # noqa: E501
234
- data (KeywordsModelResource): [optional] # noqa: E501
235
235
  """
236
236
 
237
237
  _check_type = kwargs.pop('_check_type', True)
@@ -90,8 +90,8 @@ class LineItemBidMultipliersV2Response(ModelNormal):
90
90
  lazy_import()
91
91
  return {
92
92
  'data': (ResourceOfLineItemBidMultipliersV2,), # noqa: E501
93
- 'warnings': ([CommonProblem], none_type,), # noqa: E501
94
93
  'errors': ([CommonProblem], none_type,), # noqa: E501
94
+ 'warnings': ([CommonProblem], none_type,), # noqa: E501
95
95
  }
96
96
 
97
97
  @cached_property
@@ -101,13 +101,13 @@ class LineItemBidMultipliersV2Response(ModelNormal):
101
101
 
102
102
  attribute_map = {
103
103
  'data': 'data', # noqa: E501
104
- 'warnings': 'warnings', # noqa: E501
105
104
  'errors': 'errors', # noqa: E501
105
+ 'warnings': 'warnings', # noqa: E501
106
106
  }
107
107
 
108
108
  read_only_vars = {
109
- 'warnings', # noqa: E501
110
109
  'errors', # noqa: E501
110
+ 'warnings', # noqa: E501
111
111
  }
112
112
 
113
113
  _composed_schemas = {}
@@ -149,8 +149,8 @@ class LineItemBidMultipliersV2Response(ModelNormal):
149
149
  through its discriminator because we passed in
150
150
  _visited_composed_classes = (Animal,)
151
151
  data (ResourceOfLineItemBidMultipliersV2): [optional] # noqa: E501
152
- warnings ([CommonProblem], none_type): [optional] # noqa: E501
153
152
  errors ([CommonProblem], none_type): [optional] # noqa: E501
153
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
154
154
  """
155
155
 
156
156
  _check_type = kwargs.pop('_check_type', True)
@@ -237,8 +237,8 @@ class LineItemBidMultipliersV2Response(ModelNormal):
237
237
  through its discriminator because we passed in
238
238
  _visited_composed_classes = (Animal,)
239
239
  data (ResourceOfLineItemBidMultipliersV2): [optional] # noqa: E501
240
- warnings ([CommonProblem], none_type): [optional] # noqa: E501
241
240
  errors ([CommonProblem], none_type): [optional] # noqa: E501
241
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
242
242
  """
243
243
 
244
244
  _check_type = kwargs.pop('_check_type', True)
@@ -0,0 +1,311 @@
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 LineItemKeywordReviewReport(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 = True
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
+ 'account_id': (str,), # noqa: E501
79
+ 'account_name': (str,), # noqa: E501
80
+ 'campaign_id': (str,), # noqa: E501
81
+ 'campaign_name': (str,), # noqa: E501
82
+ 'count_keywords': (int,), # noqa: E501
83
+ 'line_item_id': (str,), # noqa: E501
84
+ 'line_item_name': (str,), # noqa: E501
85
+ 'retailer_id': (str,), # noqa: E501
86
+ 'retailer_name': (str,), # noqa: E501
87
+ }
88
+
89
+ @cached_property
90
+ def discriminator():
91
+ return None
92
+
93
+
94
+ attribute_map = {
95
+ 'account_id': 'accountId', # noqa: E501
96
+ 'account_name': 'accountName', # noqa: E501
97
+ 'campaign_id': 'campaignId', # noqa: E501
98
+ 'campaign_name': 'campaignName', # noqa: E501
99
+ 'count_keywords': 'countKeywords', # noqa: E501
100
+ 'line_item_id': 'lineItemId', # noqa: E501
101
+ 'line_item_name': 'lineItemName', # noqa: E501
102
+ 'retailer_id': 'retailerId', # noqa: E501
103
+ 'retailer_name': 'retailerName', # noqa: E501
104
+ }
105
+
106
+ read_only_vars = {
107
+ }
108
+
109
+ _composed_schemas = {}
110
+
111
+ @classmethod
112
+ @convert_js_args_to_python_args
113
+ def _from_openapi_data(cls, account_id, account_name, campaign_id, campaign_name, count_keywords, line_item_id, line_item_name, retailer_id, retailer_name, *args, **kwargs): # noqa: E501
114
+ """LineItemKeywordReviewReport - a model defined in OpenAPI
115
+
116
+ Args:
117
+ account_id (str): External ID of the account containing the campaign containing the line item this report is for
118
+ account_name (str): Name of the account containing the campaign containing the line item this report is for
119
+ campaign_id (str): External ID of the campaign containing the line item this report is for
120
+ campaign_name (str): Name of the campaign containing the line item this report is for
121
+ count_keywords (int): Number of PositiveExactMatch keywords on this line item that are in either \"InReview\" or \"Pending\" state
122
+ line_item_id (str): External ID of the line item that this report is for
123
+ line_item_name (str): Name of the line item that this report is for
124
+ retailer_id (str): Retailer ID connected to the line item this report is for
125
+ retailer_name (str): Name of the retailer connected to the line item this report is for
126
+
127
+ Keyword Args:
128
+ _check_type (bool): if True, values for parameters in openapi_types
129
+ will be type checked and a TypeError will be
130
+ raised if the wrong type is input.
131
+ Defaults to True
132
+ _path_to_item (tuple/list): This is a list of keys or values to
133
+ drill down to the model in received_data
134
+ when deserializing a response
135
+ _spec_property_naming (bool): True if the variable names in the input data
136
+ are serialized names, as specified in the OpenAPI document.
137
+ False if the variable names in the input data
138
+ are pythonic names, e.g. snake case (default)
139
+ _configuration (Configuration): the instance to use when
140
+ deserializing a file_type parameter.
141
+ If passed, type conversion is attempted
142
+ If omitted no type conversion is done.
143
+ _visited_composed_classes (tuple): This stores a tuple of
144
+ classes that we have traveled through so that
145
+ if we see that class again we will not use its
146
+ discriminator again.
147
+ When traveling through a discriminator, the
148
+ composed schema that is
149
+ is traveled through is added to this set.
150
+ For example if Animal has a discriminator
151
+ petType and we pass in "Dog", and the class Dog
152
+ allOf includes Animal, we move through Animal
153
+ once using the discriminator, and pick Dog.
154
+ Then in Dog, we will make an instance of the
155
+ Animal class but this time we won't travel
156
+ through its discriminator because we passed in
157
+ _visited_composed_classes = (Animal,)
158
+ """
159
+
160
+ _check_type = kwargs.pop('_check_type', True)
161
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
162
+ _path_to_item = kwargs.pop('_path_to_item', ())
163
+ _configuration = kwargs.pop('_configuration', None)
164
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
165
+
166
+ self = super(OpenApiModel, cls).__new__(cls)
167
+
168
+ if args:
169
+ for arg in args:
170
+ if isinstance(arg, dict):
171
+ kwargs.update(arg)
172
+ else:
173
+ raise ApiTypeError(
174
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
175
+ args,
176
+ self.__class__.__name__,
177
+ ),
178
+ path_to_item=_path_to_item,
179
+ valid_classes=(self.__class__,),
180
+ )
181
+
182
+ self._data_store = {}
183
+ self._check_type = _check_type
184
+ self._spec_property_naming = _spec_property_naming
185
+ self._path_to_item = _path_to_item
186
+ self._configuration = _configuration
187
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
188
+
189
+ self.account_id = account_id
190
+ self.account_name = account_name
191
+ self.campaign_id = campaign_id
192
+ self.campaign_name = campaign_name
193
+ self.count_keywords = count_keywords
194
+ self.line_item_id = line_item_id
195
+ self.line_item_name = line_item_name
196
+ self.retailer_id = retailer_id
197
+ self.retailer_name = retailer_name
198
+ for var_name, var_value in kwargs.items():
199
+ if var_name not in self.attribute_map and \
200
+ self._configuration is not None and \
201
+ self._configuration.discard_unknown_keys and \
202
+ self.additional_properties_type is None:
203
+ # discard variable.
204
+ continue
205
+ setattr(self, var_name, var_value)
206
+ return self
207
+
208
+ required_properties = set([
209
+ '_data_store',
210
+ '_check_type',
211
+ '_spec_property_naming',
212
+ '_path_to_item',
213
+ '_configuration',
214
+ '_visited_composed_classes',
215
+ ])
216
+
217
+ @convert_js_args_to_python_args
218
+ def __init__(self, account_id, account_name, campaign_id, campaign_name, count_keywords, line_item_id, line_item_name, retailer_id, retailer_name, *args, **kwargs): # noqa: E501
219
+ """LineItemKeywordReviewReport - a model defined in OpenAPI
220
+
221
+ Args:
222
+ account_id (str): External ID of the account containing the campaign containing the line item this report is for
223
+ account_name (str): Name of the account containing the campaign containing the line item this report is for
224
+ campaign_id (str): External ID of the campaign containing the line item this report is for
225
+ campaign_name (str): Name of the campaign containing the line item this report is for
226
+ count_keywords (int): Number of PositiveExactMatch keywords on this line item that are in either \"InReview\" or \"Pending\" state
227
+ line_item_id (str): External ID of the line item that this report is for
228
+ line_item_name (str): Name of the line item that this report is for
229
+ retailer_id (str): Retailer ID connected to the line item this report is for
230
+ retailer_name (str): Name of the retailer connected to the line item this report is for
231
+
232
+ Keyword Args:
233
+ _check_type (bool): if True, values for parameters in openapi_types
234
+ will be type checked and a TypeError will be
235
+ raised if the wrong type is input.
236
+ Defaults to True
237
+ _path_to_item (tuple/list): This is a list of keys or values to
238
+ drill down to the model in received_data
239
+ when deserializing a response
240
+ _spec_property_naming (bool): True if the variable names in the input data
241
+ are serialized names, as specified in the OpenAPI document.
242
+ False if the variable names in the input data
243
+ are pythonic names, e.g. snake case (default)
244
+ _configuration (Configuration): the instance to use when
245
+ deserializing a file_type parameter.
246
+ If passed, type conversion is attempted
247
+ If omitted no type conversion is done.
248
+ _visited_composed_classes (tuple): This stores a tuple of
249
+ classes that we have traveled through so that
250
+ if we see that class again we will not use its
251
+ discriminator again.
252
+ When traveling through a discriminator, the
253
+ composed schema that is
254
+ is traveled through is added to this set.
255
+ For example if Animal has a discriminator
256
+ petType and we pass in "Dog", and the class Dog
257
+ allOf includes Animal, we move through Animal
258
+ once using the discriminator, and pick Dog.
259
+ Then in Dog, we will make an instance of the
260
+ Animal class but this time we won't travel
261
+ through its discriminator because we passed in
262
+ _visited_composed_classes = (Animal,)
263
+ """
264
+
265
+ _check_type = kwargs.pop('_check_type', True)
266
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
267
+ _path_to_item = kwargs.pop('_path_to_item', ())
268
+ _configuration = kwargs.pop('_configuration', None)
269
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
270
+
271
+ if args:
272
+ for arg in args:
273
+ if isinstance(arg, dict):
274
+ kwargs.update(arg)
275
+ else:
276
+ raise ApiTypeError(
277
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
278
+ args,
279
+ self.__class__.__name__,
280
+ ),
281
+ path_to_item=_path_to_item,
282
+ valid_classes=(self.__class__,),
283
+ )
284
+
285
+ self._data_store = {}
286
+ self._check_type = _check_type
287
+ self._spec_property_naming = _spec_property_naming
288
+ self._path_to_item = _path_to_item
289
+ self._configuration = _configuration
290
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
291
+
292
+ self.account_id = account_id
293
+ self.account_name = account_name
294
+ self.campaign_id = campaign_id
295
+ self.campaign_name = campaign_name
296
+ self.count_keywords = count_keywords
297
+ self.line_item_id = line_item_id
298
+ self.line_item_name = line_item_name
299
+ self.retailer_id = retailer_id
300
+ self.retailer_name = retailer_name
301
+ for var_name, var_value in kwargs.items():
302
+ if var_name not in self.attribute_map and \
303
+ self._configuration is not None and \
304
+ self._configuration.discard_unknown_keys and \
305
+ self.additional_properties_type is None:
306
+ # discard variable.
307
+ continue
308
+ setattr(self, var_name, var_value)
309
+ if var_name in self.read_only_vars:
310
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
311
+ f"class with read only attributes.")