Skip to main content

Merge Ad Accounts

POST 

/api/advertising/accounts/:adAccount/merge

Folds an older copy of the same platform account (from_ad_account_id, usually from a connection that was replaced by reconnecting) into this account's connection, so performance history, holds and change sets carry over. The older record is kept and moved onto this account's connection, the record at :adAccount is deleted, and the result is active and selected if either was selected. Find candidates in merge_candidate_ids from Get Ad Account.

Required scope: advertising:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Requires the advertising.manage permission. Token scope: advertising:write (personal access and OAuth tokens).

Body: from_ad_account_id (integer, required): the ad account whose history should be merged in. Must exist, be a different record, and share the same platform and platform account id (otherwise 422).

Returns the merged account (its id is from_ad_account_id).

Request​

Responses​

OK

Response Headers
    Content-Type