Browse the help center

List a placement's content replacement rules

The find-and-replace rules of the placement's Content replacement card, oldest first: each rule's 'target' is the exact text the ad server looks for in every ad markup the placement serves, and every occurrence becomes its 'replacement'.

Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/placements/{placementId}/content-replacement.do

The find-and-replace rules of the placement's Content replacement card, oldest first: each rule's 'target' is the exact text the ad server looks for in every ad markup the placement serves, and every occurrence becomes its 'replacement'. The rules apply only while 'contentReplacementEnabled' is true — switch it with the contentReplacementEnabled parameter of the placement's update operation; rules are kept either way. Every rule is returned; 'total' is their number. Requires the PLACEMENT_CONTENT_REPLACEMENT permission and view rights on the placement's site.

Path Params

placementId integer required

Placement id

4001

Responses

200

{success, placementId, contentReplacementEnabled, total, rules:[{id, target, replacement}]}

400

Bad request — invalid or missing parameters

401

Authentication error

403

The role lacks PLACEMENT_CONTENT_REPLACEMENT, or no view rights on the placement's site

404

The placement does not exist or is deleted

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.