criteo-api-retailmedia-sdk 0.0.250911__py3-none-any.whl → 0.0.251009__py3-none-any.whl

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

Potentially problematic release.


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

Files changed (38) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +71 -83
  3. criteo_api_retailmedia_preview/api/analytics_api.py +155 -63
  4. criteo_api_retailmedia_preview/api/audience_api.py +25 -88
  5. criteo_api_retailmedia_preview/api/balance_api.py +176 -186
  6. criteo_api_retailmedia_preview/api/billing_api.py +20 -25
  7. criteo_api_retailmedia_preview/api/campaign_api.py +1103 -996
  8. criteo_api_retailmedia_preview/api/catalog_api.py +6 -22
  9. criteo_api_retailmedia_preview/api_client.py +4 -4
  10. criteo_api_retailmedia_preview/configuration.py +1 -1
  11. criteo_api_retailmedia_preview/model/async_fill_rate_report.py +5 -0
  12. criteo_api_retailmedia_preview/model/{product_importer_error.py → async_unfilled_placements_report.py} +134 -41
  13. criteo_api_retailmedia_preview/model/{report_outcome.py → async_unfilled_placements_report_request.py} +9 -15
  14. criteo_api_retailmedia_preview/model/{error_code_response.py → async_unfilled_placements_report_resource.py} +15 -23
  15. criteo_api_retailmedia_preview/model/campaign_availability.py +289 -0
  16. criteo_api_retailmedia_preview/model/demand_managed_fee.py +1 -1
  17. criteo_api_retailmedia_preview/model/{value_resource_outcome_account_fees_update_result.py → entity_resource_collection_outcome_of_retailer_result_and_metadata.py} +14 -8
  18. criteo_api_retailmedia_preview/model/{outcome.py → entity_resource_of_retailer_result.py} +17 -15
  19. criteo_api_retailmedia_preview/model/files_variable_value.py +0 -3
  20. criteo_api_retailmedia_preview/model/managed_service_fee.py +1 -1
  21. criteo_api_retailmedia_preview/model/page_type_combination.py +287 -0
  22. criteo_api_retailmedia_preview/model/private_market_fees.py +6 -14
  23. criteo_api_retailmedia_preview/model/retailer_result.py +266 -0
  24. criteo_api_retailmedia_preview/model/{account_fees_update_result.py → retailer_search_request.py} +8 -12
  25. criteo_api_retailmedia_preview/model/rm_contact_list_create_v1.py +1 -0
  26. criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +1 -0
  27. criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +11 -2
  28. criteo_api_retailmedia_preview/model/sponsored_products_line_item_create_request_model.py +8 -0
  29. criteo_api_retailmedia_preview/model/sponsored_products_line_item_update_request_model.py +34 -28
  30. criteo_api_retailmedia_preview/model/value_resource_input_of_retailer_search_request.py +262 -0
  31. criteo_api_retailmedia_preview/model/{value_resource_account_fees_update_result.py → value_resource_of_retailer_search_request.py} +9 -9
  32. criteo_api_retailmedia_preview/models/__init__.py +11 -9
  33. {criteo_api_retailmedia_sdk-0.0.250911.dist-info → criteo_api_retailmedia_sdk-0.0.251009.dist-info}/METADATA +3 -3
  34. {criteo_api_retailmedia_sdk-0.0.250911.dist-info → criteo_api_retailmedia_sdk-0.0.251009.dist-info}/RECORD +36 -34
  35. criteo_api_retailmedia_preview/model/fail_response.py +0 -283
  36. criteo_api_retailmedia_preview/model/product_importer_warning.py +0 -299
  37. {criteo_api_retailmedia_sdk-0.0.250911.dist-info → criteo_api_retailmedia_sdk-0.0.251009.dist-info}/WHEEL +0 -0
  38. {criteo_api_retailmedia_sdk-0.0.250911.dist-info → criteo_api_retailmedia_sdk-0.0.251009.dist-info}/top_level.txt +0 -0
@@ -27,7 +27,7 @@ from criteo_api_retailmedia_preview.model.async_fill_rate_report_request import
27
27
  from criteo_api_retailmedia_preview.model.async_line_items_report_request import AsyncLineItemsReportRequest
28
28
  from criteo_api_retailmedia_preview.model.async_offsite_report_request import AsyncOffsiteReportRequest
29
29
  from criteo_api_retailmedia_preview.model.async_report_response import AsyncReportResponse
