> The index of all pages is at https://docs.afffast.com/llms.txt.

# Connect Partner-Ads

Step-by-step guide to connect Partner-Ads.

Follow these steps to connect Partner-Ads. The dashboard shows the same steps when you connect the network.

## Steps

1. Log in to your Partner-Ads publisher account.
   [Open this page in Partner-Ads](https://www.partner-ads.com/dk/)
2. Open the page "Dataudtræk / API".
3. Find the "unique key" of your account. Copy it. Do not create a new key.
4. Paste the key in the field "Unique key".
5. Open one of your tracking links. Find the number after `partnerid=` in the link. Copy it.
6. Paste the number in the field "Partner ID".

## Where to find each value

- **Unique key** (`apiKey`, required, secret). In Partner-Ads, open "Dataudtræk / API". The page shows the unique key of your account.
- **Partner ID** (`partnerId`, required). The number after `partnerid=` in each Partner-Ads tracking link of your account.

We encrypt each secret value. We never show it again after you save it.

## Common mistakes

- Never create a new key in Partner-Ads. A new key deletes the old key. Each other tool that uses the old key stops.
- The Partner ID is not the program number. Use the number after `partnerid=` in a tracking link.
- The key has a space or a line break at the end. Copy the key again and paste only the key.
- Partner-Ads answers "Key findes ikke" when the key is wrong. Copy the key again from the page "Dataudtræk / API".

## Check the connection

Enter the values in the dashboard and press Check credentials. The check asks Partner-Ads if it accepts the values. Nothing is saved until you press Save. With the API, send `POST /v1/connections/test` with the network `partner-ads` and the credentials. Then send `POST /v1/connections` to save them.
