lifetime-campaign
Over the last two years, for each Soundfreaq product I have a manually maintained a master ads report (.xlsx) to track the performance metrics. Within the master workbook, I have several worksheets:
- Campaigns
- Bid adjustments
- Targeting
- Search terms
- Negative keywords
The "Campaigns" worksheet for Sound Rise II Ads is maintained (download lifetime data at each time stamp, copy and paste aggregate date at the bottom, then do the delta between two time stamps to obtain the internal deltas) all manually. Now now I'm migrating from manual report to Python automation (using python-amazon-ad-api). In order for me to achieve a similar report structure, point me to the correct end points that I should implement in my Python scripts for my ads campaigns management. If I want to obtain the lifetime data of a campaign, which end points I should consider?
Is it possible to request lifetime performance metrics from amazon ads api?
No, it is not possible to request "lifetime" performance metrics in a single request via the Amazon Ads API. Unlike the Amazon Ads console, which offers a "Lifetime" date range, the API is designed for granular, time-bound data retrieval with strict retention limits.
If that is the case, I want to build a workflow for automation tools to download the campaign report inside a browser. For instance, use Python + Selenium + Panda (or any similar tools) to perform the following automated tasks:
- login to sellcentral.amazon.com with my advertising account username and password
- go to campaign manager page through link https://advertising.amazon.com/campaign-manager?ref_=xx_cmpmgr_favb_xx&merchantId=A1ZU3V2ZXZ5QHR&locale=en_US&ref=RedirectedFromSellerCentralByRoutingService&entityId=ENTITYLLOC1KH6H4PA
- find and click "Campaign" on sidebar
- set Filter to "Active status: Enabled"
- type "Sound Rise II" in search field (there are other two products, "Charge Rise II" and "sfq-18")
- set the report duration to "Lifetime"
- click "Export" button and then click "Download" in drop down menu for a .csv report to be downloaded and saved locally (in
~/Downloadsfolder) - copy data from the .csv report
- find and open the most recent master .xlsx report, find "Campaigns" worksheet, append the copied data to the very bottom
- do the
totalin the row right beneath the pasted data - do the interval delta between today's
totaland the lasttotal
To make this automated workflow work, we need to perform data cleaning and format resetting as the prep for the "Campaigns" worksheet.