Created
November 27, 2017 20:06
-
-
Save barce/3cc5e4f84a6f5cab770ce7463207cee4 to your computer and use it in GitHub Desktop.
example of using Amazon AD API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from amazonadapi import AmazonClient | |
import os | |
client = AmazonClient() | |
client.refresh_token = os.environ['AMZN_REFRESH_TOKEN'] | |
client.auto_refresh_token() | |
client.set_region() | |
client.profile_id = '3586026682031981' | |
orders = client.get_orders(dsp_advertiser_id) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment