Browse the help center

Get a shareable placement preview link

A link that renders the placement exactly as a visitor would see it, served with the given invocation code type.

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

A link that renders the placement exactly as a visitor would see it, served with the given invocation code type. It needs no login, so it can be sent to anyone, and works for 30 days. url is built on the address this request reached the server on; path is the same link without it. servesOnlyWhileActive tells whether the placement, its zone and its site are all switched on - otherwise the preview shows no ad. Without codeType the link renders AJAX when the caller may generate it, else the first type the caller may that the console previews. Requires VIEW access to the placement's site and the invocation-code permission of the rendered type, the same the console's ad-tag card checks.

Path Params

placementId integer required

Placement ID

4001

Query Params

codeType string

Invocation code type: IFRAME_SIMPLE, VIDEO_PLAYER, API, DIRECT_URL, EMAIL, AJAX or JS_MOUNT — the tag the preview renders

AJAX

Responses

200

{success, placementId, path, url, codeType, servesOnlyWhileActive}

400

Unknown code type, or one a placement of this type has no code of

401

Authentication error

403

No VIEW access to the placement's site, or the role may not generate the code type (or, without codeType, any type) for this placement

404

Placement, its zone or its site not found or 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.