Skip to content

Commit

Permalink
Merge pull request #211 from koradiyakaushal/main
Browse files Browse the repository at this point in the history
Feat: Add Ads-Export Type
  • Loading branch information
denisneuf authored Oct 19, 2024
2 parents c3a21f3 + 57ff77d commit d78bf86
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ad_api/api/exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
class Exports(Client):
"""Amazon Ads API Exports Version 3
"""
@sp_endpoint('/ads/export', method='POST')
def ads_export(self, version: int = 1, **kwargs) -> ApiResponse:
r"""
application/vnd.adsexport.v1+json
"""
content_type = 'application/vnd.adsexport.v'+ str(version) +'+json'
accept = 'application/vnd.adsexport.v'+ str(version) +'+json'
headers = {'Content-Type': content_type, 'Accept': accept}
return self._request(kwargs.pop('path'), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs, headers=headers)

@sp_endpoint('/campaigns/export', method='POST')
def campaigns_export(self, version: int = 1, **kwargs) -> ApiResponse:
r"""
Expand Down

0 comments on commit d78bf86

Please sign in to comment.