Ad solutions to help you find, attract, and engage millions of Amazon customers at every stage of their journey
Go to siteThe Amazon Advertising API allows developers to programmatically access Amazon advertising data and metrics. With the API, developers can build tools and applications that enable advertisers to manage their Amazon advertising campaigns more effectively.
Some examples of what you can build with the Amazon Advertising API include:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
amazon_advertising: {
type: "app",
app: "amazon_advertising",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.amazon.com/user/profile`,
headers: {
Authorization: `Bearer ${this.amazon_advertising.$auth.oauth_access_token}`,
},
})
},
})
Amazon Advertising uses OAuth authentication. When you connect your Amazon Advertising account, Pipedream will open a popup window where you can sign into Amazon Advertising and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Amazon Advertising API.
Pipedream requests the following authorization scopes when you connect your account:
profile
advertising::campaign_management
GET
https://www.amazon.com/ap/oa
?
client_id={{custom_fields.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://api.amazon.com/auth/o2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://api.amazon.com/auth/o2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}