criteo-api-retailmedia-sdk 2023.7.0.240626__py3-none-any.whl → 2023.7.0.240808__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 (20) hide show
  1. {criteo_api_retailmedia_sdk-2023.7.0.240626.dist-info → criteo_api_retailmedia_sdk-2023.7.0.240808.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2023.7.0.240626.dist-info → criteo_api_retailmedia_sdk-2023.7.0.240808.dist-info}/RECORD +20 -18
  3. {criteo_api_retailmedia_sdk-2023.7.0.240626.dist-info → criteo_api_retailmedia_sdk-2023.7.0.240808.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2023_07/__init__.py +1 -1
  5. criteo_api_retailmedia_v2023_07/api/__init__.py +1 -1
  6. criteo_api_retailmedia_v2023_07/api/accounts_api.py +182 -0
  7. criteo_api_retailmedia_v2023_07/api/balance_api.py +347 -0
  8. criteo_api_retailmedia_v2023_07/api/campaign_api.py +10 -458
  9. criteo_api_retailmedia_v2023_07/api_client.py +5 -5
  10. criteo_api_retailmedia_v2023_07/apis/__init__.py +3 -1
  11. criteo_api_retailmedia_v2023_07/configuration.py +1 -1
  12. criteo_api_retailmedia_v2023_07/model/application_summary_model_response.py +0 -4
  13. criteo_api_retailmedia_v2023_07/model/async_campaigns_report.py +2 -0
  14. criteo_api_retailmedia_v2023_07/model/async_line_items_report.py +2 -0
  15. criteo_api_retailmedia_v2023_07/model/common_problem.py +2 -2
  16. criteo_api_retailmedia_v2023_07/model/external_balance202110.py +14 -2
  17. criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_account.py +8 -6
  18. criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_brand.py +8 -6
  19. criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_retailer.py +8 -6
  20. {criteo_api_retailmedia_sdk-2023.7.0.240626.dist-info → criteo_api_retailmedia_sdk-2023.7.0.240808.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: criteo-api-retailmedia-sdk
3
- Version: 2023.7.0.240626
3
+ Version: 2023.7.0.240808
4
4
  Summary: Criteo API SDK
5
5
  Home-page: https://github.com/criteo/criteo-api-python-sdk
6
6
  Author: Criteo
@@ -26,9 +26,9 @@ IMPORTANT: This Python package links to Criteo production environment. Any test
26
26
 
27
27
 
28
28
  ```sh
29
- pip install criteo-api-retailmedia-sdk==2023.07.0.240626
29
+ pip install criteo-api-retailmedia-sdk==2023.07.0.240808
30
30
  ```
31
- (you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.240626`)
31
+ (you may need to run `pip` with root permission: `sudo pip install criteo-api-retailmedia-sdk==2023.07.0.240808`)
32
32
 
33
33
  Then import the package:
34
34
  ```python
@@ -1,7 +1,7 @@
1
- criteo_api_retailmedia_v2023_07/__init__.py,sha256=fivniP5yQloM6sVyzVvxOosuSToo1v1-L5NjhxBbqsU,1040
2
- criteo_api_retailmedia_v2023_07/api_client.py,sha256=yNy-xy2LI0WG6BcU87BZ2B9rfuDI0NRE1_1NI7LgBYw,39276
1
+ criteo_api_retailmedia_v2023_07/__init__.py,sha256=qVLdn4RvUm95_9iWGQZbmJ4S6QI5JI5pVIgI_wQs9v4,1040
2
+ criteo_api_retailmedia_v2023_07/api_client.py,sha256=xZ4WdfgIuR-c-qaUg5nye9E7B_w_PDSX8r7YWnS8gwo,39263
3
3
  criteo_api_retailmedia_v2023_07/api_client_builder.py,sha256=Uig5U342xQY8h8Nbh2qd_KXxJ6-fFvvcTxF9bvxvYiw,1507
4
- criteo_api_retailmedia_v2023_07/configuration.py,sha256=hkj8tHGQuWe4jFowQwSo0NIJgijGyZWq598XUKEY11A,16722
4
+ criteo_api_retailmedia_v2023_07/configuration.py,sha256=sVC_TPdnFnp8NQS0jBClfcYFpX1F-UA9YzX6pw2ZH3A,16722
5
5
  criteo_api_retailmedia_v2023_07/criteo_api_client.py,sha256=62lSxj6K7stoq8q4-m3EW-CKXLTLf4Sycv0yuwK3h54,654
6
6
  criteo_api_retailmedia_v2023_07/criteo_auth.py,sha256=iBm9P_REqIU3KfnH0YMNHOsnPOK9u2wkk_5plGtiwsE,4696
7
7
  criteo_api_retailmedia_v2023_07/criteo_rest.py,sha256=1wbJeXNOkBVsgevuxgeqB5nKNU7O28F6gdOBMxNxOwE,3413
@@ -9,12 +9,14 @@ criteo_api_retailmedia_v2023_07/exceptions.py,sha256=pVXbvMdFD4ws3EcW_RPfFOHY4BW
9
9
  criteo_api_retailmedia_v2023_07/flow_constants.py,sha256=Ib8P11y_f2GCzYFORWeFqmpYSDSVTWlQZxpZx_ei4jE,193
10
10
  criteo_api_retailmedia_v2023_07/model_utils.py,sha256=VU--GsiBhcbhLeSVZPIGfzRi4usFlrOkrE9iv58QRpU,82565
11
11
  criteo_api_retailmedia_v2023_07/rest.py,sha256=8VR2wgxXDS2Nm3ZztJck6E8YmDCh7s7KduNybwC4h8c,14242
12
- criteo_api_retailmedia_v2023_07/api/__init__.py,sha256=hm8nZ1KjawPiTHe5bTSNl48wOpbkilQflD2kM9aRRWA,237
12
+ criteo_api_retailmedia_v2023_07/api/__init__.py,sha256=IZY1Nyfnb9XJbL4ZuUB4abCEJ7rCnxwyc99ZMMuNVfQ,236
13
+ criteo_api_retailmedia_v2023_07/api/accounts_api.py,sha256=2C-cm7OMlvzZ_AWl2ueeAW4KHXnMGLxLE-4GlgF2GQI,6846
13
14
  criteo_api_retailmedia_v2023_07/api/analytics_api.py,sha256=O45gTuqD8xkpBQzQIcuLSy-z9D8qEZws_H3oas9RRUY,22718
14
15
  criteo_api_retailmedia_v2023_07/api/audience_api.py,sha256=LA6S8gVphimv6Q1hQhpMfvByzIZ6knZ_TJZLTojsQEE,26445
15
- criteo_api_retailmedia_v2023_07/api/campaign_api.py,sha256=-DZEz1r2PKyOi6CrRtbCSEkIWjd3Xqy2j75f1tP8IYw,368121
16
+ criteo_api_retailmedia_v2023_07/api/balance_api.py,sha256=uXwWkiJbfsxD8wCz5cjx9IP1Bkg1g8K_mSaioN9_Nmk,13685
17
+ criteo_api_retailmedia_v2023_07/api/campaign_api.py,sha256=lcYq_alLes_rXb7ZCJNWHD96PKrKw6owig175ohE7ys,349927
16
18
  criteo_api_retailmedia_v2023_07/api/gateway_api.py,sha256=D1keGKlH9VFuf7fdlgl5GsUaAj-llgebKXfPRPLThLo,5696
17
- criteo_api_retailmedia_v2023_07/apis/__init__.py,sha256=-1ffPJvIO9nOuRjReL9zfuc--kOeN6UeoXbrhNzTx6A,740
19
+ criteo_api_retailmedia_v2023_07/apis/__init__.py,sha256=O2jsWb7DJu9o_4e_XAc3hGS1O7UqCerSg9KHP7gCZ0o,882
18
20
  criteo_api_retailmedia_v2023_07/model/__init__.py,sha256=Co3xzLmOKkjtTOIUf8s-onkw3vpa4fNcwN9JQ9uxONw,365
19
21
  criteo_api_retailmedia_v2023_07/model/add_remove_keyword_model.py,sha256=hhJjEolKUP2R-MpHaqISXqQdP-UFSLZPryOmmkkp3Xg,11930
20
22
  criteo_api_retailmedia_v2023_07/model/add_remove_keywords_model.py,sha256=Qqx1zD02GNUy71io_dRQAFjjymLDcUvtpSMpCfPNbf0,11455
@@ -25,15 +27,15 @@ criteo_api_retailmedia_v2023_07/model/add_to_basket_target202110_request.py,sha2
25
27
  criteo_api_retailmedia_v2023_07/model/add_to_basket_target202110_response.py,sha256=ysgmp26qMoKC1-H1ACFIyVTQGllG2wzMiacFfsECio8,12535
26
28
  criteo_api_retailmedia_v2023_07/model/application_summary_model.py,sha256=_VNB9NfZsBf_1BYolBX0zKLHKcbEgfdTMzVFtTwsO40,12478
27
29
  criteo_api_retailmedia_v2023_07/model/application_summary_model_resource.py,sha256=y24Pklg6Xxv6Z7IJmtoeljZ0ZMH8nCiRA-P7T9xEMrQ,11974
28
- criteo_api_retailmedia_v2023_07/model/application_summary_model_response.py,sha256=rfdEY94J8G07V9W5GVcLtsJBF1Lu6OeL24SZq3o2v9w,12580
30
+ criteo_api_retailmedia_v2023_07/model/application_summary_model_response.py,sha256=l-nPqbBqmMOj01Kw0UdSm4ECbg5gg6JgFPEYuRQQ4p0,12510
29
31
  criteo_api_retailmedia_v2023_07/model/approval_status_model.py,sha256=We86-QsypkG9QPtzQbojhEODkhwa2lHQ86Tpb8eqmjg,12415
30
32
  criteo_api_retailmedia_v2023_07/model/asset.py,sha256=lxYZjtI3HZrLgklef_n4FUVEnU3-wp_xiZedbq_gDp8,12253
31
33
  criteo_api_retailmedia_v2023_07/model/asset_resource.py,sha256=D5FohoyocWUKCzW0Azj3V5P-tHguZTpc_2PMQKLrR40,11993
32
34
  criteo_api_retailmedia_v2023_07/model/asset_response.py,sha256=ZzzF_m1rLR2s1Z5fB15S25bFFzQsKZA4ZzVtcr7YrSg,12398
33
- criteo_api_retailmedia_v2023_07/model/async_campaigns_report.py,sha256=erRihVKXbNRfUYvHq_-2jQ631AV4K1lFhzT7N0gkVNU,19634
35
+ criteo_api_retailmedia_v2023_07/model/async_campaigns_report.py,sha256=Uvdj-D3fdH3lrnHz5ZBatkVy85ZmuNRX-_AYAsv5HbQ,19734
34
36
  criteo_api_retailmedia_v2023_07/model/async_campaigns_report_request.py,sha256=_FaohB_OiUMha2e2LbeFqGOramgOX8K69v-zXewqh0w,11757
35
37
  criteo_api_retailmedia_v2023_07/model/async_campaigns_report_resource.py,sha256=eZ14vR3J-bo-wYBD8YklpE-obV8k27BD7qm7_bOIajw,11944
36
- criteo_api_retailmedia_v2023_07/model/async_line_items_report.py,sha256=jg8mOywq7ervHWi7IkbMdZBsC7x2IH9TagzlAMB7438,19638
38
+ criteo_api_retailmedia_v2023_07/model/async_line_items_report.py,sha256=6LyM2_SwwGzLAsQFM0cE7rIwkRbIcdCJ_DhOgqU8TaM,19738
37
39
  criteo_api_retailmedia_v2023_07/model/async_line_items_report_request.py,sha256=gWcuXEuxC8FzHBeQUkwMTbkX-vCg-LQkRznBNMsEt0U,11758
38
40
  criteo_api_retailmedia_v2023_07/model/async_line_items_report_resource.py,sha256=wwQO5tmJg8A-AW9b3hunCAkLxLMgi4iUIy7rLo_ECYo,11945
39
41
  criteo_api_retailmedia_v2023_07/model/async_report_response.py,sha256=_UL8V2IBdIIfJom8CMQ5m54oWarx2IbzCAnz4FcE7K0,12410
@@ -58,7 +60,7 @@ criteo_api_retailmedia_v2023_07/model/color_variable_value.py,sha256=bf8xMvBhKzO
58
60
  criteo_api_retailmedia_v2023_07/model/common_error.py,sha256=8pEytACmeN8002-SKV0WitIpWsPTREO_cZGJwEBVLoQ,14570
59
61
  criteo_api_retailmedia_v2023_07/model/common_line_item_paged_list_response.py,sha256=Bj5x6C5xBsI9ZhDcr96qhPx5hHKveeoZdGptRGzPu3I,12763
60
62
  criteo_api_retailmedia_v2023_07/model/common_line_item_response.py,sha256=i7kCTScWlAb3GeoNq-kWO8Ywe3ttgXKwFc60YPpPWrA,12379
61
- criteo_api_retailmedia_v2023_07/model/common_problem.py,sha256=s48yNjLH1JLbYMr0cB9AwkTrKicKYq7ea7-N_GA8H98,14698
63
+ criteo_api_retailmedia_v2023_07/model/common_problem.py,sha256=2ZoX3p-WrFlVogyBsq2WGT8jA6EnuOZIJFcBVW4Gpo8,14696
62
64
  criteo_api_retailmedia_v2023_07/model/common_warning.py,sha256=-Nov3P64grOhdxHQy7Pw7LgA9_2cIaThtK6sEQLLpMU,14576
63
65
  criteo_api_retailmedia_v2023_07/model/creative202110.py,sha256=9hsLTPPjnTmustUX3qxKCX0c0lh7m7bL3uHw0TOe3n8,12806
64
66
  criteo_api_retailmedia_v2023_07/model/creative202110_list_response.py,sha256=ShLq4xzitcYTCKPSTY0T282CwDcYyaU3izsLe86jhBw,12395
@@ -76,7 +78,7 @@ criteo_api_retailmedia_v2023_07/model/external_auction_line_item_create_model.py
76
78
  criteo_api_retailmedia_v2023_07/model/external_auction_line_item_update_model.py,sha256=MoAAmmYxjy8xCvtLYsqloekSVoAvAT9OcrMIuzNGdkA,15075
77
79
  criteo_api_retailmedia_v2023_07/model/external_audience_ids_update_model202110.py,sha256=qYCgHtTHKy2mmt3t-sfVut1aWLKqokSuPdwhJ2mYWmU,11662
78
80
  criteo_api_retailmedia_v2023_07/model/external_audience_target202110.py,sha256=2onc8Y1prsWsHop4RgJEiI1hs48jnSe9G4CPn4HnJCk,12032
79
- criteo_api_retailmedia_v2023_07/model/external_balance202110.py,sha256=1nyMHknJ31kINq2yI63CuYjLowzA5KSYxg3-HS6XaLI,14389
81
+ criteo_api_retailmedia_v2023_07/model/external_balance202110.py,sha256=Hy3kMzskjP_R-N9kM7g3OMBW5hohJfdYvVIFIRc-3HA,15122
80
82
  criteo_api_retailmedia_v2023_07/model/external_brand.py,sha256=BKXwnCRaFQD-5alJdjc3VwuEeH_aYBVTwZdl3brBjUA,11518
81
83
  criteo_api_retailmedia_v2023_07/model/external_catalog_request.py,sha256=G4D2-MU1V9SyY70VaZ-UvKVSxscu-CPLUFuRxnhm1pg,11870
82
84
  criteo_api_retailmedia_v2023_07/model/external_catalog_status.py,sha256=w0lj0qJy3PCwvt7pK67JOXZxTcztp10-4INLUNT9_IY,14615
@@ -108,10 +110,10 @@ criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_line_it
108
110
  criteo_api_retailmedia_v2023_07/model/json_api_body_with_id_of_int64_and_retailer_and_retailer.py,sha256=PA-0w4-kxfiWrnGiWLacVgMhzXdpf8-wMTAKz2GjwNY,12146
109
111
  criteo_api_retailmedia_v2023_07/model/json_api_body_without_id_of_campaign_attributes_v202301_and_campaign_v202301.py,sha256=n5gXbblymD5_0E4R6jfA0ih2phmGgAC4M8eSwyZ1G2M,12099
110
112
  criteo_api_retailmedia_v2023_07/model/json_api_body_without_id_of_catalog_request_and_catalog_request.py,sha256=NUD7os8IKWfseUu9rrTznoXe-119ReHCm7WPyCRYAZA,12042
111
- criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_account.py,sha256=BuLcWO2PHLdss7gmQqSK5-eqJB60-NvfRCkMjKnEuL0,12982
112
- criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_brand.py,sha256=KYmdH3-5E-AyUnitBebBXMwa2-eEH6QDUBqyMgWrkZU,12948
113
+ criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_account.py,sha256=geIRvsPRU6mFh55QhDnQSHAfYuKHBrafzFLrJ9OKxJM,13018
114
+ criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_brand.py,sha256=BUXX2XZN7ZfVUlT618ifwsrq8pYrTbhlb2g4K-lkJHc,12984
113
115
  criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_campaign_v202301.py,sha256=y0YmcdgysZTT6Ch68NAwDDmi-hdjpKIfFfYnBcVtBc0,13156
114
- criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_retailer.py,sha256=BFMSI1K5_C_m24EwTsZyFiSXkC4F64JSTVo7z-y21fE,12999
116
+ criteo_api_retailmedia_v2023_07/model/json_api_page_response_of_retailer.py,sha256=HUR5kJQokBxLi2rRumcU4cyuHITW6yF9L7wM0Hq9mUw,13035
115
117
  criteo_api_retailmedia_v2023_07/model/json_api_request_of_catalog_request.py,sha256=S7p5t30ZFYTpr2IrJkHw7ZW9-vk1kApsvpzFZw_4PkU,11948
116
118
  criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_campaign_v202301.py,sha256=6yzzL7sDdMi5JAw_pM6SfKTXaoN9t0uxJH5Odt4OLMk,12769
117
119
  criteo_api_retailmedia_v2023_07/model/json_api_single_response_of_catalog_status.py,sha256=19tx12P25I8zZu9IncnNYdUGubCbN8doHD0KSI_G6po,12735
@@ -203,7 +205,7 @@ criteo_api_retailmedia_v2023_07/model/value_type_resource_of_keyword_target20211
203
205
  criteo_api_retailmedia_v2023_07/model/value_type_resource_of_store_ids_update_model202110.py,sha256=wttEEvRzVXdcqynDOvDnF0apieRnMiMmnF_BOV7me0I,12052
204
206
  criteo_api_retailmedia_v2023_07/model/value_type_resource_of_store_target202110.py,sha256=PGi9Csz6GG9OirP3h8h-yWTHbMEuTqUPifmUQJAuyYs,11970
205
207
  criteo_api_retailmedia_v2023_07/models/__init__.py,sha256=OGaxJhs94omms7hjMDC2Eu_y_lE0tvjJLC3NeXlY-jY,21219
206
- criteo_api_retailmedia_sdk-2023.7.0.240626.dist-info/METADATA,sha256=-7sF1u33u3aTvZHAgIW2_hGMsIb6nOilq-SRkIxSfLU,1674
207
- criteo_api_retailmedia_sdk-2023.7.0.240626.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
208
- criteo_api_retailmedia_sdk-2023.7.0.240626.dist-info/top_level.txt,sha256=QOOgKDsuPqpb3pVw6CXXpThbo4sElcB4I2R-kh3yNOw,32
209
- criteo_api_retailmedia_sdk-2023.7.0.240626.dist-info/RECORD,,
208
+ criteo_api_retailmedia_sdk-2023.7.0.240808.dist-info/METADATA,sha256=aVFHtvBE5uwvMEgOA9sBmivl23wC80_E3Oa3JBF-6E8,1674
209
+ criteo_api_retailmedia_sdk-2023.7.0.240808.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
210
+ criteo_api_retailmedia_sdk-2023.7.0.240808.dist-info/top_level.txt,sha256=QOOgKDsuPqpb3pVw6CXXpThbo4sElcB4I2R-kh3yNOw,32
211
+ criteo_api_retailmedia_sdk-2023.7.0.240808.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.1.1)
2
+ Generator: setuptools (72.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -8,7 +8,7 @@
8
8
  """
9
9
 
10
10
 
11
- __version__ = "2023.07.0.240626"
11
+ __version__ = "2023.07.0.240808"
12
12
 
13
13
  # import ApiClient
14
14
  from criteo_api_retailmedia_v2023_07.api_client import ApiClient
@@ -1,3 +1,3 @@
1
1
  # do not import all apis into this module because that uses a lot of memory and stack frames
2
2
  # if you need the ability to import all apis from one package, import them with
3
- # from criteo_api_retailmedia_v2023_07.apis import AnalyticsApi
3
+ # from criteo_api_retailmedia_v2023_07.apis import AccountsApi
@@ -0,0 +1,182 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - RetailMedia # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2023-07
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_v2023_07.api_client import ApiClient, Endpoint as _Endpoint
15
+ from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401
16
+ check_allowed_values,
17
+ check_validations,
18
+ date,
19
+ datetime,
20
+ file_type,
21
+ none_type,
22
+ validate_and_convert_types
23
+ )
24
+ from criteo_api_retailmedia_v2023_07.model.json_api_page_response_of_account import JsonApiPageResponseOfAccount
25
+
26
+
27
+ class AccountsApi(object):
28
+ """NOTE: This class is auto generated by OpenAPI Generator
29
+ Ref: https://openapi-generator.tech
30
+
31
+ Do not edit the class manually.
32
+ """
33
+
34
+ def __init__(self, api_client=None):
35
+ if api_client is None:
36
+ api_client = ApiClient()
37
+ self.api_client = api_client
38
+ self.get_api_v1_external_accounts_endpoint = _Endpoint(
39
+ settings={
40
+ 'response_type': (JsonApiPageResponseOfAccount,),
41
+ 'auth': [
42
+ 'oauth',
43
+ 'oauth'
44
+ ],
45
+ 'endpoint_path': '/2023-07/retail-media/accounts',
46
+ 'operation_id': 'get_api_v1_external_accounts',
47
+ 'http_method': 'GET',
48
+ 'servers': None,
49
+ },
50
+ params_map={
51
+ 'all': [
52
+ 'limit_to_id',
53
+ 'page_index',
54
+ 'page_size',
55
+ ],
56
+ 'required': [],
57
+ 'nullable': [
58
+ ],
59
+ 'enum': [
60
+ ],
61
+ 'validation': [
62
+ ]
63
+ },
64
+ root_map={
65
+ 'validations': {
66
+ },
67
+ 'allowed_values': {
68
+ },
69
+ 'openapi_types': {
70
+ 'limit_to_id':
71
+ ([str],),
72
+ 'page_index':
73
+ (int,),
74
+ 'page_size':
75
+ (int,),
76
+ },
77
+ 'attribute_map': {
78
+ 'limit_to_id': 'limitToId',
79
+ 'page_index': 'pageIndex',
80
+ 'page_size': 'pageSize',
81
+ },
82
+ 'location_map': {
83
+ 'limit_to_id': 'query',
84
+ 'page_index': 'query',
85
+ 'page_size': 'query',
86
+ },
87
+ 'collection_format_map': {
88
+ 'limit_to_id': 'multi',
89
+ }
90
+ },
91
+ headers_map={
92
+ 'accept': [
93
+ 'text/plain',
94
+ 'application/json',
95
+ 'text/json'
96
+ ],
97
+ 'content_type': [],
98
+ },
99
+ api_client=api_client
100
+ )
101
+
102
+ def get_api_v1_external_accounts(
103
+ self,
104
+ **kwargs
105
+ ):
106
+ """get_api_v1_external_accounts # noqa: E501
107
+
108
+ Gets page of account objects that the current user can access # noqa: E501
109
+ This method makes a synchronous HTTP request by default. To make an
110
+ asynchronous HTTP request, please pass async_req=True
111
+
112
+ >>> thread = api.get_api_v1_external_accounts(async_req=True)
113
+ >>> result = thread.get()
114
+
115
+
116
+ Keyword Args:
117
+ limit_to_id ([str]): The ids that you would like to limit your result set to. [optional]
118
+ page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] if omitted the server will use the default value of 0
119
+ page_size (int): The maximum number of items you would like to receive in this request. [optional] if omitted the server will use the default value of 25
120
+ _return_http_data_only (bool): response data without head status
121
+ code and headers. Default is True.
122
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
123
+ will be returned without reading/decoding response data.
124
+ Default is True.
125
+ _request_timeout (int/float/tuple): timeout setting for this request. If
126
+ one number provided, it will be total request timeout. It can also
127
+ be a pair (tuple) of (connection, read) timeouts.
128
+ Default is None.
129
+ _check_input_type (bool): specifies if type checking
130
+ should be done one the data sent to the server.
131
+ Default is True.
132
+ _check_return_type (bool): specifies if type checking
133
+ should be done one the data received from the server.
134
+ Default is True.
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
+ _content_type (str/None): force body content-type.
140
+ Default is None and content-type will be predicted by allowed
141
+ content-types and body.
142
+ _host_index (int/None): specifies the index of the server
143
+ that we want to use.
144
+ Default is read from the configuration.
145
+ _request_auths (list): set to override the auth_settings for an a single
146
+ request; this effectively ignores the authentication
147
+ in the spec for a single request.
148
+ Default is None
149
+ async_req (bool): execute request asynchronously
150
+
151
+ Returns:
152
+ JsonApiPageResponseOfAccount
153
+ If the method is called asynchronously, returns the request
154
+ thread.
155
+ """
156
+ kwargs['async_req'] = kwargs.get(
157
+ 'async_req', False
158
+ )
159
+ kwargs['_return_http_data_only'] = kwargs.get(
160
+ '_return_http_data_only', True
161
+ )
162
+ kwargs['_preload_content'] = kwargs.get(
163
+ '_preload_content', True
164
+ )
165
+ kwargs['_request_timeout'] = kwargs.get(
166
+ '_request_timeout', None
167
+ )
168
+ kwargs['_check_input_type'] = kwargs.get(
169
+ '_check_input_type', True
170
+ )
171
+ kwargs['_check_return_type'] = kwargs.get(
172
+ '_check_return_type', True
173
+ )
174
+ kwargs['_spec_property_naming'] = kwargs.get(
175
+ '_spec_property_naming', False
176
+ )
177
+ kwargs['_content_type'] = kwargs.get(
178
+ '_content_type')
179
+ kwargs['_host_index'] = kwargs.get('_host_index')
180
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
181
+ return self.get_api_v1_external_accounts_endpoint.call_with_http_info(**kwargs)
182
+
@@ -0,0 +1,347 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - RetailMedia # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2023-07
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_v2023_07.api_client import ApiClient, Endpoint as _Endpoint
15
+ from criteo_api_retailmedia_v2023_07.model_utils import ( # noqa: F401
16
+ check_allowed_values,
17
+ check_validations,
18
+ date,
19
+ datetime,
20
+ file_type,
21
+ none_type,
22
+ validate_and_convert_types
23
+ )
24
+ from criteo_api_retailmedia_v2023_07.model.balance202110_paged_list_response import Balance202110PagedListResponse
25
+ from criteo_api_retailmedia_v2023_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse
26
+
27
+
28
+ class BalanceApi(object):
29
+ """NOTE: This class is auto generated by OpenAPI Generator
30
+ Ref: https://openapi-generator.tech
31
+
32
+ Do not edit the class manually.
33
+ """
34
+
35
+ def __init__(self, api_client=None):
36
+ if api_client is None:
37
+ api_client = ApiClient()
38
+ self.api_client = api_client
39
+ self.get_api202110_external_account_balances_by_account_id_endpoint = _Endpoint(
40
+ settings={
41
+ 'response_type': (Balance202110PagedListResponse,),
42
+ 'auth': [
43
+ 'oauth',
44
+ 'oauth'
45
+ ],
46
+ 'endpoint_path': '/2023-07/retail-media/accounts/{account-id}/balances',
47
+ 'operation_id': 'get_api202110_external_account_balances_by_account_id',
48
+ 'http_method': 'GET',
49
+ 'servers': None,
50
+ },
51
+ params_map={
52
+ 'all': [
53
+ 'account_id',
54
+ 'limit_to_id',
55
+ 'page_index',
56
+ 'page_size',
57
+ ],
58
+ 'required': [
59
+ 'account_id',
60
+ ],
61
+ 'nullable': [
62
+ ],
63
+ 'enum': [
64
+ ],
65
+ 'validation': [
66
+ ]
67
+ },
68
+ root_map={
69
+ 'validations': {
70
+ },
71
+ 'allowed_values': {
72
+ },
73
+ 'openapi_types': {
74
+ 'account_id':
75
+ (str,),
76
+ 'limit_to_id':
77
+ ([str],),
78
+ 'page_index':
79
+ (int,),
80
+ 'page_size':
81
+ (int,),
82
+ },
83
+ 'attribute_map': {
84
+ 'account_id': 'account-id',
85
+ 'limit_to_id': 'limitToId',
86
+ 'page_index': 'pageIndex',
87
+ 'page_size': 'pageSize',
88
+ },
89
+ 'location_map': {
90
+ 'account_id': 'path',
91
+ 'limit_to_id': 'query',
92
+ 'page_index': 'query',
93
+ 'page_size': 'query',
94
+ },
95
+ 'collection_format_map': {
96
+ 'limit_to_id': 'multi',
97
+ }
98
+ },
99
+ headers_map={
100
+ 'accept': [
101
+ 'application/json'
102
+ ],
103
+ 'content_type': [],
104
+ },
105
+ api_client=api_client
106
+ )
107
+ self.get_api202110_external_balance_campaigns_by_balance_id_endpoint = _Endpoint(
108
+ settings={
109
+ 'response_type': (BalanceCampaign202110PagedListResponse,),
110
+ 'auth': [
111
+ 'oauth',
112
+ 'oauth'
113
+ ],
114
+ 'endpoint_path': '/2023-07/retail-media/balances/{balance-id}/campaigns',
115
+ 'operation_id': 'get_api202110_external_balance_campaigns_by_balance_id',
116
+ 'http_method': 'GET',
117
+ 'servers': None,
118
+ },
119
+ params_map={
120
+ 'all': [
121
+ 'balance_id',
122
+ 'limit_to_id',
123
+ 'page_index',
124
+ 'page_size',
125
+ ],
126
+ 'required': [
127
+ 'balance_id',
128
+ ],
129
+ 'nullable': [
130
+ ],
131
+ 'enum': [
132
+ ],
133
+ 'validation': [
134
+ ]
135
+ },
136
+ root_map={
137
+ 'validations': {
138
+ },
139
+ 'allowed_values': {
140
+ },
141
+ 'openapi_types': {
142
+ 'balance_id':
143
+ (str,),
144
+ 'limit_to_id':
145
+ ([str],),
146
+ 'page_index':
147
+ (int,),
148
+ 'page_size':
149
+ (int,),
150
+ },
151
+ 'attribute_map': {
152
+ 'balance_id': 'balance-id',
153
+ 'limit_to_id': 'limitToId',
154
+ 'page_index': 'pageIndex',
155
+ 'page_size': 'pageSize',
156
+ },
157
+ 'location_map': {
158
+ 'balance_id': 'path',
159
+ 'limit_to_id': 'query',
160
+ 'page_index': 'query',
161
+ 'page_size': 'query',
162
+ },
163
+ 'collection_format_map': {
164
+ 'limit_to_id': 'multi',
165
+ }
166
+ },
167
+ headers_map={
168
+ 'accept': [
169
+ 'application/json'
170
+ ],
171
+ 'content_type': [],
172
+ },
173
+ api_client=api_client
174
+ )
175
+
176
+ def get_api202110_external_account_balances_by_account_id(
177
+ self,
178
+ account_id,
179
+ **kwargs
180
+ ):
181
+ """get_api202110_external_account_balances_by_account_id # noqa: E501
182
+
183
+ Gets page of balance objects for the given account id # noqa: E501
184
+ This method makes a synchronous HTTP request by default. To make an
185
+ asynchronous HTTP request, please pass async_req=True
186
+
187
+ >>> thread = api.get_api202110_external_account_balances_by_account_id(account_id, async_req=True)
188
+ >>> result = thread.get()
189
+
190
+ Args:
191
+ account_id (str): The account to get balances for
192
+
193
+ Keyword Args:
194
+ limit_to_id ([str]): The ids that you would like to limit your result set to. [optional]
195
+ page_index (int): The 0 indexed page index you would like to receive given the page size. [optional]
196
+ page_size (int): The maximum number of items you would like to receive in this request. [optional]
197
+ _return_http_data_only (bool): response data without head status
198
+ code and headers. Default is True.
199
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
200
+ will be returned without reading/decoding response data.
201
+ Default is True.
202
+ _request_timeout (int/float/tuple): timeout setting for this request. If
203
+ one number provided, it will be total request timeout. It can also
204
+ be a pair (tuple) of (connection, read) timeouts.
205
+ Default is None.
206
+ _check_input_type (bool): specifies if type checking
207
+ should be done one the data sent to the server.
208
+ Default is True.
209
+ _check_return_type (bool): specifies if type checking
210
+ should be done one the data received from the server.
211
+ Default is True.
212
+ _spec_property_naming (bool): True if the variable names in the input data
213
+ are serialized names, as specified in the OpenAPI document.
214
+ False if the variable names in the input data
215
+ are pythonic names, e.g. snake case (default)
216
+ _content_type (str/None): force body content-type.
217
+ Default is None and content-type will be predicted by allowed
218
+ content-types and body.
219
+ _host_index (int/None): specifies the index of the server
220
+ that we want to use.
221
+ Default is read from the configuration.
222
+ _request_auths (list): set to override the auth_settings for an a single
223
+ request; this effectively ignores the authentication
224
+ in the spec for a single request.
225
+ Default is None
226
+ async_req (bool): execute request asynchronously
227
+
228
+ Returns:
229
+ Balance202110PagedListResponse
230
+ If the method is called asynchronously, returns the request
231
+ thread.
232
+ """
233
+ kwargs['async_req'] = kwargs.get(
234
+ 'async_req', False
235
+ )
236
+ kwargs['_return_http_data_only'] = kwargs.get(
237
+ '_return_http_data_only', True
238
+ )
239
+ kwargs['_preload_content'] = kwargs.get(
240
+ '_preload_content', True
241
+ )
242
+ kwargs['_request_timeout'] = kwargs.get(
243
+ '_request_timeout', None
244
+ )
245
+ kwargs['_check_input_type'] = kwargs.get(
246
+ '_check_input_type', True
247
+ )
248
+ kwargs['_check_return_type'] = kwargs.get(
249
+ '_check_return_type', True
250
+ )
251
+ kwargs['_spec_property_naming'] = kwargs.get(
252
+ '_spec_property_naming', False
253
+ )
254
+ kwargs['_content_type'] = kwargs.get(
255
+ '_content_type')
256
+ kwargs['_host_index'] = kwargs.get('_host_index')
257
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
258
+ kwargs['account_id'] = \
259
+ account_id
260
+ return self.get_api202110_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs)
261
+
262
+ def get_api202110_external_balance_campaigns_by_balance_id(
263
+ self,
264
+ balance_id,
265
+ **kwargs
266
+ ):
267
+ """get_api202110_external_balance_campaigns_by_balance_id # noqa: E501
268
+
269
+ Gets page of campaigns for the given balanceId # noqa: E501
270
+ This method makes a synchronous HTTP request by default. To make an
271
+ asynchronous HTTP request, please pass async_req=True
272
+
273
+ >>> thread = api.get_api202110_external_balance_campaigns_by_balance_id(balance_id, async_req=True)
274
+ >>> result = thread.get()
275
+
276
+ Args:
277
+ balance_id (str): The balance to get campaigns from
278
+
279
+ Keyword Args:
280
+ limit_to_id ([str]): The ids that you would like to limit your result set to. [optional]
281
+ page_index (int): The 0 indexed page index you would like to receive given the page size. [optional]
282
+ page_size (int): The maximum number of items you would like to receive in this request. [optional]
283
+ _return_http_data_only (bool): response data without head status
284
+ code and headers. Default is True.
285
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
286
+ will be returned without reading/decoding response data.
287
+ Default is True.
288
+ _request_timeout (int/float/tuple): timeout setting for this request. If
289
+ one number provided, it will be total request timeout. It can also
290
+ be a pair (tuple) of (connection, read) timeouts.
291
+ Default is None.
292
+ _check_input_type (bool): specifies if type checking
293
+ should be done one the data sent to the server.
294
+ Default is True.
295
+ _check_return_type (bool): specifies if type checking
296
+ should be done one the data received from the server.
297
+ Default is True.
298
+ _spec_property_naming (bool): True if the variable names in the input data
299
+ are serialized names, as specified in the OpenAPI document.
300
+ False if the variable names in the input data
301
+ are pythonic names, e.g. snake case (default)
302
+ _content_type (str/None): force body content-type.
303
+ Default is None and content-type will be predicted by allowed
304
+ content-types and body.
305
+ _host_index (int/None): specifies the index of the server
306
+ that we want to use.
307
+ Default is read from the configuration.
308
+ _request_auths (list): set to override the auth_settings for an a single
309
+ request; this effectively ignores the authentication
310
+ in the spec for a single request.
311
+ Default is None
312
+ async_req (bool): execute request asynchronously
313
+
314
+ Returns:
315
+ BalanceCampaign202110PagedListResponse
316
+ If the method is called asynchronously, returns the request
317
+ thread.
318
+ """
319
+ kwargs['async_req'] = kwargs.get(
320
+ 'async_req', False
321
+ )
322
+ kwargs['_return_http_data_only'] = kwargs.get(
323
+ '_return_http_data_only', True
324
+ )
325
+ kwargs['_preload_content'] = kwargs.get(
326
+ '_preload_content', True
327
+ )
328
+ kwargs['_request_timeout'] = kwargs.get(
329
+ '_request_timeout', None
330
+ )
331
+ kwargs['_check_input_type'] = kwargs.get(
332
+ '_check_input_type', True
333
+ )
334
+ kwargs['_check_return_type'] = kwargs.get(
335
+ '_check_return_type', True
336
+ )
337
+ kwargs['_spec_property_naming'] = kwargs.get(
338
+ '_spec_property_naming', False
339
+ )
340
+ kwargs['_content_type'] = kwargs.get(
341
+ '_content_type')
342
+ kwargs['_host_index'] = kwargs.get('_host_index')
343
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
344
+ kwargs['balance_id'] = \
345
+ balance_id
346
+ return self.get_api202110_external_balance_campaigns_by_balance_id_endpoint.call_with_http_info(**kwargs)
347
+