30
- from criteo_api_retailmedia_preview.model.report_outcome import ReportOutcome
30
+ from criteo_api_retailmedia_preview.model.async_unfilled_placements_report_request import AsyncUnfilledPlacementsReportRequest
31
31
  from criteo_api_retailmedia_preview.model.report_response import ReportResponse
32
32
  from criteo_api_retailmedia_preview.model.sync_attributed_transactions_report_request import SyncAttributedTransactionsReportRequest
33
33
  from criteo_api_retailmedia_preview.model.sync_campaigns_report_request import SyncCampaignsReportRequest
@@ -90,15 +90,10 @@ class AnalyticsApi(object):
90
90
  },
91
91
  headers_map={
92
92
  'accept': [
93
- 'text/plain',
94
- 'application/json',
95
- 'text/json'
93
+ 'application/json'
96
94
  ],
97
95
  'content_type': [
98
- 'application/json-patch+json',
99
- 'application/json',
100
- 'text/json',
101
- 'application/*+json'
96
+ 'application/json'
102
97
  ]
103
98
  },
104
99
  api_client=api_client
@@ -148,15 +143,10 @@ class AnalyticsApi(object):
148
143
  },
149
144
  headers_map={
150
145
  'accept': [
151
- 'text/plain',
152
- 'application/json',
153
- 'text/json'
146
+ 'application/json'
154
147
  ],
155
148
  'content_type': [
156
- 'application/json-patch+json',
157
- 'application/json',
158
- 'text/json',
159
- 'application/*+json'
149
+ 'application/json'
160
150
  ]
161
151
  },
162
152
  api_client=api_client
@@ -206,15 +196,10 @@ class AnalyticsApi(object):
206
196
  },
207
197
  headers_map={
208
198
  'accept': [
209
- 'text/plain',
210
- 'application/json',
211
- 'text/json'
199
+ 'application/json'
212
200
  ],
213
201
  'content_type': [
214
- 'application/json-patch+json',
215
- 'application/json',
216
- 'text/json',
217
- 'application/*+json'
202
+ 'application/json'
218
203
  ]
219
204
  },
220
205
  api_client=api_client
@@ -264,15 +249,10 @@ class AnalyticsApi(object):
264
249
  },
265
250
  headers_map={
266
251
  'accept': [
267
- 'text/plain',
268
- 'application/json',
269
- 'text/json'
252
+ 'application/json'
270
253
  ],
271
254
  'content_type': [
272
- 'application/json-patch+json',
273
- 'application/json',
274
- 'text/json',
275
- 'application/*+json'
255
+ 'application/json'
276
256
  ]
277
257
  },
278
258
  api_client=api_client
@@ -322,15 +302,63 @@ class AnalyticsApi(object):
322
302
  },
323
303
  headers_map={
324
304
  'accept': [
325
- 'text/plain',
326
- 'application/json',
327
- 'text/json'
305
+ 'application/json'
328
306
  ],
329
307
  'content_type': [
330
- 'application/json-patch+json',
331
- 'application/json',
332
- 'text/json',
333
- 'application/*+json'
308
+ 'application/json'
309
+ ]
310
+ },
311
+ api_client=api_client
312
+ )
313
+ self.generate_async_unfilled_placements_report_endpoint = _Endpoint(
314
+ settings={
315
+ 'response_type': (AsyncReportResponse,),
316
+ 'auth': [
317
+ 'oauth',
318
+ 'oauth'
319
+ ],
320
+ 'endpoint_path': '/preview/retail-media/reports/unfilled-placements',
321
+ 'operation_id': 'generate_async_unfilled_placements_report',
322
+ 'http_method': 'POST',
323
+ 'servers': None,
324
+ },
325
+ params_map={
326
+ 'all': [
327
+ 'async_unfilled_placements_report_request',
328
+ ],
329
+ 'required': [
330
+ 'async_unfilled_placements_report_request',
331
+ ],
332
+ 'nullable': [
333
+ ],
334
+ 'enum': [
335
+ ],
336
+ 'validation': [
337
+ ]
338
+ },
339
+ root_map={
340
+ 'validations': {
341
+ },
342
+ 'allowed_values': {
343
+ },
344
+ 'openapi_types': {
345
+ 'async_unfilled_placements_report_request':
346
+ (AsyncUnfilledPlacementsReportRequest,),
347
+ },
348
+ 'attribute_map': {
349
+ },
350
+ 'location_map': {
351
+ 'async_unfilled_placements_report_request': 'body',
352
+ },
353
+ 'collection_format_map': {
354
+ }
355
+ },
356
+ headers_map={
357
+ 'accept': [
358
+ 'application/json'
359
+ ],
360
+ 'content_type': [
361
+ 'application/json'
334
362
  ]
335
363
  },
336
364
  api_client=api_client
@@ -380,15 +408,10 @@ class AnalyticsApi(object):
380
408
  },
