Browse the help center

Update placement banners

Creates or updates the set of banners linked to a placement.

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

Creates or updates the set of banners linked to a placement. When 'append' is false (default), the provided banner IDs completely replace all existing links by unlinking current banners and linking the new set; when true, the new banners are added without removing existing ones. Banners that do not fit the placement, or whose campaign or advertiser is deleted, are not linked: the answer lists the banners linked in 'linked' and the others in 'skipped' as {id, reason}. A replace (append=false) cannot remove links the caller may not manage; those are listed in 'kept' as {id, reason}. An id that is no banner is refused with 400 and nothing changes. Requires the LINK_PLACEMENTS_TO_BANNERS permission.

Path Params

placementId integer required

Unique identifier of the placement to update banner links for

3001

Form Params

ids array<integer> required

Array of banner IDs to link to the placement. An id of no banner or of a deleted one is skipped and listed in 'skipped' with the reason

42

append boolean

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

false

Responses

200

{success, linked, skipped, kept}

400

An id that is no banner

401

Authentication error

403

Insufficient permissions

404

Not found — resource does not exist

500

Internal server error

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.