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

@@ -8,7 +8,7 @@
8
8
  """
9
9
 
10
10
 
11
- __version__ = "0.0.251028"
11
+ __version__ = "0.0.251029"
12
12
 
13
13
  # import ApiClient
14
14
  from criteo_api_retailmedia_preview.api_client import ApiClient
@@ -58,6 +58,65 @@ class AudienceApi(object):
58
58
  if api_client is None:
59
59
  api_client = ApiClient()
60
60
  self.api_client = api_client
61
+ self.add_remove_contact_list_by_audience_segment_endpoint = _Endpoint(
62
+ settings={
63
+ 'response_type': (RetailMediaContactlistOperation,),
64
+ 'auth': [
65
+ 'oauth',
66
+ 'oauth'
67
+ ],
68
+ 'endpoint_path': '/preview/retail-media/audience-segments/{audience-segment-id}/contact-list/add-remove',
69
+ 'operation_id': 'add_remove_contact_list_by_audience_segment',
70
+ 'http_method': 'POST',
71
+ 'servers': None,
72
+ },
73
+ params_map={
74
+ 'all': [
75
+ 'audience_segment_id',
76
+ 'retail_media_contactlist_amendment_request',
77
+ ],
78
+ 'required': [
79
+ 'audience_segment_id',
80
+ 'retail_media_contactlist_amendment_request',
81
+ ],
82
+ 'nullable': [
83
+ ],
84
+ 'enum': [
85
+ ],
86
+ 'validation': [
87
+ ]
88
+ },
89
+ root_map={
90
+ 'validations': {
91
+ },
92
+ 'allowed_values': {
93
+ },
94
+ 'openapi_types': {
95
+ 'audience_segment_id':
96
+ (int,),
97
+ 'retail_media_contactlist_amendment_request':
98
+ (RetailMediaContactlistAmendmentRequest,),
99
+ },
100
+ 'attribute_map': {
101
+ 'audience_segment_id': 'audience-segment-id',
102
+ },
103
+ 'location_map': {
104
+ 'audience_segment_id': 'path',
105
+ 'retail_media_contactlist_amendment_request': 'body',
106
+ },
107
+ 'collection_format_map': {
108
+ }
109
+ },
110
+ headers_map={
111
+ 'accept': [
112
+ 'application/json'
113
+ ],
114
+ 'content_type': [
115
+ 'application/json'
116
+ ]
117
+ },
118
+ api_client=api_client
119
+ )
61
120
  self.bulk_create_audience_endpoint = _Endpoint(
62
121
  settings={
63
122
  'response_type': (RmAudienceEntityV1ListResponse,),
@@ -412,26 +471,24 @@ class AudienceApi(object):
412
471
  },
413
472
  api_client=api_client
414
473
  )
415
- self.compute_audience_segments_sizes_endpoint = _Endpoint(
474
+ self.clear_contact_list_by_audience_segment_endpoint = _Endpoint(
416
475
  settings={
417
- 'response_type': (RmAudienceSegmentSizeEntityV1ListResponse,),
476
+ 'response_type': None,
418
477
  'auth': [
419
478
  'oauth',
420
479
  'oauth'
421
480
  ],
422
- 'endpoint_path': '/preview/retail-media/accounts/{account-id}/audience-segments/compute-sizes',
423
- 'operation_id': 'compute_audience_segments_sizes',
481
+ 'endpoint_path': '/preview/retail-media/audience-segments/{audience-segment-id}/contact-list/clear',
482
+ 'operation_id': 'clear_contact_list_by_audience_segment',
424
483
  'http_method': 'POST',
425
484
  'servers': None,
426
485
  },
427
486
  params_map={
428
487
  'all': [
429
- 'account_id',
430
- 'rm_audience_segment_compute_sizes_input_v1',
488
+ 'audience_segment_id',
431
489
  ],
432
490
  'required': [
433
- 'account_id',
434
- 'rm_audience_segment_compute_sizes_input_v1',
491
+ 'audience_segment_id',
435
492
  ],
436
493
  'nullable': [
437
494
  ],
@@ -446,17 +503,14 @@ class AudienceApi(object):
446
503
  'allowed_values': {
447
504
  },
448
505
  'openapi_types': {
449
- 'account_id':
450
- (str,),
451
- 'rm_audience_segment_compute_sizes_input_v1':
452
- (RmAudienceSegmentComputeSizesInputV1,),
506
+ 'audience_segment_id':
507
+ (int,),
453
508
  },
454
509
  'attribute_map': {
455
- 'account_id': 'account-id',
510
+ 'audience_segment_id': 'audience-segment-id',
456
511
  },
457
512
  'location_map': {
458
- 'account_id': 'path',
459
- 'rm_audience_segment_compute_sizes_input_v1': 'body',
513
+ 'audience_segment_id': 'path',
460
514
  },
461
515
  'collection_format_map': {
462
516
  }
@@ -465,32 +519,30 @@ class AudienceApi(object):
465
519
  'accept': [
466
520
  'application/json'
467
521
  ],
468
- 'content_type': [
469
- 'application/json'
470
- ]
522
+ 'content_type': [],
471
523
  },
472
524
  api_client=api_client
473
525
  )
474
- self.compute_audiences_sizes_endpoint = _Endpoint(
526
+ self.compute_audience_segments_sizes_endpoint = _Endpoint(
475
527
  settings={
476
- 'response_type': (RmAudienceSizeEntityV1ListResponse,),
528
+ 'response_type': (RmAudienceSegmentSizeEntityV1ListResponse,),
477
529
  'auth': [
478
530
  'oauth',
479
531
  'oauth'
480
532
  ],
481
- 'endpoint_path': '/preview/retail-media/accounts/{account-id}/audiences/compute-sizes',
482
- 'operation_id': 'compute_audiences_sizes',
533
+ 'endpoint_path': '/preview/retail-media/accounts/{account-id}/audience-segments/compute-sizes',
534
+ 'operation_id': 'compute_audience_segments_sizes',
483
535
  'http_method': 'POST',
484
536
  'servers': None,
485
537
  },
486
538
  params_map={
487
539
  'all': [
488
540
  'account_id',
489
- 'rm_audience_compute_sizes_input_v1',
541
+ 'rm_audience_segment_compute_sizes_input_v1',
490
542
  ],
491
543
  'required': [
492
544
  'account_id',
493
- 'rm_audience_compute_sizes_input_v1',
545
+ 'rm_audience_segment_compute_sizes_input_v1',
494
546
  ],
495
547
  'nullable': [
496
548
  ],
@@ -507,15 +559,15 @@ class AudienceApi(object):
507
559
  'openapi_types': {
508
560
  'account_id':
509
561
  (str,),
510
- 'rm_audience_compute_sizes_input_v1':
511
- (RmAudienceComputeSizesInputV1,),
562
+ 'rm_audience_segment_compute_sizes_input_v1':
563
+ (RmAudienceSegmentComputeSizesInputV1,),
512
564
  },
513
565
  'attribute_map': {
514
566
  'account_id': 'account-id',
515
567
  },
516
568
  'location_map': {
517
569
  'account_id': 'path',
518
- 'rm_audience_compute_sizes_input_v1': 'body',
570
+ 'rm_audience_segment_compute_sizes_input_v1': 'body',
519
571
  },
520
572
  'collection_format_map': {
521
573
  }
@@ -530,24 +582,26 @@ class AudienceApi(object):
530
582
  },
531
583
  api_client=api_client
532
584
  )
533
- self.delete_contact_list_by_audience_segment_endpoint = _Endpoint(
585
+ self.compute_audiences_sizes_endpoint = _Endpoint(
534
586
  settings={
535
- 'response_type': None,
587
+ 'response_type': (RmAudienceSizeEntityV1ListResponse,),
536
588
  'auth': [
537
589
  'oauth',
538
590
  'oauth'
539
591
  ],
540
- 'endpoint_path': '/preview/retail-media/audience-segments/{audience-segment-id}/contact-list/clear',
541
- 'operation_id': 'delete_contact_list_by_audience_segment',
592
+ 'endpoint_path': '/preview/retail-media/accounts/{account-id}/audiences/compute-sizes',
593
+ 'operation_id': 'compute_audiences_sizes',
542
594
  'http_method': 'POST',
543
595
  'servers': None,
544
596
  },
545
597
  params_map={
546
598
  'all': [
547
- 'audience_segment_id',
599
+ 'account_id',
600
+ 'rm_audience_compute_sizes_input_v1',
548
601
  ],
549
602
  'required': [
550
- 'audience_segment_id',
603
+ 'account_id',
604
+ 'rm_audience_compute_sizes_input_v1',
551
605
  ],
552
606
  'nullable': [
553
607
  ],
@@ -562,14 +616,17 @@ class AudienceApi(object):
562
616
  'allowed_values': {
563
617
  },
564
618
  'openapi_types': {
565
- 'audience_segment_id':
566
- (int,),
619
+ 'account_id':
620
+ (str,),
621
+ 'rm_audience_compute_sizes_input_v1':
622
+ (RmAudienceComputeSizesInputV1,),
567
623
  },
568
624
  'attribute_map': {
569
- 'audience_segment_id': 'audience-segment-id',
625
+ 'account_id': 'account-id',
570
626
  },
571
627
  'location_map': {
572
- 'audience_segment_id': 'path',
628
+ 'account_id': 'path',
629
+ 'rm_audience_compute_sizes_input_v1': 'body',
573
630
  },
574
631
  'collection_format_map': {
575
632
  }
@@ -578,7 +635,9 @@ class AudienceApi(object):
578
635
  'accept': [
579
636
  'application/json'
580
637
  ],
581
- 'content_type': [],
638
+ 'content_type': [
639
+ 'application/json'
640
+ ]
582
641
  },
583
642
  api_client=api_client
584
643
  )
@@ -908,65 +967,93 @@ class AudienceApi(object):
908
967
  },
909
968
  api_client=api_client
910
969
  )
911
- self.update_contact_list_by_audience_segment_endpoint = _Endpoint(
912
- settings={
913
- 'response_type': (RetailMediaContactlistOperation,),
914
- 'auth': [
915
- 'oauth',
916
- 'oauth'
917
- ],
918
- 'endpoint_path': '/preview/retail-media/audience-segments/{audience-segment-id}/contact-list/add-remove',
919
- 'operation_id': 'update_contact_list_by_audience_segment',
920
- 'http_method': 'POST',
921
- 'servers': None,
922
- },
923
- params_map={
924
- 'all': [
925
- 'audience_segment_id',
926
- 'retail_media_contactlist_amendment_request',
927
- ],
928
- 'required': [
929
- 'audience_segment_id',
930
- 'retail_media_contactlist_amendment_request',
931
- ],
932
- 'nullable': [
933
- ],
934
- 'enum': [
935
- ],
936
- 'validation': [
937
- ]
938
- },
939
- root_map={
940
- 'validations': {
941
- },
942
- 'allowed_values': {
943
- },
944
- 'openapi_types': {
945
- 'audience_segment_id':
946
- (int,),
947
- 'retail_media_contactlist_amendment_request':
948
- (RetailMediaContactlistAmendmentRequest,),
949
- },
950
- 'attribute_map': {
951
- 'audience_segment_id': 'audience-segment-id',
952
- },
953
- 'location_map': {
954
- 'audience_segment_id': 'path',
955
- 'retail_media_contactlist_amendment_request': 'body',
956
- },
957
- 'collection_format_map': {
958
- }
959
- },
960
- headers_map={
961
- 'accept': [
962
- 'application/json'
963
- ],
964
- 'content_type': [
965
- 'application/json'
966
- ]
967
- },
968
- api_client=api_client
970
+
971
+ def add_remove_contact_list_by_audience_segment(
972
+ self,
973
+ audience_segment_id,
974
+ retail_media_contactlist_amendment_request,
975
+ **kwargs
976
+ ):
977
+ """add_remove_contact_list_by_audience_segment # noqa: E501
978
+
979
+ Add/remove identifiers to or from a retail-media contact list audience-segment, with external audience segment id. # noqa: E501
980
+ This method makes a synchronous HTTP request by default. To make an
981
+ asynchronous HTTP request, please pass async_req=True
982
+
983
+ >>> thread = api.add_remove_contact_list_by_audience_segment(audience_segment_id, retail_media_contactlist_amendment_request, async_req=True)
984
+ >>> result = thread.get()
985
+
986
+ Args:
987
+ audience_segment_id (int): The id of the contact list audience-segment to amend, we only accept external Id here
988
+ retail_media_contactlist_amendment_request (RetailMediaContactlistAmendmentRequest):
989
+
990
+ Keyword Args:
991
+ _return_http_data_only (bool): response data without head status
992
+ code and headers. Default is True.
993
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
994
+ will be returned without reading/decoding response data.
995
+ Default is True.
996
+ _request_timeout (int/float/tuple): timeout setting for this request. If
997
+ one number provided, it will be total request timeout. It can also
998
+ be a pair (tuple) of (connection, read) timeouts.
999
+ Default is None.
1000
+ _check_input_type (bool): specifies if type checking
1001
+ should be done one the data sent to the server.
1002
+ Default is True.
1003
+ _check_return_type (bool): specifies if type checking
1004
+ should be done one the data received from the server.
1005
+ Default is True.
1006
+ _spec_property_naming (bool): True if the variable names in the input data
1007
+ are serialized names, as specified in the OpenAPI document.
1008
+ False if the variable names in the input data
1009
+ are pythonic names, e.g. snake case (default)
1010
+ _content_type (str/None): force body content-type.
1011
+ Default is None and content-type will be predicted by allowed
1012
+ content-types and body.
1013
+ _host_index (int/None): specifies the index of the server
1014
+ that we want to use.
1015
+ Default is read from the configuration.
1016
+ _request_auths (list): set to override the auth_settings for an a single
1017
+ request; this effectively ignores the authentication
1018
+ in the spec for a single request.
1019
+ Default is None
1020
+ async_req (bool): execute request asynchronously
1021
+
1022
+ Returns:
1023
+ RetailMediaContactlistOperation
1024
+ If the method is called asynchronously, returns the request
1025
+ thread.
1026
+ """
1027
+ kwargs['async_req'] = kwargs.get(
1028
+ 'async_req', False
1029
+ )
1030
+ kwargs['_return_http_data_only'] = kwargs.get(
1031
+ '_return_http_data_only', True
1032
+ )
1033
+ kwargs['_preload_content'] = kwargs.get(
1034
+ '_preload_content', True
969
1035
  )
1036
+ kwargs['_request_timeout'] = kwargs.get(
1037
+ '_request_timeout', None
1038
+ )
1039
+ kwargs['_check_input_type'] = kwargs.get(
1040
+ '_check_input_type', True
1041
+ )
1042
+ kwargs['_check_return_type'] = kwargs.get(
1043
+ '_check_return_type', True
1044
+ )
1045
+ kwargs['_spec_property_naming'] = kwargs.get(
1046
+ '_spec_property_naming', False
1047
+ )
1048
+ kwargs['_content_type'] = kwargs.get(
1049
+ '_content_type')
1050
+ kwargs['_host_index'] = kwargs.get('_host_index')
1051
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1052
+ kwargs['audience_segment_id'] = \
1053
+ audience_segment_id
1054
+ kwargs['retail_media_contactlist_amendment_request'] = \
1055
+ retail_media_contactlist_amendment_request
1056
+ return self.add_remove_contact_list_by_audience_segment_endpoint.call_with_http_info(**kwargs)
970
1057
 
971
1058
  def bulk_create_audience(
972
1059
  self,
@@ -1490,24 +1577,22 @@ class AudienceApi(object):
1490
1577
  rm_audience_segment_bulk_update_input_v1
1491
1578
  return self.bulk_update_audience_segments_endpoint.call_with_http_info(**kwargs)
1492
1579
 
1493
- def compute_audience_segments_sizes(
1580
+ def clear_contact_list_by_audience_segment(
1494
1581
  self,
1495
- account_id,
1496
- rm_audience_segment_compute_sizes_input_v1,
1582
+ audience_segment_id,
1497
1583
  **kwargs
1498
1584
  ):
1499
- """compute_audience_segments_sizes # noqa: E501
1585
+ """clear_contact_list_by_audience_segment # noqa: E501
1500
1586
 
1501
- Gets the size of all segments. An error is returned for those whose size calculation is not supported. # noqa: E501
1587
+ Delete all identifiers from a retail-media contact list audience-segment, with external audience segment id. # noqa: E501
1502
1588
  This method makes a synchronous HTTP request by default. To make an
1503
1589
  asynchronous HTTP request, please pass async_req=True
1504
1590
 
1505
- >>> thread = api.compute_audience_segments_sizes(account_id, rm_audience_segment_compute_sizes_input_v1, async_req=True)
1591
+ >>> thread = api.clear_contact_list_by_audience_segment(audience_segment_id, async_req=True)
1506
1592
  >>> result = thread.get()
1507
1593
 
1508
1594
  Args:
1509
- account_id (str): Account id
1510
- rm_audience_segment_compute_sizes_input_v1 (RmAudienceSegmentComputeSizesInputV1):
1595
+ audience_segment_id (int): The id of the contact list audience-segment to amend, we only accept external Id here
1511
1596
 
1512
1597
  Keyword Args:
1513
1598
  _return_http_data_only (bool): response data without head status
@@ -1542,7 +1627,7 @@ class AudienceApi(object):
1542
1627
  async_req (bool): execute request asynchronously
1543
1628
 
1544
1629
  Returns:
1545
- RmAudienceSegmentSizeEntityV1ListResponse
1630
+ None
1546
1631
  If the method is called asynchronously, returns the request
1547
1632
  thread.
1548
1633
  """
