Browse the help center

Get a placement's invocation code

Returns the placement's invocation code of the given type, with its default invocation-code parameters applied.

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

Returns the placement's invocation code of the given type, with its default invocation-code parameters applied. Unlike GET /rest-api/placement/{key}/code this is addressed by placement ID and checks access: it requires VIEW access to the placement's site and, for types that have one, the per-type invocation-code permission.

Path Params

placementId integer required

Placement ID

4001

Query Params

type string required

Invocation code type: IFRAME_SIMPLE, VIDEO_PLAYER, API, DIRECT_URL, EMAIL, AJAX or JS_MOUNT

AJAX

Responses

200

{success, type, code}

400

Unknown code type

401

Authentication error

403

No VIEW access to the site, or the code type is not available to the caller 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.