381
409
  headers_map={
382
410
  'accept': [
383
- 'text/plain',
384
- 'application/json',
385
- 'text/json'
411
+ 'application/json'
386
412
  ],
387
413
  'content_type': [
388
- 'application/json-patch+json',
389
- 'application/json',
390
- 'text/json',
391
- 'application/*+json'
414
+ 'application/json'
392
415
  ]
393
416
  },
394
417
  api_client=api_client
@@ -438,15 +461,10 @@ class AnalyticsApi(object):
438
461
  },
439
462
  headers_map={
440
463
  'accept': [
441
- 'text/plain',
442
- 'application/json',
443
- 'text/json'
464
+ 'application/json'
444
465
  ],
445
466
  'content_type': [
446
- 'application/json-patch+json',
447
- 'application/json',
448
- 'text/json',
449
- 'application/*+json'
467
+ 'application/json'
450
468
  ]
451
469
  },
452
470
  api_client=api_client
@@ -496,15 +514,10 @@ class AnalyticsApi(object):
496
514
  },
497
515
  headers_map={
498
516
  'accept': [
499
- 'text/plain',
500
- 'application/json',
501
- 'text/json'
517
+ 'application/json'
502
518
  ],
503
519
  'content_type': [
504
- 'application/json-patch+json',
505
- 'application/json',
506
- 'text/json',
507
- 'application/*+json'
520
+ 'application/json'
508
521
  ]
509
522
  },
510
523
  api_client=api_client
@@ -555,9 +568,7 @@ class AnalyticsApi(object):
555
568
  },
556
569
  headers_map={
557
570
  'accept': [
558
- 'text/plain',
559
- 'application/json',
560
- 'text/json'
571
+ 'application/json'
561
572
  ],
562
573
  'content_type': [],
563
574
  },
@@ -609,9 +620,7 @@ class AnalyticsApi(object):
609
620
  },
610
621
  headers_map={
611
622
  'accept': [
612
- 'text/plain',
613
- 'application/json',
614
- 'text/json'
623
+ 'application/json'
615
624
  ],
616
625
  'content_type': [],
617
626
  },
@@ -1033,6 +1042,89 @@ class AnalyticsApi(object):
1033
1042
  async_offsite_report_request
1034
1043
  return self.generate_async_offsite_report_endpoint.call_with_http_info(**kwargs)
1035
1044
 
