Browse the help center

Update banner placements

Creates or updates the set of placements linked to a banner.

Reference
PUT https://YOUR-NETWORK-DOMAIN/rest-api/banners/{bannerId}/placements.do

Creates or updates the set of placements linked to a banner. When 'append' is false (default), the provided placement IDs completely replace all existing links, and every link that would be removed must be on a site the caller may manage links on (otherwise placements_cannot_be_linked lists them and nothing changes); when true, they are added to the current set. The caller must have the LINK_PLACEMENTS_TO_BANNERS permission (shared or all level). Returns a JSON object with 'success' status; on permission failure returns {"success":false, "error":"permission_denied"}. An id of no placement or of a deleted one is skipped and listed in 'skipped' with the reason; every other placement must be compatible with the banner type.

Path Params

bannerId integer required

Unique identifier of the banner to update placement links for

42

Form Params

ids array<integer> required

Array of placement IDs to link to the banner. An id of no placement or of a deleted one is skipped and listed in 'skipped' with the reason; every other placement must be compatible with the banner type

3001

append boolean

When true, the provided placement IDs are added to the existing linked placements. When false (default), the provided IDs replace all existing links

false

Responses

200

Operation result with success status

400

Bad request — invalid or missing parameters

401

Authentication error

403

Forbidden — insufficient permissions

404

Not found — resource does not exist

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.