> Documentation index: https://docs.zernio.com/llms.txt. Every page is also Markdown: add .md to its URL.

# Spotify Ads

Connect a Spotify Ads Conversions API connection and send purchases, leads and shopping events to Spotify from your server, deduplicated with the Spotify Pixel.

Connect a Spotify Ads Conversions API connection with its Connection ID and access token. The account (`platform: "spotifyads"`) gets your conversions through the Spotify Conversions API, counted once with the Spotify Pixel.

## Quick reference

| Property | Value |
|----------|-------|
| Platform value | `spotifyads` |
| What it does | Receives conversions through the Spotify Conversions API |
| Auth | The Conversions API access token and Connection ID from Spotify Ads Manager |
| Destination | The connection ID. Each connection has exactly one |
| Match keys | IP address, email and phone (email and phone SHA-256 hashed) |
| Events sent | `PageView`, `ViewContent`, `AddToCart`, `InitiateCheckout`, `Purchase`, `Lead`, `CompleteRegistration`, and `CUSTOM_EVENT_1` to `CUSTOM_EVENT_5` |
| Dedup | `eventId` is Spotify's `event_id`, shared with the Spotify Pixel |
| Test mode | No: a test event is skipped, nothing is sent |

## Before you start

You need to be a Business Admin of the business in Spotify Ads Manager.

1. Open **Events** in Spotify Ads Manager and choose **Connect data source**, then **Conversions API**.
2. Copy the **Connection ID** from **View Conversions API Instructions**.
3. Choose **Generate token** and copy the token. Spotify keeps up to three tokens per connection, and a new one can take up to 20 minutes to start working.
4. On each campaign, pick the Conversions API as the conversion measurement data source.

## Connect

Send the token and Connection ID to `POST /v1/connect/spotify-ads/credentials`. See [Connect](/platforms/spotify-ads/connect).

## Common errors

| Error | Cause | Fix |
|-------|-------|-----|
| `400` on `accessToken` | The token is not a Conversions API token | Generate one under Conversions API in Spotify Ads Manager. |
| `Spotify needs a match key …` | The event has no `ipAddress`, `email` or `phone` | Send the visitor's IP address. |
| `Spotify takes PageView, ViewContent, …` | The event name has no Spotify event | Rename it in a forwarding rule. |
| `401` with `reconnect_required` | Spotify refused the token | Generate a new token and [connect again](/platforms/spotify-ads/connect). |

## In this section

<PlatformPages platform="spotify-ads" />

## Related

- [Connect Spotify Ads conversions](/connect/connect-spotify-ads-credentials)
- [Send events](/conversions/send-events)
- [Create a forwarding rule](/conversions/create-forwarding-rule)
- [Conversions API platforms](/products/conversions-api/platforms)