Skip to content

Commit d78bf86

Browse files
authored
Merge pull request #211 from koradiyakaushal/main
Feat: Add Ads-Export Type
2 parents c3a21f3 + 57ff77d commit d78bf86

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ad_api/api/exports.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
class Exports(Client):
55
"""Amazon Ads API Exports Version 3
66
"""
7+
@sp_endpoint('/ads/export', method='POST')
8+
def ads_export(self, version: int = 1, **kwargs) -> ApiResponse:
9+
r"""
10+
application/vnd.adsexport.v1+json
11+
"""
12+
content_type = 'application/vnd.adsexport.v'+ str(version) +'+json'
13+
accept = 'application/vnd.adsexport.v'+ str(version) +'+json'
14+
headers = {'Content-Type': content_type, 'Accept': accept}
15+
return self._request(kwargs.pop('path'), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs, headers=headers)
16+
717
@sp_endpoint('/campaigns/export', method='POST')
818
def campaigns_export(self, version: int = 1, **kwargs) -> ApiResponse:
919
r"""

0 commit comments

Comments
 (0)