GET /api/v2/buyer/advertisers/{advertiserId}/accounts/available
Lists accounts a source has discovered but not yet linked to the advertiser. Call this before linking an account to pre-fill accountId and check the source’s supported billingOptions.
Request
curl
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
advertiserId | string (path) | Yes | Unique identifier for the advertiser |
storefrontId | integer (query) | Yes | Storefront the source lives on |
sourceId | string (query) | Yes | Inventory source within storefrontId |
refresh | enum (query) | No | true re-fetches from the source; false (default) returns cached accounts |
billingType | string (query) | No | Filter by billing type. Must be a value the source supports. Defaults to the source’s default |
credentialId | string (query) | No | Specific registered credential to use. Required when multiple credentials exist for the source |
take | integer (query) | No | Results to return. Default 50, max 250 |
skip | integer (query) | No | Results to skip for pagination. Default 0 |
Response
account.status is one of active, pending_approval, payment_required, suspended, closed. credentialId identifies the connected provider credential that owns the account. Include it when linking the account if the buyer has connected more than one credential for the same adapter storefront and duplicate account IDs may exist. synced is true when no accounts matched and a sync_accounts call was triggered to provision one at the partner. Always check billingOptions.supported before sending a billingType.
Errors
400 VALIDATION_ERROR— missingstorefrontId/sourceId, or multiple credentials exist andcredentialIdwas not provided.404 NOT_FOUND—advertiserIdor source does not exist or is not visible.
Related
Advertiser tasks
All advertiser operations
Advertiser overview
Linked accounts model
Create advertiser
Link accounts at creation
Update reporting bucket
Configure offline delivery on a link