Browse the help center

Email a site's invocation codes

Emails the chosen invocation codes of the site's placements to up to 20 recipients, through the network's invocation-code email template, whose subject and body the request's subject and body replace when sent.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/sites/{siteId}/invocation-codes/send.do

Emails the chosen invocation codes of the site's placements to up to 20 recipients, through the network's invocation-code email template, whose subject and body the request's subject and body replace when sent. A network without that template can still mail them when the request sends both subject and body. The message is always sent from the caller's own address. Code types the caller may not generate for a placement are rejected, and every placement must be a live placement of the site in the path. Requires VIEW access to the site's inventory (ALL, or SHARED with a share on the site).

Path Params

siteId integer required

Site ID

5001

Form Params

bccAuthor boolean

Send a blind copy to the caller's own address

false

body string

Email HTML body; the invocation-code email template's body when omitted. Required, with subject, when the network has no such template

<p>Tags for your site are attached.</p>

emails array<string>

Recipient addresses, at most 20

publisher@example.com

placementInvocationCodes object

Code types to send per placement ID. Every placement must belong to the site in the path.

{"4001": "AJAX"}

singleFile boolean

Attach every code in one text file (true) or one file per placement and code type (false)

true

subject string

Email subject; the invocation-code email template's subject when omitted. Required, with body, when the network has no such template

Your ad tags

Responses

200

{success, recipients} — the codes were handed to the mailer

400

Invalid recipients, no placements, a placement of another site, a code type unavailable for the placement, or no invocation-code email template configured and no subject and body sent

401

Authentication error

403

No VIEW access to the site

404

Site or placement 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.