criteo-api-marketingsolutions-sdk 2024.10.0.241029__py3-none-any.whl → 2024.10.0.250205__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-marketingsolutions-sdk might be problematic. Click here for more details.
- {criteo_api_marketingsolutions_sdk-2024.10.0.241029.dist-info → criteo_api_marketingsolutions_sdk-2024.10.0.250205.dist-info}/METADATA +14 -5
- {criteo_api_marketingsolutions_sdk-2024.10.0.241029.dist-info → criteo_api_marketingsolutions_sdk-2024.10.0.250205.dist-info}/RECORD +44 -44
- {criteo_api_marketingsolutions_sdk-2024.10.0.241029.dist-info → criteo_api_marketingsolutions_sdk-2024.10.0.250205.dist-info}/WHEEL +1 -1
- criteo_api_marketingsolutions_v2024_10/__init__.py +1 -1
- criteo_api_marketingsolutions_v2024_10/api/creative_api.py +107 -101
- criteo_api_marketingsolutions_v2024_10/api_client.py +1 -1
- criteo_api_marketingsolutions_v2024_10/configuration.py +1 -1
- criteo_api_marketingsolutions_v2024_10/model/ad.py +4 -0
- criteo_api_marketingsolutions_v2024_10/model/ad_set_frequency_capping_v24_q1.py +1 -1
- criteo_api_marketingsolutions_v2024_10/model/adaptive_attributes.py +0 -10
- criteo_api_marketingsolutions_v2024_10/model/adaptive_write_attributes.py +0 -4
- criteo_api_marketingsolutions_v2024_10/model/coupon.py +4 -2
- criteo_api_marketingsolutions_v2024_10/model/coupon_supported_sizes.py +0 -4
- criteo_api_marketingsolutions_v2024_10/model/create_coupon.py +0 -2
- criteo_api_marketingsolutions_v2024_10/model/create_image_slide.py +0 -2
- criteo_api_marketingsolutions_v2024_10/model/creative.py +4 -0
- criteo_api_marketingsolutions_v2024_10/model/dynamic_attributes.py +0 -4
- criteo_api_marketingsolutions_v2024_10/model/dynamic_write_attributes.py +6 -6
- criteo_api_marketingsolutions_v2024_10/model/html_tag_attributes.py +0 -2
- criteo_api_marketingsolutions_v2024_10/model/html_tag_write_attributes.py +0 -2
- criteo_api_marketingsolutions_v2024_10/model/image_attributes.py +0 -2
- criteo_api_marketingsolutions_v2024_10/model/image_set.py +0 -2
- criteo_api_marketingsolutions_v2024_10/model/image_slide.py +0 -2
- criteo_api_marketingsolutions_v2024_10/model/{creative_response.py → resource_collection_outcome_of_ad.py} +8 -12
- criteo_api_marketingsolutions_v2024_10/model/{ad_list_response.py → resource_collection_outcome_of_coupon.py} +8 -14
- criteo_api_marketingsolutions_v2024_10/model/resource_collection_outcome_of_creative.py +281 -0
- criteo_api_marketingsolutions_v2024_10/model/{ad_write_request.py → resource_input_of_ad_write.py} +8 -8
- criteo_api_marketingsolutions_v2024_10/model/{create_coupon_request.py → resource_input_of_create_coupon.py} +8 -8
- criteo_api_marketingsolutions_v2024_10/model/{creative_write_request.py → resource_input_of_creative_write.py} +8 -8
- criteo_api_marketingsolutions_v2024_10/model/{update_coupon_request.py → resource_input_of_update_coupon.py} +8 -8
- criteo_api_marketingsolutions_v2024_10/model/{ad_resource.py → resource_of_ad.py} +5 -5
- criteo_api_marketingsolutions_v2024_10/model/{ad_write_resource.py → resource_of_ad_write.py} +5 -5
- criteo_api_marketingsolutions_v2024_10/model/{coupon_resource.py → resource_of_coupon.py} +5 -5
- criteo_api_marketingsolutions_v2024_10/model/{coupon_supported_sizes_resource.py → resource_of_coupon_supported_sizes.py} +5 -5
- criteo_api_marketingsolutions_v2024_10/model/{create_coupon_resource.py → resource_of_create_coupon.py} +5 -5
- criteo_api_marketingsolutions_v2024_10/model/{creative_resource.py → resource_of_creative.py} +5 -5
- criteo_api_marketingsolutions_v2024_10/model/{creative_write_resource.py → resource_of_creative_write.py} +5 -5
- criteo_api_marketingsolutions_v2024_10/model/{update_coupon_resource.py → resource_of_update_coupon.py} +5 -5
- criteo_api_marketingsolutions_v2024_10/model/{ad_response.py → resource_outcome_of_ad.py} +8 -12
- criteo_api_marketingsolutions_v2024_10/model/{coupon_response.py → resource_outcome_of_coupon.py} +8 -12
- criteo_api_marketingsolutions_v2024_10/model/{coupon_list_response.py → resource_outcome_of_coupon_supported_sizes.py} +8 -14
- criteo_api_marketingsolutions_v2024_10/model/resource_outcome_of_creative.py +281 -0
- criteo_api_marketingsolutions_v2024_10/models/__init__.py +19 -19
- criteo_api_marketingsolutions_v2024_10/model/coupon_supported_sizes_response.py +0 -285
- criteo_api_marketingsolutions_v2024_10/model/creative_list_response.py +0 -287
- {criteo_api_marketingsolutions_sdk-2024.10.0.241029.dist-info → criteo_api_marketingsolutions_sdk-2024.10.0.250205.dist-info}/top_level.txt +0 -0
|
@@ -21,17 +21,17 @@ from criteo_api_marketingsolutions_v2024_10.model_utils import ( # noqa: F401
|
|
|
21
21
|
none_type,
|
|
22
22
|
validate_and_convert_types
|
|
23
23
|
)
|
|
24
|
-
from criteo_api_marketingsolutions_v2024_10.model.
|
|
25
|
-
from criteo_api_marketingsolutions_v2024_10.model.
|
|
26
|
-
from criteo_api_marketingsolutions_v2024_10.model.
|
|
27
|
-
from criteo_api_marketingsolutions_v2024_10.model.
|
|
28
|
-
from criteo_api_marketingsolutions_v2024_10.model.
|
|
29
|
-
from criteo_api_marketingsolutions_v2024_10.model.
|
|
30
|
-
from criteo_api_marketingsolutions_v2024_10.model.
|
|
31
|
-
from criteo_api_marketingsolutions_v2024_10.model.
|
|
32
|
-
from criteo_api_marketingsolutions_v2024_10.model.
|
|
33
|
-
from criteo_api_marketingsolutions_v2024_10.model.
|
|
34
|
-
from criteo_api_marketingsolutions_v2024_10.model.
|
|
24
|
+
from criteo_api_marketingsolutions_v2024_10.model.resource_collection_outcome_of_ad import ResourceCollectionOutcomeOfAd
|
|
25
|
+
from criteo_api_marketingsolutions_v2024_10.model.resource_collection_outcome_of_coupon import ResourceCollectionOutcomeOfCoupon
|
|
26
|
+
from criteo_api_marketingsolutions_v2024_10.model.resource_collection_outcome_of_creative import ResourceCollectionOutcomeOfCreative
|
|
27
|
+
from criteo_api_marketingsolutions_v2024_10.model.resource_input_of_ad_write import ResourceInputOfAdWrite
|
|
28
|
+
from criteo_api_marketingsolutions_v2024_10.model.resource_input_of_create_coupon import ResourceInputOfCreateCoupon
|
|
29
|
+
from criteo_api_marketingsolutions_v2024_10.model.resource_input_of_creative_write import ResourceInputOfCreativeWrite
|
|
30
|
+
from criteo_api_marketingsolutions_v2024_10.model.resource_input_of_update_coupon import ResourceInputOfUpdateCoupon
|
|
31
|
+
from criteo_api_marketingsolutions_v2024_10.model.resource_outcome_of_ad import ResourceOutcomeOfAd
|
|
32
|
+
from criteo_api_marketingsolutions_v2024_10.model.resource_outcome_of_coupon import ResourceOutcomeOfCoupon
|
|
33
|
+
from criteo_api_marketingsolutions_v2024_10.model.resource_outcome_of_coupon_supported_sizes import ResourceOutcomeOfCouponSupportedSizes
|
|
34
|
+
from criteo_api_marketingsolutions_v2024_10.model.resource_outcome_of_creative import ResourceOutcomeOfCreative
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
class CreativeApi(object):
|
|
@@ -47,7 +47,7 @@ class CreativeApi(object):
|
|
|
47
47
|
self.api_client = api_client
|
|
48
48
|
self.create_advertiser_ad_endpoint = _Endpoint(
|
|
49
49
|
settings={
|
|
50
|
-
'response_type': (
|
|
50
|
+
'response_type': (ResourceOutcomeOfAd,),
|
|
51
51
|
'auth': [
|
|
52
52
|
'oauth',
|
|
53
53
|
'oauth'
|
|
@@ -60,11 +60,11 @@ class CreativeApi(object):
|
|
|
60
60
|
params_map={
|
|
61
61
|
'all': [
|
|
62
62
|
'advertiser_id',
|
|
63
|
-
'
|
|
63
|
+
'resource_input_of_ad_write',
|
|
64
64
|
],
|
|
65
65
|
'required': [
|
|
66
66
|
'advertiser_id',
|
|
67
|
-
'
|
|
67
|
+
'resource_input_of_ad_write',
|
|
68
68
|
],
|
|
69
69
|
'nullable': [
|
|
70
70
|
],
|
|
@@ -81,15 +81,15 @@ class CreativeApi(object):
|
|
|
81
81
|
'openapi_types': {
|
|
82
82
|
'advertiser_id':
|
|
83
83
|
(str,),
|
|
84
|
-
'
|
|
85
|
-
(
|
|
84
|
+
'resource_input_of_ad_write':
|
|
85
|
+
(ResourceInputOfAdWrite,),
|
|
86
86
|
},
|
|
87
87
|
'attribute_map': {
|
|
88
88
|
'advertiser_id': 'advertiser-id',
|
|
89
89
|
},
|
|
90
90
|
'location_map': {
|
|
91
91
|
'advertiser_id': 'path',
|
|
92
|
-
'
|
|
92
|
+
'resource_input_of_ad_write': 'body',
|
|
93
93
|
},
|
|
94
94
|
'collection_format_map': {
|
|
95
95
|
}
|
|
@@ -111,7 +111,7 @@ class CreativeApi(object):
|
|
|
111
111
|
)
|
|
112
112
|
self.create_advertiser_coupon_endpoint = _Endpoint(
|
|
113
113
|
settings={
|
|
114
|
-
'response_type': (
|
|
114
|
+
'response_type': (ResourceOutcomeOfCoupon,),
|
|
115
115
|
'auth': [
|
|
116
116
|
'oauth',
|
|
117
117
|
'oauth'
|
|
@@ -124,11 +124,11 @@ class CreativeApi(object):
|
|
|
124
124
|
params_map={
|
|
125
125
|
'all': [
|
|
126
126
|
'advertiser_id',
|
|
127
|
-
'
|
|
127
|
+
'resource_input_of_create_coupon',
|
|
128
128
|
],
|
|
129
129
|
'required': [
|
|
130
130
|
'advertiser_id',
|
|
131
|
-
'
|
|
131
|
+
'resource_input_of_create_coupon',
|
|
132
132
|
],
|
|
133
133
|
'nullable': [
|
|
134
134
|
],
|
|
@@ -145,15 +145,15 @@ class CreativeApi(object):
|
|
|
145
145
|
'openapi_types': {
|
|
146
146
|
'advertiser_id':
|
|
147
147
|
(str,),
|
|
148
|
-
'
|
|
149
|
-
(
|
|
148
|
+
'resource_input_of_create_coupon':
|
|
149
|
+
(ResourceInputOfCreateCoupon,),
|
|
150
150
|
},
|
|
151
151
|
'attribute_map': {
|
|
152
152
|
'advertiser_id': 'advertiser-id',
|
|
153
153
|
},
|
|
154
154
|
'location_map': {
|
|
155
155
|
'advertiser_id': 'path',
|
|
156
|
-
'
|
|
156
|
+
'resource_input_of_create_coupon': 'body',
|
|
157
157
|
},
|
|
158
158
|
'collection_format_map': {
|
|
159
159
|
}
|
|
@@ -175,7 +175,7 @@ class CreativeApi(object):
|
|
|
175
175
|
)
|
|
176
176
|
self.create_advertiser_creative_endpoint = _Endpoint(
|
|
177
177
|
settings={
|
|
178
|
-
'response_type': (
|
|
178
|
+
'response_type': (ResourceOutcomeOfCreative,),
|
|
179
179
|
'auth': [
|
|
180
180
|
'oauth',
|
|
181
181
|
'oauth'
|
|
@@ -188,11 +188,11 @@ class CreativeApi(object):
|
|
|
188
188
|
params_map={
|
|
189
189
|
'all': [
|
|
190
190
|
'advertiser_id',
|
|
191
|
-
'
|
|
191
|
+
'resource_input_of_creative_write',
|
|
192
192
|
],
|
|
193
193
|
'required': [
|
|
194
194
|
'advertiser_id',
|
|
195
|
-
'
|
|
195
|
+
'resource_input_of_creative_write',
|
|
196
196
|
],
|
|
197
197
|
'nullable': [
|
|
198
198
|
],
|
|
@@ -209,15 +209,15 @@ class CreativeApi(object):
|
|
|
209
209
|
'openapi_types': {
|
|
210
210
|
'advertiser_id':
|
|
211
211
|
(str,),
|
|
212
|
-
'
|
|
213
|
-
(
|
|
212
|
+
'resource_input_of_creative_write':
|
|
213
|
+
(ResourceInputOfCreativeWrite,),
|
|
214
214
|
},
|
|
215
215
|
'attribute_map': {
|
|
216
216
|
'advertiser_id': 'advertiser-id',
|
|
217
217
|
},
|
|
218
218
|
'location_map': {
|
|
219
219
|
'advertiser_id': 'path',
|
|
220
|
-
'
|
|
220
|
+
'resource_input_of_creative_write': 'body',
|
|
221
221
|
},
|
|
222
222
|
'collection_format_map': {
|
|
223
223
|
}
|
|
@@ -395,7 +395,7 @@ class CreativeApi(object):
|
|
|
395
395
|
)
|
|
396
396
|
self.edit_advertiser_coupon_endpoint = _Endpoint(
|
|
397
397
|
settings={
|
|
398
|
-
'response_type': (
|
|
398
|
+
'response_type': (ResourceOutcomeOfCoupon,),
|
|
399
399
|
'auth': [
|
|
400
400
|
'oauth',
|
|
401
401
|
'oauth'
|
|
@@ -409,12 +409,12 @@ class CreativeApi(object):
|
|
|
409
409
|
'all': [
|
|
410
410
|
'advertiser_id',
|
|
411
411
|
'id',
|
|
412
|
-
'
|
|
412
|
+
'resource_input_of_update_coupon',
|
|
413
413
|
],
|
|
414
414
|
'required': [
|
|
415
415
|
'advertiser_id',
|
|
416
416
|
'id',
|
|
417
|
-
'
|
|
417
|
+
'resource_input_of_update_coupon',
|
|
418
418
|
],
|
|
419
419
|
'nullable': [
|
|
420
420
|
],
|
|
@@ -433,8 +433,8 @@ class CreativeApi(object):
|
|
|
433
433
|
(str,),
|
|
434
434
|
'id':
|
|
435
435
|
(str,),
|
|
436
|
-
'
|
|
437
|
-
(
|
|
436
|
+
'resource_input_of_update_coupon':
|
|
437
|
+
(ResourceInputOfUpdateCoupon,),
|
|
438
438
|
},
|
|
439
439
|
'attribute_map': {
|
|
440
440
|
'advertiser_id': 'advertiser-id',
|
|
@@ -443,7 +443,7 @@ class CreativeApi(object):
|
|
|
443
443
|
'location_map': {
|
|
444
444
|
'advertiser_id': 'path',
|
|
445
445
|
'id': 'path',
|
|
446
|
-
'
|
|
446
|
+
'resource_input_of_update_coupon': 'body',
|
|
447
447
|
},
|
|
448
448
|
'collection_format_map': {
|
|
449
449
|
}
|
|
@@ -465,7 +465,7 @@ class CreativeApi(object):
|
|
|
465
465
|
)
|
|
466
466
|
self.edit_creative_endpoint = _Endpoint(
|
|
467
467
|
settings={
|
|
468
|
-
'response_type': (
|
|
468
|
+
'response_type': (ResourceOutcomeOfCreative,),
|
|
469
469
|
'auth': [
|
|
470
470
|
'oauth',
|
|
471
471
|
'oauth'
|
|
@@ -478,11 +478,11 @@ class CreativeApi(object):
|
|
|
478
478
|
params_map={
|
|
479
479
|
'all': [
|
|
480
480
|
'id',
|
|
481
|
-
'
|
|
481
|
+
'resource_input_of_creative_write',
|
|
482
482
|
],
|
|
483
483
|
'required': [
|
|
484
484
|
'id',
|
|
485
|
-
'
|
|
485
|
+
'resource_input_of_creative_write',
|
|
486
486
|
],
|
|
487
487
|
'nullable': [
|
|
488
488
|
],
|
|
@@ -499,15 +499,15 @@ class CreativeApi(object):
|
|
|
499
499
|
'openapi_types': {
|
|
500
500
|
'id':
|
|
501
501
|
(str,),
|
|
502
|
-
'
|
|
503
|
-
(
|
|
502
|
+
'resource_input_of_creative_write':
|
|
503
|
+
(ResourceInputOfCreativeWrite,),
|
|
504
504
|
},
|
|
505
505
|
'attribute_map': {
|
|
506
506
|
'id': 'id',
|
|
507
507
|
},
|
|
508
508
|
'location_map': {
|
|
509
509
|
'id': 'path',
|
|
510
|
-
'
|
|
510
|
+
'resource_input_of_creative_write': 'body',
|
|
511
511
|
},
|
|
512
512
|
'collection_format_map': {
|
|
513
513
|
}
|
|
@@ -593,7 +593,7 @@ class CreativeApi(object):
|
|
|
593
593
|
)
|
|
594
594
|
self.get_ad_endpoint = _Endpoint(
|
|
595
595
|
settings={
|
|
596
|
-
'response_type': (
|
|
596
|
+
'response_type': (ResourceOutcomeOfAd,),
|
|
597
597
|
'auth': [
|
|
598
598
|
'oauth',
|
|
599
599
|
'oauth'
|
|
@@ -647,7 +647,7 @@ class CreativeApi(object):
|
|
|
647
647
|
)
|
|
648
648
|
self.get_advertiser_ads_endpoint = _Endpoint(
|
|
649
649
|
settings={
|
|
650
|
-
'response_type': (
|
|
650
|
+
'response_type': (ResourceCollectionOutcomeOfAd,),
|
|
651
651
|
'auth': [
|
|
652
652
|
'oauth',
|
|
653
653
|
'oauth'
|
|
@@ -667,6 +667,8 @@ class CreativeApi(object):
|
|
|
667
667
|
'advertiser_id',
|
|
668
668
|
],
|
|
669
669
|
'nullable': [
|
|
670
|
+
'limit',
|
|
671
|
+
'offset',
|
|
670
672
|
],
|
|
671
673
|
'enum': [
|
|
672
674
|
],
|
|
@@ -682,9 +684,9 @@ class CreativeApi(object):
|
|
|
682
684
|
'advertiser_id':
|
|
683
685
|
(str,),
|
|
684
686
|
'limit':
|
|
685
|
-
(int,),
|
|
687
|
+
(int, none_type,),
|
|
686
688
|
'offset':
|
|
687
|
-
(int,),
|
|
689
|
+
(int, none_type,),
|
|
688
690
|
},
|
|
689
691
|
'attribute_map': {
|
|
690
692
|
'advertiser_id': 'advertiser-id',
|
|
@@ -711,7 +713,7 @@ class CreativeApi(object):
|
|
|
711
713
|
)
|
|
712
714
|
self.get_advertiser_coupon_endpoint = _Endpoint(
|
|
713
715
|
settings={
|
|
714
|
-
'response_type': (
|
|
716
|
+
'response_type': (ResourceOutcomeOfCoupon,),
|
|
715
717
|
'auth': [
|
|
716
718
|
'oauth',
|
|
717
719
|
'oauth'
|
|
@@ -841,7 +843,7 @@ class CreativeApi(object):
|
|
|
841
843
|
)
|
|
842
844
|
self.get_advertiser_coupon_supported_sizes_endpoint = _Endpoint(
|
|
843
845
|
settings={
|
|
844
|
-
'response_type': (
|
|
846
|
+
'response_type': (ResourceOutcomeOfCouponSupportedSizes,),
|
|
845
847
|
'auth': [
|
|
846
848
|
'oauth',
|
|
847
849
|
'oauth'
|
|
@@ -900,7 +902,7 @@ class CreativeApi(object):
|
|
|
900
902
|
)
|
|
901
903
|
self.get_advertiser_coupons_endpoint = _Endpoint(
|
|
902
904
|
settings={
|
|
903
|
-
'response_type': (
|
|
905
|
+
'response_type': (ResourceCollectionOutcomeOfCoupon,),
|
|
904
906
|
'auth': [
|
|
905
907
|
'oauth',
|
|
906
908
|
'oauth'
|
|
@@ -920,6 +922,8 @@ class CreativeApi(object):
|
|
|
920
922
|
'advertiser_id',
|
|
921
923
|
],
|
|
922
924
|
'nullable': [
|
|
925
|
+
'limit',
|
|
926
|
+
'offset',
|
|
923
927
|
],
|
|
924
928
|
'enum': [
|
|
925
929
|
],
|
|
@@ -935,9 +939,9 @@ class CreativeApi(object):
|
|
|
935
939
|
'advertiser_id':
|
|
936
940
|
(str,),
|
|
937
941
|
'limit':
|
|
938
|
-
(int,),
|
|
942
|
+
(int, none_type,),
|
|
939
943
|
'offset':
|
|
940
|
-
(int,),
|
|
944
|
+
(int, none_type,),
|
|
941
945
|
},
|
|
942
946
|
'attribute_map': {
|
|
943
947
|
'advertiser_id': 'advertiser-id',
|
|
@@ -964,7 +968,7 @@ class CreativeApi(object):
|
|
|
964
968
|
)
|
|
965
969
|
self.get_advertiser_creatives_endpoint = _Endpoint(
|
|
966
970
|
settings={
|
|
967
|
-
'response_type': (
|
|
971
|
+
'response_type': (ResourceCollectionOutcomeOfCreative,),
|
|
968
972
|
'auth': [
|
|
969
973
|
'oauth',
|
|
970
974
|
'oauth'
|
|
@@ -984,6 +988,8 @@ class CreativeApi(object):
|
|
|
984
988
|
'advertiser_id',
|
|
985
989
|
],
|
|
986
990
|
'nullable': [
|
|
991
|
+
'limit',
|
|
992
|
+
'offset',
|
|
987
993
|
],
|
|
988
994
|
'enum': [
|
|
989
995
|
],
|
|
@@ -999,9 +1005,9 @@ class CreativeApi(object):
|
|
|
999
1005
|
'advertiser_id':
|
|
1000
1006
|
(str,),
|
|
1001
1007
|
'limit':
|
|
1002
|
-
(int,),
|
|
1008
|
+
(int, none_type,),
|
|
1003
1009
|
'offset':
|
|
1004
|
-
(int,),
|
|
1010
|
+
(int, none_type,),
|
|
1005
1011
|
},
|
|
1006
1012
|
'attribute_map': {
|
|
1007
1013
|
'advertiser_id': 'advertiser-id',
|
|
@@ -1028,7 +1034,7 @@ class CreativeApi(object):
|
|
|
1028
1034
|
)
|
|
1029
1035
|
self.get_creative_endpoint = _Endpoint(
|
|
1030
1036
|
settings={
|
|
1031
|
-
'response_type': (
|
|
1037
|
+
'response_type': (ResourceOutcomeOfCreative,),
|
|
1032
1038
|
'auth': [
|
|
1033
1039
|
'oauth',
|
|
1034
1040
|
'oauth'
|
|
@@ -1084,7 +1090,7 @@ class CreativeApi(object):
|
|
|
1084
1090
|
def create_advertiser_ad(
|
|
1085
1091
|
self,
|
|
1086
1092
|
advertiser_id,
|
|
1087
|
-
|
|
1093
|
+
resource_input_of_ad_write,
|
|
1088
1094
|
**kwargs
|
|
1089
1095
|
):
|
|
1090
1096
|
"""create_advertiser_ad # noqa: E501
|
|
@@ -1093,12 +1099,12 @@ class CreativeApi(object):
|
|
|
1093
1099
|
This method makes a synchronous HTTP request by default. To make an
|
|
1094
1100
|
asynchronous HTTP request, please pass async_req=True
|
|
1095
1101
|
|
|
1096
|
-
>>> thread = api.create_advertiser_ad(advertiser_id,
|
|
1102
|
+
>>> thread = api.create_advertiser_ad(advertiser_id, resource_input_of_ad_write, async_req=True)
|
|
1097
1103
|
>>> result = thread.get()
|
|
1098
1104
|
|
|
1099
1105
|
Args:
|
|
1100
1106
|
advertiser_id (str): The advertiser identifier.
|
|
1101
|
-
|
|
1107
|
+
resource_input_of_ad_write (ResourceInputOfAdWrite):
|
|
1102
1108
|
|
|
1103
1109
|
Keyword Args:
|
|
1104
1110
|
_return_http_data_only (bool): response data without head status
|
|
@@ -1133,7 +1139,7 @@ class CreativeApi(object):
|
|
|
1133
1139
|
async_req (bool): execute request asynchronously
|
|
1134
1140
|
|
|
1135
1141
|
Returns:
|
|
1136
|
-
|
|
1142
|
+
ResourceOutcomeOfAd
|
|
1137
1143
|
If the method is called asynchronously, returns the request
|
|
1138
1144
|
thread.
|
|
1139
1145
|
"""
|
|
@@ -1164,14 +1170,14 @@ class CreativeApi(object):
|
|
|
1164
1170
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1165
1171
|
kwargs['advertiser_id'] = \
|
|
1166
1172
|
advertiser_id
|
|
1167
|
-
kwargs['
|
|
1168
|
-
|
|
1173
|
+
kwargs['resource_input_of_ad_write'] = \
|
|
1174
|
+
resource_input_of_ad_write
|
|
1169
1175
|
return self.create_advertiser_ad_endpoint.call_with_http_info(**kwargs)
|
|
1170
1176
|
|
|
1171
1177
|
def create_advertiser_coupon(
|
|
1172
1178
|
self,
|
|
1173
1179
|
advertiser_id,
|
|
1174
|
-
|
|
1180
|
+
resource_input_of_create_coupon,
|
|
1175
1181
|
**kwargs
|
|
1176
1182
|
):
|
|
1177
1183
|
"""create_advertiser_coupon # noqa: E501
|
|
@@ -1180,12 +1186,12 @@ class CreativeApi(object):
|
|
|
1180
1186
|
This method makes a synchronous HTTP request by default. To make an
|
|
1181
1187
|
asynchronous HTTP request, please pass async_req=True
|
|
1182
1188
|
|
|
1183
|
-
>>> thread = api.create_advertiser_coupon(advertiser_id,
|
|
1189
|
+
>>> thread = api.create_advertiser_coupon(advertiser_id, resource_input_of_create_coupon, async_req=True)
|
|
1184
1190
|
>>> result = thread.get()
|
|
1185
1191
|
|
|
1186
1192
|
Args:
|
|
1187
1193
|
advertiser_id (str): The advertiser identifier.
|
|
1188
|
-
|
|
1194
|
+
resource_input_of_create_coupon (ResourceInputOfCreateCoupon):
|
|
1189
1195
|
|
|
1190
1196
|
Keyword Args:
|
|
1191
1197
|
_return_http_data_only (bool): response data without head status
|
|
@@ -1220,7 +1226,7 @@ class CreativeApi(object):
|
|
|
1220
1226
|
async_req (bool): execute request asynchronously
|
|
1221
1227
|
|
|
1222
1228
|
Returns:
|
|
1223
|
-
|
|
1229
|
+
ResourceOutcomeOfCoupon
|
|
1224
1230
|
If the method is called asynchronously, returns the request
|
|
1225
1231
|
thread.
|
|
1226
1232
|
"""
|
|
@@ -1251,14 +1257,14 @@ class CreativeApi(object):
|
|
|
1251
1257
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1252
1258
|
kwargs['advertiser_id'] = \
|
|
1253
1259
|
advertiser_id
|
|
1254
|
-
kwargs['
|
|
1255
|
-
|
|
1260
|
+
kwargs['resource_input_of_create_coupon'] = \
|
|
1261
|
+
resource_input_of_create_coupon
|
|
1256
1262
|
return self.create_advertiser_coupon_endpoint.call_with_http_info(**kwargs)
|
|
1257
1263
|
|
|
1258
1264
|
def create_advertiser_creative(
|
|
1259
1265
|
self,
|
|
1260
1266
|
advertiser_id,
|
|
1261
|
-
|
|
1267
|
+
resource_input_of_creative_write,
|
|
1262
1268
|
**kwargs
|
|
1263
1269
|
):
|
|
1264
1270
|
"""create_advertiser_creative # noqa: E501
|
|
@@ -1267,12 +1273,12 @@ class CreativeApi(object):
|
|
|
1267
1273
|
This method makes a synchronous HTTP request by default. To make an
|
|
1268
1274
|
asynchronous HTTP request, please pass async_req=True
|
|
1269
1275
|
|
|
1270
|
-
>>> thread = api.create_advertiser_creative(advertiser_id,
|
|
1276
|
+
>>> thread = api.create_advertiser_creative(advertiser_id, resource_input_of_creative_write, async_req=True)
|
|
1271
1277
|
>>> result = thread.get()
|
|
1272
1278
|
|
|
1273
1279
|
Args:
|
|
1274
1280
|
advertiser_id (str): The advertiser identifier.
|
|
1275
|
-
|
|
1281
|
+
resource_input_of_creative_write (ResourceInputOfCreativeWrite):
|
|
1276
1282
|
|
|
1277
1283
|
Keyword Args:
|
|
1278
1284
|
_return_http_data_only (bool): response data without head status
|
|
@@ -1307,7 +1313,7 @@ class CreativeApi(object):
|
|
|
1307
1313
|
async_req (bool): execute request asynchronously
|
|
1308
1314
|
|
|
1309
1315
|
Returns:
|
|
1310
|
-
|
|
1316
|
+
ResourceOutcomeOfCreative
|
|
1311
1317
|
If the method is called asynchronously, returns the request
|
|
1312
1318
|
thread.
|
|
1313
1319
|
"""
|
|
@@ -1338,8 +1344,8 @@ class CreativeApi(object):
|
|
|
1338
1344
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1339
1345
|
kwargs['advertiser_id'] = \
|
|
1340
1346
|
advertiser_id
|
|
1341
|
-
kwargs['
|
|
1342
|
-
|
|
1347
|
+
kwargs['resource_input_of_creative_write'] = \
|
|
1348
|
+
resource_input_of_creative_write
|
|
1343
1349
|
return self.create_advertiser_creative_endpoint.call_with_http_info(**kwargs)
|
|
1344
1350
|
|
|
1345
1351
|
def delete_ad(
|
|
@@ -1599,7 +1605,7 @@ class CreativeApi(object):
|
|
|
1599
1605
|
self,
|
|
1600
1606
|
advertiser_id,
|
|
1601
1607
|
id,
|
|
1602
|
-
|
|
1608
|
+
resource_input_of_update_coupon,
|
|
1603
1609
|
**kwargs
|
|
1604
1610
|
):
|
|
1605
1611
|
"""edit_advertiser_coupon # noqa: E501
|
|
@@ -1608,13 +1614,13 @@ class CreativeApi(object):
|
|
|
1608
1614
|
This method makes a synchronous HTTP request by default. To make an
|
|
1609
1615
|
asynchronous HTTP request, please pass async_req=True
|
|
1610
1616
|
|
|
1611
|
-
>>> thread = api.edit_advertiser_coupon(advertiser_id, id,
|
|
1617
|
+
>>> thread = api.edit_advertiser_coupon(advertiser_id, id, resource_input_of_update_coupon, async_req=True)
|
|
1612
1618
|
>>> result = thread.get()
|
|
1613
1619
|
|
|
1614
1620
|
Args:
|
|
1615
1621
|
advertiser_id (str): The advertiser identifier.
|
|
1616
1622
|
id (str): The Coupon identifier to edit.
|
|
1617
|
-
|
|
1623
|
+
resource_input_of_update_coupon (ResourceInputOfUpdateCoupon):
|
|
1618
1624
|
|
|
1619
1625
|
Keyword Args:
|
|
1620
1626
|
_return_http_data_only (bool): response data without head status
|
|
@@ -1649,7 +1655,7 @@ class CreativeApi(object):
|
|
|
1649
1655
|
async_req (bool): execute request asynchronously
|
|
1650
1656
|
|
|
1651
1657
|
Returns:
|
|
1652
|
-
|
|
1658
|
+
ResourceOutcomeOfCoupon
|
|
1653
1659
|
If the method is called asynchronously, returns the request
|
|
1654
1660
|
thread.
|
|
1655
1661
|
"""
|
|
@@ -1682,14 +1688,14 @@ class CreativeApi(object):
|
|
|
1682
1688
|
advertiser_id
|
|
1683
1689
|
kwargs['id'] = \
|
|
1684
1690
|
id
|
|
1685
|
-
kwargs['
|
|
1686
|
-
|
|
1691
|
+
kwargs['resource_input_of_update_coupon'] = \
|
|
1692
|
+
resource_input_of_update_coupon
|
|
1687
1693
|
return self.edit_advertiser_coupon_endpoint.call_with_http_info(**kwargs)
|
|
1688
1694
|
|
|
1689
1695
|
def edit_creative(
|
|
1690
1696
|
self,
|
|
1691
1697
|
id,
|
|
1692
|
-
|
|
1698
|
+
resource_input_of_creative_write,
|
|
1693
1699
|
**kwargs
|
|
1694
1700
|
):
|
|
1695
1701
|
"""edit_creative # noqa: E501
|
|
@@ -1698,12 +1704,12 @@ class CreativeApi(object):
|
|
|
1698
1704
|
This method makes a synchronous HTTP request by default. To make an
|
|
1699
1705
|
asynchronous HTTP request, please pass async_req=True
|
|
1700
1706
|
|
|
1701
|
-
>>> thread = api.edit_creative(id,
|
|
1707
|
+
>>> thread = api.edit_creative(id, resource_input_of_creative_write, async_req=True)
|
|
1702
1708
|
>>> result = thread.get()
|
|
1703
1709
|
|
|
1704
1710
|
Args:
|
|
1705
1711
|
id (str): The creative identifier to edit.
|
|
1706
|
-
|
|
1712
|
+
resource_input_of_creative_write (ResourceInputOfCreativeWrite):
|
|
1707
1713
|
|
|
1708
1714
|
Keyword Args:
|
|
1709
1715
|
_return_http_data_only (bool): response data without head status
|
|
@@ -1738,7 +1744,7 @@ class CreativeApi(object):
|
|
|
1738
1744
|
async_req (bool): execute request asynchronously
|
|
1739
1745
|
|
|
1740
1746
|
Returns:
|
|
1741
|
-
|
|
1747
|
+
ResourceOutcomeOfCreative
|
|
1742
1748
|
If the method is called asynchronously, returns the request
|
|
1743
1749
|
thread.
|
|
1744
1750
|
"""
|
|
@@ -1769,8 +1775,8 @@ class CreativeApi(object):
|
|
|
1769
1775
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1770
1776
|
kwargs['id'] = \
|
|
1771
1777
|
id
|
|
1772
|
-
kwargs['
|
|
1773
|
-
|
|
1778
|
+
kwargs['resource_input_of_creative_write'] = \
|
|
1779
|
+
resource_input_of_creative_write
|
|
1774
1780
|
return self.edit_creative_endpoint.call_with_http_info(**kwargs)
|
|
1775
1781
|
|
|
1776
1782
|
def generate_creative_preview(
|
|
@@ -1780,7 +1786,7 @@ class CreativeApi(object):
|
|
|
1780
1786
|
):
|
|
1781
1787
|
"""generate_creative_preview # noqa: E501
|
|
1782
1788
|
|
|
1783
|
-
|
|
1789
|
+
Get the preview of a specific Creative # noqa: E501
|
|
1784
1790
|
This method makes a synchronous HTTP request by default. To make an
|
|
1785
1791
|
asynchronous HTTP request, please pass async_req=True
|
|
1786
1792
|
|
|
@@ -1865,7 +1871,7 @@ class CreativeApi(object):
|
|
|
1865
1871
|
):
|
|
1866
1872
|
"""get_ad # noqa: E501
|
|
1867
1873
|
|
|
1868
|
-
Get an Ad
|
|
1874
|
+
Get an Ad with its id # noqa: E501
|
|
1869
1875
|
This method makes a synchronous HTTP request by default. To make an
|
|
1870
1876
|
asynchronous HTTP request, please pass async_req=True
|
|
1871
1877
|
|
|
@@ -1908,7 +1914,7 @@ class CreativeApi(object):
|
|
|
1908
1914
|
async_req (bool): execute request asynchronously
|
|
1909
1915
|
|
|
1910
1916
|
Returns:
|
|
1911
|
-
|
|
1917
|
+
ResourceOutcomeOfAd
|
|
1912
1918
|
If the method is called asynchronously, returns the request
|
|
1913
1919
|
thread.
|
|
1914
1920
|
"""
|
|
@@ -1959,8 +1965,8 @@ class CreativeApi(object):
|
|
|
1959
1965
|
advertiser_id (str): The advertiser identifier.
|
|
1960
1966
|
|
|
1961
1967
|
Keyword Args:
|
|
1962
|
-
limit (int): The number of ads to be returned. The default is 50.. [optional]
|
|
1963
|
-
offset (int): The (zero-based) offset into the collection of ads. The default is 0.. [optional]
|
|
1968
|
+
limit (int, none_type): The number of ads to be returned. The default is 50.. [optional]
|
|
1969
|
+
offset (int, none_type): The (zero-based) offset into the collection of ads. The default is 0.. [optional]
|
|
1964
1970
|
_return_http_data_only (bool): response data without head status
|
|
1965
1971
|
code and headers. Default is True.
|
|
1966
1972
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -1993,7 +1999,7 @@ class CreativeApi(object):
|
|
|
1993
1999
|
async_req (bool): execute request asynchronously
|
|
1994
2000
|
|
|
1995
2001
|
Returns:
|
|
1996
|
-
|
|
2002
|
+
ResourceCollectionOutcomeOfAd
|
|
1997
2003
|
If the method is called asynchronously, returns the request
|
|
1998
2004
|
thread.
|
|
1999
2005
|
"""
|
|
@@ -2034,7 +2040,7 @@ class CreativeApi(object):
|
|
|
2034
2040
|
):
|
|
2035
2041
|
"""get_advertiser_coupon # noqa: E501
|
|
2036
2042
|
|
|
2037
|
-
Get a Coupon
|
|
2043
|
+
Get a Coupon with its id # noqa: E501
|
|
2038
2044
|
This method makes a synchronous HTTP request by default. To make an
|
|
2039
2045
|
asynchronous HTTP request, please pass async_req=True
|
|
2040
2046
|
|
|
@@ -2078,7 +2084,7 @@ class CreativeApi(object):
|
|
|
2078
2084
|
async_req (bool): execute request asynchronously
|
|
2079
2085
|
|
|
2080
2086
|
Returns:
|
|
2081
|
-
|
|
2087
|
+
ResourceOutcomeOfCoupon
|
|
2082
2088
|
If the method is called asynchronously, returns the request
|
|
2083
2089
|
thread.
|
|
2084
2090
|
"""
|
|
@@ -2253,7 +2259,7 @@ class CreativeApi(object):
|
|
|
2253
2259
|
async_req (bool): execute request asynchronously
|
|
2254
2260
|
|
|
2255
2261
|
Returns:
|
|
2256
|
-
|
|
2262
|
+
ResourceOutcomeOfCouponSupportedSizes
|
|
2257
2263
|
If the method is called asynchronously, returns the request
|
|
2258
2264
|
thread.
|
|
2259
2265
|
"""
|
|
@@ -2304,8 +2310,8 @@ class CreativeApi(object):
|
|
|
2304
2310
|
advertiser_id (str): The advertiser identifier.
|
|
2305
2311
|
|
|
2306
2312
|
Keyword Args:
|
|
2307
|
-
limit (int): The number of coupons to be returned. The default is 50.. [optional]
|
|
2308
|
-
offset (int): The (zero-based) offset into the collection of coupons. The default is 0.. [optional]
|
|
2313
|
+
limit (int, none_type): The number of coupons to be returned. The default is 50.. [optional]
|
|
2314
|
+
offset (int, none_type): The (zero-based) offset into the collection of coupons. The default is 0.. [optional]
|
|
2309
2315
|
_return_http_data_only (bool): response data without head status
|
|
2310
2316
|
code and headers. Default is True.
|
|
2311
2317
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -2338,7 +2344,7 @@ class CreativeApi(object):
|
|
|
2338
2344
|
async_req (bool): execute request asynchronously
|
|
2339
2345
|
|
|
2340
2346
|
Returns:
|
|
2341
|
-
|
|
2347
|
+
ResourceCollectionOutcomeOfCoupon
|
|
2342
2348
|
If the method is called asynchronously, returns the request
|
|
2343
2349
|
thread.
|
|
2344
2350
|
"""
|
|
@@ -2389,8 +2395,8 @@ class CreativeApi(object):
|
|
|
2389
2395
|
advertiser_id (str): The advertiser identifier.
|
|
2390
2396
|
|
|
2391
2397
|
Keyword Args:
|
|
2392
|
-
limit (int): The number of creatives to be returned. The default is 50.. [optional]
|
|
2393
|
-
offset (int): The (zero-based) offset into the collection of creatives. The default is 0.. [optional]
|
|
2398
|
+
limit (int, none_type): The number of creatives to be returned. The default is 50.. [optional]
|
|
2399
|
+
offset (int, none_type): The (zero-based) offset into the collection of creatives. The default is 0.. [optional]
|
|
2394
2400
|
_return_http_data_only (bool): response data without head status
|
|
2395
2401
|
code and headers. Default is True.
|
|
2396
2402
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -2423,7 +2429,7 @@ class CreativeApi(object):
|
|
|
2423
2429
|
async_req (bool): execute request asynchronously
|
|
2424
2430
|
|
|
2425
2431
|
Returns:
|
|
2426
|
-
|
|
2432
|
+
ResourceCollectionOutcomeOfCreative
|
|
2427
2433
|
If the method is called asynchronously, returns the request
|
|
2428
2434
|
thread.
|
|
2429
2435
|
"""
|
|
@@ -2463,7 +2469,7 @@ class CreativeApi(object):
|
|
|
2463
2469
|
):
|
|
2464
2470
|
"""get_creative # noqa: E501
|
|
2465
2471
|
|
|
2466
|
-
Get a Creative
|
|
2472
|
+
Get a Creative with its id # noqa: E501
|
|
2467
2473
|
This method makes a synchronous HTTP request by default. To make an
|
|
2468
2474
|
asynchronous HTTP request, please pass async_req=True
|
|
2469
2475
|
|
|
@@ -2506,7 +2512,7 @@ class CreativeApi(object):
|
|
|
2506
2512
|
async_req (bool): execute request asynchronously
|
|
2507
2513
|
|
|
2508
2514
|
Returns:
|
|
2509
|
-
|
|
2515
|
+
ResourceOutcomeOfCreative
|
|
2510
2516
|
If the method is called asynchronously, returns the request
|
|
2511
2517
|
thread.
|
|
2512
2518
|
"""
|