Connect Amazon DSP to Python
Bring your Amazon DSP data into Python with Windsor.ai, so your scripts read live programmatic campaign data.
Pick the Amazon DSP fields you need, and Windsor.ai keeps them flowing without a CSV export in between.
Forget CSVs. Stop copy/paste. Connect in minutes. No code required.
Get your Amazon DSP data into Python
Amazon DSP is connected once in Windsor.ai, and these are the use cases the fields support:
Compare orders on return
Total Cost, Sales and ROAS come per Order Name (Amazon DSP calls campaigns orders), so you can see which campaigns earn their spend.
Count new-to-brand customers
New To Brand Purchases, New To Brand Product Sales and New To Brand ROAS show how much of the result came from customers who had not bought from the brand before.
Check line item delivery
Line Item Budget, Line Item Delivery Rate and Total Cost per Line Item Name show which line items are behind on delivery.
Using Windsor.ai to connect data from Amazon DSP to Python
Windsor.ai moves your Amazon DSP fields into Python on a connection you set up once, so the scripts stay on live records rather than a CSV someone exported last week.
Pick the fields you need and Windsor.ai handles the rest.
How to connect Amazon DSP to Python with Windsor.ai
Explore a step-by-step guide to integrate your Amazon DSP data into Python with the Windsor.ai connector.
Connect a data source
In your Windsor.ai dashboard, connect Amazon DSP: sign in with your Amazon Ads account. Select the account(s) you want to pull data from and click Next.
Set Python as a data destination
Scroll down and choose Python from the data destination list. Copy the API Key URL provided in the instructions below.
Integrate the API Key URL into your Python code to stream data
Use Python’s requests or a similar library to retrieve data from Windsor.ai by making an API call with your obtained API Key URL.
FAQs
What Amazon DSP data can I load into Python?
Windsor.ai gives access to 159 Amazon DSP fields. These are the groups; the Amazon DSP field reference lists all of them:
- Orders (campaigns): Order Name, Order Budget, Order Start Time, Order End Time, Impressions, Clicks, Total Cost, Supply Cost, Total Fee, Sales, Purchases, ROAS, Total ROAS.
- New to brand and off Amazon: New To Brand Purchases, New To Brand Product Sales, New To Brand ROAS, Off Amazon Conversions, Off Amazon Product Sales, Off Amazon ROAS.
- Line items: Line Item Name, Line Item Type, Line Item Status, Line Item Budget, Line Item Delivery Rate, Target Demographic, On Target Impressions, eCPM.
- Creatives: Creative Name, Creative Type, Creative Size, Viewability Rate, Video Ad Completion Rate, Click Through Rate.
- Reach and video: Reach, Household Reach, Frequency Average, Video Ad Start, Video Ad Complete, Viewable Impressions.
- Time and account: Date, Advertiser Name, Marketplace.
How does Windsor.ai load Amazon DSP data into Python?
Windsor.ai gives you an API URL for your selected Amazon DSP fields. Call it from Python with requests or a similar library and load the response into pandas or your own code.
Can I combine Amazon DSP data with other sources in my scripts?
Yes. Windsor.ai supports 350+ data sources, so Amazon DSP data can sit next to other connected sources in the same scripts. For example, put Amazon DSP Total Cost and Sales by week next to Amazon Ads Sponsored Products Cost and Sales (14 days) for the same weeks, so programmatic and sponsored ad results sit in one table.
Do I need to code to connect Amazon DSP to Python?
No. You connect Amazon DSP in the Windsor.ai dashboard, pick the fields you want, and Windsor.ai handles the transfer.
How much does it cost to integrate Amazon DSP with Python using Windsor.ai?
The free forever plan covers 1 data source, so connecting Amazon DSP on its own costs nothing and needs no credit card. Combining Amazon DSP with other sources needs a paid plan: $19/month for 3 sources or $99/month for 7. See the pricing page.
Do you have helpful links to get started with Amazon DSP and Python?
Yes. These are the resources to start with for the Amazon DSP to Python integration:
Tired of manual Amazon DSP data exports? Try Windsor.ai today to work on live data

