Skip to content

Put X Account Selection

PUT
/audience-syncs/x/account-selection

Choose the X ad account (and payment method) new X campaigns launch into.

CHANGES WHERE FUTURE X SPEND IS BILLED. The choice is validated against what the X login can actually reach: 400 for an account or a payment method it cannot use, 404 when X is not connected, 503 when X cannot be asked right now. Existing campaigns are untouched; the next save of an existing X sync config picks the new choice up. Limited to 10 per minute per organization.

Authorizations

Parameters

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

The org’s X ad account (and optionally payment method / promotable user) to launch X campaigns into. Validated against what the X login can reach.

object
ad_account_id
required
string
>= 1 characters <= 64 characters
as_user_id
string
"" <= 64 characters
funding_instrument_id
string
"" <= 64 characters

Responses

200

Successful Response

object
data
required

One ad-platform object, or one handler response.

object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string