1045
+ def generate_async_unfilled_placements_report(
1046
+ self,
1047
+ async_unfilled_placements_report_request,
1048
+ **kwargs
1049
+ ):
1050
+ """generate_async_unfilled_placements_report # noqa: E501
1051
+
1052
+ Returns an asynchronous Unfilled Placements Report This endpoint is subject to specific rate limits. # noqa: E501
1053
+ This method makes a synchronous HTTP request by default. To make an
1054
+ asynchronous HTTP request, please pass async_req=True
1055
+
1056
+ >>> thread = api.generate_async_unfilled_placements_report(async_unfilled_placements_report_request, async_req=True)
1057
+ >>> result = thread.get()
1058
+
1059
+ Args:
1060
+ async_unfilled_placements_report_request (AsyncUnfilledPlacementsReportRequest):
1061
+
1062
+ Keyword Args:
1063
+ _return_http_data_only (bool): response data without head status
1064
+ code and headers. Default is True.
1065
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1066
+ will be returned without reading/decoding response data.
1067
+ Default is True.
1068
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1069
+ one number provided, it will be total request timeout. It can also
1070
+ be a pair (tuple) of (connection, read) timeouts.
1071
+ Default is None.
1072
+ _check_input_type (bool): specifies if type checking
1073
+ should be done one the data sent to the server.
1074
+ Default is True.
1075
+ _check_return_type (bool): specifies if type checking
1076
+ should be done one the data received from the server.
1077
+ Default is True.
1078
+ _spec_property_naming (bool): True if the variable names in the input data
1079
+ are serialized names, as specified in the OpenAPI document.
1080
+ False if the variable names in the input data
1081
+ are pythonic names, e.g. snake case (default)
1082
+ _content_type (str/None): force body content-type.
1083
+ Default is None and content-type will be predicted by allowed
1084
+ content-types and body.
1085
+ _host_index (int/None): specifies the index of the server
1086
+ that we want to use.
1087
+ Default is read from the configuration.
1088
+ _request_auths (list): set to override the auth_settings for an a single
1089
+ request; this effectively ignores the authentication
1090
+ in the spec for a single request.
1091
+ Default is None
1092
+ async_req (bool): execute request asynchronously
1093
+
1094
+ Returns:
1095
+ AsyncReportResponse
1096
+ If the method is called asynchronously, returns the request
1097
+ thread.
1098
+ """
1099
+ kwargs['async_req'] = kwargs.get(
1100
+ 'async_req', False
1101
+ )
1102
+ kwargs['_return_http_data_only'] = kwargs.get(
1103
+ '_return_http_data_only', True
1104
+ )
1105
+ kwargs['_preload_content'] = kwargs.get(
1106
+ '_preload_content', True
1107
+ )
1108
+ kwargs['_request_timeout'] = kwargs.get(
1109
+ '_request_timeout', None
1110
+ )
1111
+ kwargs['_check_input_type'] = kwargs.get(
1112
+ '_check_input_type', True
1113
+ )
1114
+ kwargs['_check_return_type'] = kwargs.get(
1115
+ '_check_return_type', True
1116
+ )
1117
+ kwargs['_spec_property_naming'] = kwargs.get(
1118
+ '_spec_property_naming', False
1119
+ )
1120
+ kwargs['_content_type'] = kwargs.get(
1121
+ '_content_type')
1122
+ kwargs['_host_index'] = kwargs.get('_host_index')
1123
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1124
+ kwargs['async_unfilled_placements_report_request'] = \
1125
+ async_unfilled_placements_report_request
1126
+ return self.generate_async_unfilled_placements_report_endpoint.call_with_http_info(**kwargs)
1127
+
1036
1128
  def generate_sync_attributed_transactions_report(
1037
1129
  self,
1038
1130
  sync_attributed_transactions_report_request,
@@ -21,7 +21,6 @@ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
21
21
  none_type,
22
22
  validate_and_convert_types
23
23
  )
24
- from criteo_api_retailmedia_preview.model.error_code_response import ErrorCodeResponse
25
24
  from criteo_api_retailmedia_preview.model.retail_media_contactlist_amendment_request import RetailMediaContactlistAmendmentRequest
26
25
  from criteo_api_retailmedia_preview.model.retail_media_contactlist_operation import RetailMediaContactlistOperation
27
26
  from criteo_api_retailmedia_preview.model.rm_audience_bulk_create_input_v1 import RmAudienceBulkCreateInputV1
@@ -110,15 +109,10 @@ class AudienceApi(object):
110
109
  },
111
110
  headers_map={
112
111
  'accept': [
113
- 'text/plain',
114
- 'application/json',
115
- 'text/json'
112
+ 'application/json'
116
113
  ],
117
114
  'content_type': [
118
- 'application/json-patch+json',
119
- 'application/json',
120
- 'text/json',
121
- 'application/*+json'
115
+ 'application/json'
122
116
  ]
123
117
  },
124
118
  api_client=api_client
@@ -174,15 +168,10 @@ class AudienceApi(object):
174
168
  },
175
169
  headers_map={
176
170
  'accept': [
177
- 'text/plain',
178
- 'application/json',
179
- 'text/json'
171
+ 'application/json'
180
172
  ],
181
173
  'content_type': [
182
- 'application/json-patch+json',
183
- 'application/json',
184
- 'text/json',
185
- 'application/*+json'
174
+ 'application/json'
186
175
  ]
187
176
  },
188
177
  api_client=api_client
@@ -238,15 +227,10 @@ class AudienceApi(object):
238
227
  },
239
228
  headers_map={
240
229
  'accept': [
241
- 'text/plain',
242
- 'application/json',
243
- 'text/json'
230
+ 'application/json'
244
231
  ],
245
232
  'content_type': [
246
- 'application/json-patch+json',
247
- 'application/json',
248
- 'text/json',
249
- 'application/*+json'
233
+ 'application/json'
250
234
  ]
251
235
  },
252
236
  api_client=api_client
@@ -302,15 +286,10 @@ class AudienceApi(object):
302
286
  },
303
287
  headers_map={
304
288
  'accept': [
305
- 'text/plain',
306
- 'application/json',
307
- 'text/json'
289
+ 'application/json'
308
290
  ],
309
291
  'content_type': [
310
- 'application/json-patch+json',
311
- 'application/json',
312
- 'text/json',
313
- 'application/*+json'
292
+ 'application/json'
314
293
  ]
315
294
  },
