# Link imported paid ads

Link already imported ads to one exact iOS app.

## Contract status

Preview contract: these routes and tools are implemented in the shared contract, but the public host, customer API access and OAuth flow have not been deployment verified.

## Endpoint: POST /v1/admin/paid-ads/links

- Method: `POST`
- Path: `/v1/admin/paid-ads/links`
- Authentication: Bearer API credential or OAuth access token
- Required scope: `content:write`
- MCP tool: `admin_link_paid_ads`

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `appStoreId` | body | string | yes | iOS App Store ID. |
| `archiveIds` | body | string[] | yes | Imported archive ids. |

## Known errors

- 400 invalid_request for an invalid filter, identity or limit.
- 401 authentication_required for a missing or invalid credential.
- 402 subscription_required when access is not entitled.
- 403 authorization_required for a missing scope or unavailable preview access.
- 404 not_found when the record is outside the accessible catalogue.
- 429 rate_limited; honor Retry-After when present.
- 409 conflict when the write would duplicate an exclusive row.

## Request

This does not discover or import provider data.

```
curl --request POST 'https://api.peekpanda.com/v1/admin/paid-ads/links' \
  --header "Authorization: Bearer $PEEKPANDA_TOKEN" \
  --header 'x-genviral-tenancy: personal' \
  --header 'content-type: application/json' \
  --data '{"appStoreId":"6447582581","archiveIds":["meta-ad-123"]}'
```

## Response

Number of links applied. This command uses the 10-per-minute write budget; honor `Retry-After` for a 429.

```
{
  "linkedCount": 1
}

```

## Source

Provider observations retain advertiser, lifecycle, creative and original public-ad-library URL as provenance.

## Refresh

Candidate discovery is bounded and cached for review. Import status is durable run state; polling it never starts provider work.