@@ -1571,30 +1656,28 @@ class AudienceApi(object):
1571
1656
  '_content_type')
1572
1657
  kwargs['_host_index'] = kwargs.get('_host_index')
1573
1658
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1574
- kwargs['account_id'] = \
1575
- account_id
1576
- kwargs['rm_audience_segment_compute_sizes_input_v1'] = \
1577
- rm_audience_segment_compute_sizes_input_v1
1578
- return self.compute_audience_segments_sizes_endpoint.call_with_http_info(**kwargs)
1659
+ kwargs['audience_segment_id'] = \
1660
+ audience_segment_id
1661
+ return self.clear_contact_list_by_audience_segment_endpoint.call_with_http_info(**kwargs)
1579
1662
 
1580
- def compute_audiences_sizes(
1663
+ def compute_audience_segments_sizes(
1581
1664
  self,
1582
1665
  account_id,
1583
- rm_audience_compute_sizes_input_v1,
1666
+ rm_audience_segment_compute_sizes_input_v1,
1584
1667
  **kwargs
1585
1668
  ):
1586
- """compute_audiences_sizes # noqa: E501
1669
+ """compute_audience_segments_sizes # noqa: E501
1587
1670
 
1588
- Gets the size of all audiences. An error is returned for those whose size calculation is not supported. # noqa: E501
1671
+ Gets the size of all segments. An error is returned for those whose size calculation is not supported. # noqa: E501
1589
1672
  This method makes a synchronous HTTP request by default. To make an
1590
1673
  asynchronous HTTP request, please pass async_req=True
1591
1674
 
1592
- >>> thread = api.compute_audiences_sizes(account_id, rm_audience_compute_sizes_input_v1, async_req=True)
1675
+ >>> thread = api.compute_audience_segments_sizes(account_id, rm_audience_segment_compute_sizes_input_v1, async_req=True)
1593
1676
  >>> result = thread.get()
1594
1677
 
1595
1678
  Args:
1596
- account_id (str): Account Id
1597
- rm_audience_compute_sizes_input_v1 (RmAudienceComputeSizesInputV1):
1679
+ account_id (str): Account id
1680
+ rm_audience_segment_compute_sizes_input_v1 (RmAudienceSegmentComputeSizesInputV1):
1598
1681
 
1599
1682
  Keyword Args:
1600
1683
  _return_http_data_only (bool): response data without head status
@@ -1629,7 +1712,7 @@ class AudienceApi(object):
1629
1712
  async_req (bool): execute request asynchronously
1630
1713
 
1631
1714
  Returns:
1632
- RmAudienceSizeEntityV1ListResponse
1715
+ RmAudienceSegmentSizeEntityV1ListResponse
1633
1716
  If the method is called asynchronously, returns the request
1634
1717
  thread.
1635
1718
  """
@@ -1660,26 +1743,28 @@ class AudienceApi(object):
1660
1743
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1661
1744
  kwargs['account_id'] = \
1662
1745
  account_id
1663
- kwargs['rm_audience_compute_sizes_input_v1'] = \
1664
- rm_audience_compute_sizes_input_v1
1665
- return self.compute_audiences_sizes_endpoint.call_with_http_info(**kwargs)
1746
+ kwargs['rm_audience_segment_compute_sizes_input_v1'] = \
1747
+ rm_audience_segment_compute_sizes_input_v1
1748
+ return self.compute_audience_segments_sizes_endpoint.call_with_http_info(**kwargs)
1666
1749
 
1667
- def delete_contact_list_by_audience_segment(
1750
+ def compute_audiences_sizes(
1668
1751
  self,
1669
- audience_segment_id,
1752
+ account_id,
1753
+ rm_audience_compute_sizes_input_v1,
1670
1754
  **kwargs
1671
1755
  ):
1672
- """delete_contact_list_by_audience_segment # noqa: E501
1756
+ """compute_audiences_sizes # noqa: E501
1673
1757
 
1674
- Delete all identifiers from a retail-media contact list audience-segment, with external audience segment id. # noqa: E501
1758
+ Gets the size of all audiences. An error is returned for those whose size calculation is not supported. # noqa: E501
1675
1759
  This method makes a synchronous HTTP request by default. To make an
1676
1760
  asynchronous HTTP request, please pass async_req=True
1677
1761
 
1678
- >>> thread = api.delete_contact_list_by_audience_segment(audience_segment_id, async_req=True)
1762
+ >>> thread = api.compute_audiences_sizes(account_id, rm_audience_compute_sizes_input_v1, async_req=True)
1679
1763
  >>> result = thread.get()
1680
1764
 
1681
1765
  Args:
1682
- audience_segment_id (int): The id of the contact list audience-segment to amend, we only accept external Id here
1766
+ account_id (str): Account Id
1767
+ rm_audience_compute_sizes_input_v1 (RmAudienceComputeSizesInputV1):
1683
1768
 
1684
1769
  Keyword Args:
1685
1770
  _return_http_data_only (bool): response data without head status
@@ -1714,7 +1799,7 @@ class AudienceApi(object):
1714
1799
  async_req (bool): execute request asynchronously
1715
1800
 
1716
1801
  Returns:
1717
- None
1802
+ RmAudienceSizeEntityV1ListResponse
1718
1803
  If the method is called asynchronously, returns the request
1719
1804
  thread.
1720
1805
  """
@@ -1743,9 +1828,11 @@ class AudienceApi(object):
1743
1828
  '_content_type')