316
295
  api_client=api_client
@@ -366,15 +345,10 @@ class AudienceApi(object):
366
345
  },
367
346
  headers_map={
368
347
  'accept': [
369
- 'text/plain',
370
- 'application/json',
371
- 'text/json'
348
+ 'application/json'
372
349
  ],
373
350
  'content_type': [
374
- 'application/json-patch+json',
375
- 'application/json',
376
- 'text/json',
377
- 'application/*+json'
351
+ 'application/json'
378
352
  ]
379
353
  },
380
354
  api_client=api_client
@@ -430,15 +404,10 @@ class AudienceApi(object):
430
404
  },
431
405
  headers_map={
432
406
  'accept': [
433
- 'text/plain',
434
- 'application/json',
435
- 'text/json'
407
+ 'application/json'
436
408
  ],
437
409
  'content_type': [
438
- 'application/json-patch+json',
439
- 'application/json',
440
- 'text/json',
441
- 'application/*+json'
410
+ 'application/json'
442
411
  ]
443
412
  },
444
413
  api_client=api_client
@@ -494,15 +463,10 @@ class AudienceApi(object):
494
463
  },
495
464
  headers_map={
496
465
  'accept': [
497
- 'text/plain',
498
- 'application/json',
499
- 'text/json'
466
+ 'application/json'
500
467
  ],
501
468
  'content_type': [
502
- 'application/json-patch+json',
503
- 'application/json',
504
- 'text/json',
505
- 'application/*+json'
469
+ 'application/json'
506
470
  ]
507
471
  },
508
472
  api_client=api_client
@@ -558,15 +522,10 @@ class AudienceApi(object):
558
522
  },
559
523
  headers_map={
560
524
  'accept': [
561
- 'text/plain',
562
- 'application/json',
563
- 'text/json'
525
+ 'application/json'
564
526
  ],
565
527
  'content_type': [
566
- 'application/json-patch+json',
567
- 'application/json',
568
- 'text/json',
569
- 'application/*+json'
528
+ 'application/json'
570
529
  ]
571
530
  },
572
531
  api_client=api_client
@@ -674,15 +633,10 @@ class AudienceApi(object):
674
633
  },
675
634
  headers_map={
676
635
  'accept': [
677
- 'text/plain',
678
- 'application/json',
679
- 'text/json'
636
+ 'application/json'
680
637
  ],
681
638
  'content_type': [
682
- 'application/json-patch+json',
683
- 'application/json',
684
- 'text/json',
685
- 'application/*+json'
639
+ 'application/json'
686
640
  ]
687
641
  },
688
642
  api_client=api_client
@@ -738,15 +692,10 @@ class AudienceApi(object):
738
692
  },
739
693
  headers_map={
740
694
  'accept': [
741
- 'text/plain',
742
- 'application/json',
743
- 'text/json'
695
+ 'application/json'
744
696
  ],
745
697
  'content_type': [
746
- 'application/json-patch+json',
747
- 'application/json',
748
- 'text/json',
749
- 'application/*+json'
698
+ 'application/json'
750
699
  ]
751
700
  },
752
701
  api_client=api_client
@@ -803,9 +752,7 @@ class AudienceApi(object):
803
752
  },
804
753
  headers_map={
805
754
  'accept': [
806
- 'text/plain',
807
- 'application/json',
808
- 'text/json'
755
+ 'application/json'
809
756
  ],
810
757
  'content_type': [],
811
758
  },
@@ -878,15 +825,10 @@ class AudienceApi(object):
878
825
  },
879
826
  headers_map={
880
827
  'accept': [
881
- 'text/plain',
882
- 'application/json',
883
- 'text/json'
828
+ 'application/json'
884
829
  ],
885
830
  'content_type': [
886
- 'application/json-patch+json',
887
- 'application/json',
888
- 'text/json',
889
- 'application/*+json'
831
+ 'application/json'
890
832
  ]
891
833
  },
892
834
  api_client=api_client
@@ -958,15 +900,10 @@ class AudienceApi(object):
958
900
  },
959
901
  headers_map={
960
902
  'accept': [
961
- 'text/plain',
962
- 'application/json',
963
- 'text/json'
903
+ 'application/json'
964
904
  ],
965
905
  'content_type': [
966
- 'application/json-patch+json',
967
- 'application/json',
968
- 'text/json',
969
- 'application/*+json'
906
+ 'application/json'
970
907
  ]
971
908
  },
972
909
  api_client=api_client