# Connect

Connect Amazon Ads to a profile with Login with Amazon, from the dashboard or with the API.

Amazon Ads connects with Login with Amazon. One login is one account, and every advertiser it reaches becomes a conversions destination.

## Start the connection

Get a Login with Amazon URL for a profile and send the user to `authUrl`:

```bash
curl "https://zernio.com/api/v1/connect/amazonads?profileId=PROFILE_ID&redirect_url=https://app.example.com/connected" \
  -H "Authorization: Bearer $ZERNIO_API_KEY"
```

```json
{ "authUrl": "https://www.amazon.com/ap/oa?...", "state": "..." }
```

| Parameter | What it is |
|-----------|------------|
| `profileId` | The Zernio profile to connect to. Required |
| `redirect_url` | Where the user goes after connecting. An absolute http(s) URL or an app scheme. Optional |
| `reconnectAccountId` | The Amazon Ads account being reconnected. Optional |

Zernio asks for `advertising::campaign_management`. After sign-in, it reads the login's advertisers in North America, Europe and the Far East, and redirects to `redirect_url`.

In the dashboard, open **Connections** and pick **Amazon Ads**.

## How it behaves

- Nothing is picked during the connection: every advertiser the login reaches is a destination.
- List them with [`GET /v1/ads/conversions/destinations`](/conversions/list-ad-conversion-destinations). Each is `<region>:<profileId>:<accountId>:<country>`, named after the advertiser and its country.
- An advertiser added to the login later shows up in the list without reconnecting.

## If it fails

| Error | Cause | Fix |
|-------|-------|-----|
| `amazonads_no_profiles` on the redirect | The Amazon login reaches no Amazon Ads advertiser | Sign in with a user of the advertiser account, then connect again. |
| `amazonads_no_refresh_token` on the redirect | Amazon returned no refresh token | Connect again. |
| `503` with `FEATURE_NOT_AVAILABLE` | Amazon Ads is temporarily unavailable on the server | Retry later, or contact support. |

## Related

- [Get the Amazon Ads connect URL](/connect/get-amazon-ads-connect-url)
- [List conversion destinations](/conversions/list-ad-conversion-destinations)
- [Conversions](/platforms/amazon-ads/conversions)