1744
1829
  kwargs['_host_index'] = kwargs.get('_host_index')
1745
1830
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1746
- kwargs['audience_segment_id'] = \
1747
- audience_segment_id
1748
- return self.delete_contact_list_by_audience_segment_endpoint.call_with_http_info(**kwargs)
1831
+ kwargs['account_id'] = \
1832
+ account_id
1833
+ kwargs['rm_audience_compute_sizes_input_v1'] = \
1834
+ rm_audience_compute_sizes_input_v1
1835
+ return self.compute_audiences_sizes_endpoint.call_with_http_info(**kwargs)
1749
1836
 
1750
1837
  def estimate_audience_segment_size(
1751
1838
  self,
@@ -2186,90 +2273,3 @@ class AudienceApi(object):
2186
2273
  rm_audience_search_input_v1
2187
2274
  return self.search_audiences_endpoint.call_with_http_info(**kwargs)
2188
2275
 
2189
- def update_contact_list_by_audience_segment(
2190
- self,
2191
- audience_segment_id,
2192
- retail_media_contactlist_amendment_request,
2193
- **kwargs
2194
- ):
2195
- """update_contact_list_by_audience_segment # noqa: E501
2196
-
2197
- Add/remove identifiers to or from a retail-media contact list audience-segment, with external audience segment id. # noqa: E501
2198
- This method makes a synchronous HTTP request by default. To make an
2199
- asynchronous HTTP request, please pass async_req=True
2200
-
2201
- >>> thread = api.update_contact_list_by_audience_segment(audience_segment_id, retail_media_contactlist_amendment_request, async_req=True)
2202
- >>> result = thread.get()
2203
-
2204
- Args:
2205
- audience_segment_id (int): The id of the contact list audience-segment to amend, we only accept external Id here
2206
- retail_media_contactlist_amendment_request (RetailMediaContactlistAmendmentRequest):
2207
-
2208
- Keyword Args:
2209
- _return_http_data_only (bool): response data without head status
2210
- code and headers. Default is True.
2211
- _preload_content (bool): if False, the urllib3.HTTPResponse object
2212
- will be returned without reading/decoding response data.
2213
- Default is True.
2214
- _request_timeout (int/float/tuple): timeout setting for this request. If
2215
- one number provided, it will be total request timeout. It can also
2216
- be a pair (tuple) of (connection, read) timeouts.
2217
- Default is None.
2218
- _check_input_type (bool): specifies if type checking
2219
- should be done one the data sent to the server.
2220
- Default is True.
2221
- _check_return_type (bool): specifies if type checking
2222
- should be done one the data received from the server.
2223
- Default is True.
2224
- _spec_property_naming (bool): True if the variable names in the input data
2225
- are serialized names, as specified in the OpenAPI document.
2226
- False if the variable names in the input data
2227
- are pythonic names, e.g. snake case (default)
2228
- _content_type (str/None): force body content-type.
2229
- Default is None and content-type will be predicted by allowed
2230
- content-types and body.
2231
- _host_index (int/None): specifies the index of the server
2232
- that we want to use.
2233
- Default is read from the configuration.
2234
- _request_auths (list): set to override the auth_settings for an a single
2235
- request; this effectively ignores the authentication
2236
- in the spec for a single request.
2237
- Default is None
2238
- async_req (bool): execute request asynchronously
2239
-
2240
- Returns:
2241
- RetailMediaContactlistOperation
2242
- If the method is called asynchronously, returns the request
2243
- thread.
2244
- """
2245
- kwargs['async_req'] = kwargs.get(
2246
- 'async_req', False
2247
- )
2248
- kwargs['_return_http_data_only'] = kwargs.get(
2249
- '_return_http_data_only', True
2250
- )
2251
- kwargs['_preload_content'] = kwargs.get(
2252
- '_preload_content', True
2253
- )
2254
- kwargs['_request_timeout'] = kwargs.get(
2255
- '_request_timeout', None
2256
- )
2257
- kwargs['_check_input_type'] = kwargs.get(
2258
- '_check_input_type', True
2259
- )
2260
- kwargs['_check_return_type'] = kwargs.get(
2261
- '_check_return_type', True
2262
- )
2263
- kwargs['_spec_property_naming'] = kwargs.get(
2264
- '_spec_property_naming', False
2265
- )
2266
- kwargs['_content_type'] = kwargs.get(
2267
- '_content_type')
2268
- kwargs['_host_index'] = kwargs.get('_host_index')
2269
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
2270
- kwargs['audience_segment_id'] = \
2271
- audience_segment_id
2272
- kwargs['retail_media_contactlist_amendment_request'] = \
2273
- retail_media_contactlist_amendment_request
2274
- return self.update_contact_list_by_audience_segment_endpoint.call_with_http_info(**kwargs)
2275
-
@@ -76,7 +76,7 @@ class ApiClient(object):
76
76
  self.default_headers[header_name] = header_value
77
77
  self.cookie = cookie
78
78
  # Set default User-Agent.
79
- self.user_agent = 'OpenAPI-Generator/0.0.251028/python'
79
+ self.user_agent = 'OpenAPI-Generator/0.0.251029/python'
80
80
 
81
81
  def __enter__(self):
82
82
  return self
@@ -395,7 +395,7 @@ class Configuration(object):
395
395
  "OS: {env}\n"\
396
396
  "Python Version: {pyversion}\n"\
397
397
  "Version of the API: Preview\n"\
398
- "SDK Package Version: 0.0.251028".\
398
+ "SDK Package Version: 0.0.251029".\
399
399
  format(env=sys.platform, pyversion=sys.version)
400
400
 
401
401
  def get_host_settings(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: criteo-api-retailmedia-sdk
3
- Version: 0.0.251028
3
+ Version: 0.0.251029
4
4
  Summary: Criteo API SDK
5
5
  Home-page: https://github.com/criteo/criteo-api-python-sdk
6
6
  Author: Criteo
@@ -35,9 +35,9 @@ IMPORTANT: This Python package links to Criteo production environment. Any test
35
35
 
36
36
 
37
37
  ```sh
38
- pip install criteo-api-retailmedia-sdk==0.0.251028
38
+ pip install criteo-api-retailmedia-sdk==0.0.251029
39
39
  ```
40
- (you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.251028`)
40
+ (you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==0.0.251029`)
41
41
 
42
42
  Then import the package:
43
43
  ```python
@@ -1,7 +1,7 @@
1
- criteo_api_retailmedia_preview/__init__.py,sha256=cEFQ6ZY-aUo7GsYDPdwO4_YCFHrCQMQq6C5QGDlj3WE,1023
2
- criteo_api_retailmedia_preview/api_client.py,sha256=32c29-3W-gujxVat2yvh9ySZ3wZCWbE8uG6j6PvcS3A,39217
1
+ criteo_api_retailmedia_preview/__init__.py,sha256=pjC87JsZ72Qv3ETpCtFDxuI9IaysXWhj36k05up1B9Y,1023
2
+ criteo_api_retailmedia_preview/api_client.py,sha256=NlK5iyjdKYW5GvyFU0FXIRioOA1ohHsrjApSoAGLiKI,39217
3
3
  criteo_api_retailmedia_preview/api_client_builder.py,sha256=GA_82AyTtGhe8KsCV4WRibYrDshmKbXDRLdELNYmBEo,1504
4
- criteo_api_retailmedia_preview/configuration.py,sha256=Nq_fE0a53vkue3qeKllSB5As2GFk1QTGIf-7yYYQAhw,16714
4
+ criteo_api_retailmedia_preview/configuration.py,sha256=VUfq4Ebo0m-JbkWbQgPXBUSIbv7Y-0xFRKA-NGQ-NZE,16714
5
5
  criteo_api_retailmedia_preview/criteo_api_client.py,sha256=OMLOZH6PXNNHEZ-9_X1b-jNJT80YCrfQrxln-6rWo3k,652
6
6
  criteo_api_retailmedia_preview/criteo_auth.py,sha256=1pjObPpytC72QM8YxL3NmwDI0ePSXuRFIiMpq6j3LF0,4693
7
7
  criteo_api_retailmedia_preview/criteo_rest.py,sha256=7fjy1FXDYlgRVnUqEvXaa3daGnZAB0rUPqmFxgBeRmk,3410
@@ -12,7 +12,7 @@ criteo_api_retailmedia_preview/rest.py,sha256=QxPwwAVXwOGPybdM9wkJDT2zT9ehe-PRby
12
12
  criteo_api_retailmedia_preview/api/__init__.py,sha256=PFuWrNYpBsqByMl7orspJxVAv0aLDjlUrEbAR3TBJJg,235
13
13
  criteo_api_retailmedia_preview/api/accounts_api.py,sha256=-v_l2WSgGzF0yjtaGkXh05S5WkwFSHmAbN7Uv4TYM_E,18918
14
14
  criteo_api_retailmedia_preview/api/analytics_api.py,sha256=rtMNt8MCVXbOJL2fQyK4wywCdE76MKiDPofxKFzQnUk,61258
15
- criteo_api_retailmedia_preview/api/audience_api.py,sha256=TPDhkuFNOM_uiHcLvf1qHcOGS3JsqhpLhQKKx-oST1E,93954
15
+ criteo_api_retailmedia_preview/api/audience_api.py,sha256=KHexZt5S-VEq5JgXeeTYibzkzN9nU6Ve0Rw8DA9ZIUk,93972
16
16
  criteo_api_retailmedia_preview/api/balance_api.py,sha256=utTxcXz-H__JiN1yx2UoFu4FUzMaV7H9InPygeSHbf8,38052
17
17
  criteo_api_retailmedia_preview/api/billing_api.py,sha256=FKx4n5jFFMh83fZuV4_2wIoSBc0oXW8OXVUS44wDxvU,17149
18
18
  criteo_api_retailmedia_preview/api/campaign_api.py,sha256=nt_pCH8MdNc5VP4iba5NEq-DeICKo5ITMClXotyLHqQ,218226
@@ -360,7 +360,7 @@ criteo_api_retailmedia_preview/model/value_resource_set_sku_buy_box_winners_requ
360
360
  criteo_api_retailmedia_preview/model/value_resource_update_offers_request.py,sha256=mvfCuIfe1_km1sIe9nWccLTtI_49DDCeY1plBzJbU84,11695
361
361
  criteo_api_retailmedia_preview/model/video_variable_value.py,sha256=MutQTssNekmvLKDmu2kTKk0ZrijtpRwYToR_-nlo3SM,12078
362
362
  criteo_api_retailmedia_preview/models/__init__.py,sha256=OYfxclLqvQYSYCZMW1XIIDdZDiWNLItHQaZQjZXjVqk,38738
363
- criteo_api_retailmedia_sdk-0.0.251028.dist-info/METADATA,sha256=yKwycoNkvhRopxt08EyOdhzYAFoEomqBZJy9Dbn_6H8,1848
364
- criteo_api_retailmedia_sdk-0.0.251028.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
365
- criteo_api_retailmedia_sdk-0.0.251028.dist-info/top_level.txt,sha256=mR8aaWgc27pZ23OyoxxkhvUuHPeOkKiUaNQ-RiAivhc,31
366
- criteo_api_retailmedia_sdk-0.0.251028.dist-info/RECORD,,
363
+ criteo_api_retailmedia_sdk-0.0.251029.dist-info/METADATA,sha256=mzsPHlbIszCsaP1jWXyJBkIg4zsMtTboiRxteTkBycw,1848
364
+ criteo_api_retailmedia_sdk-0.0.251029.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
365
+ criteo_api_retailmedia_sdk-0.0.251029.dist-info/top_level.txt,sha256=mR8aaWgc27pZ23OyoxxkhvUuHPeOkKiUaNQ-RiAivhc,31
366
+ criteo_api_retailmedia_sdk-0.0.251029.dist-info/RECORD,,