Package Exports
- amazon-ads-api
- amazon-ads-api/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (amazon-ads-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Amazon Advertising API SDK
Dead simple SDK for Amazon Advertising API
How to install?
npm i amazon-ads-api
or
yarn add amazon-ads-api
How to use it?
const { AmzAdvertising } = require('amazon-ads-api')
const tokens = { accessToken, refreshToken, clientId, clientSecret }
const adsClient = new AmzAdvertising(tokens)
Or pass tokens using environment variables
process.env.AMAZON_ADVERTISING_ACCESS_TOKEN = accessToken
process.env.AMAZON_ADVERTISING_REFRESH_TOKEN = refreshToken
process.env.AMAZON_ADVERTISING_DEV_CLIENT_ID = clientId
process.env.AMAZON_ADVERTISING_DEV_CLIENT_SECRET = clientSecret