Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
# Example environment variables for the Amazon Ads CLI
# Copy this file to .env and fill in your values
# Example environment variables for the Amazon Ads CLI.
# Copy this file to .env and fill in your values, or run `amazonads auth login`
# to save credentials to ~/.config/amazonads-cli/config.json instead.
# Environment variables override the config file.

# Amazon Ads API credentials
AMAZON_ADS_CLIENT_ID=your_client_id_here
AMAZON_ADS_CLIENT_SECRET=your_client_secret_here
AMAZON_ADS_REFRESH_TOKEN=your_refresh_token_here

# API endpoint (optional)
AMAZON_ADS_API_ENDPOINT=https://advertising-api.amazon.com
# Region: NA, EU, or FE (default NA)
AMAZON_ADS_REGION=NA

# Use the Amazon Ads sandbox endpoint (default false)
AMAZON_ADS_SANDBOX=false

# Default profile ID, so --profile is not needed on every command
AMAZON_ADS_PROFILE_ID=
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build/
.env
*.js.map
*.d.ts.map
.claude/worktrees/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ npm install -g amazonads-cli
amazonads auth login
```

Prompts for your Client ID and Client Secret, opens a browser to complete Amazon OAuth, and saves credentials to `~/.config/amazonads-cli/config.json`.
Prompts for your Client ID, Client Secret, and region (NA, EU, or FE), opens the regional Login with Amazon consent page, and saves credentials to `~/.config/amazonads-cli/config.json`.

You can also create the config file manually if you already have a refresh token:

Expand Down
Loading
Loading