Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

Ads

20 routes. Paths are relative to https://api.intersink.com/v1. This group belongs to a feature in beta.

All groups

Change or pause an ad

PATCH/ads/ads/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Request body application/json

FieldTypeDescription
headlinestringAt least 2 characters, at most 60 characters.
bodystringAt least 0 characters, at most 140 characters.
image_urlstringhttps image address At least 0 characters, at most 500 characters.
destination_urlstringA page on the promoted channel (https) At least 8 characters, at most 500 characters.
ctastringOne of: "learn_more", "shop_now", "book_now", "sign_up", "contact_us", "get_offer".
statusstringOne of: "active", "paused".

Response

200. The payload in data is of type object.

Remove an ad

DELETE/ads/ads/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Response

200. The payload in data is of type object.

The business's campaigns, ads and last 30 days' results

GET/ads/businesses/{businessId}/campaigns

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
businessIdrequiredstring, path

Response

200. data is object[].

Start a campaign (draft) promoting one of the business's channels

POST/ads/businesses/{businessId}/campaigns

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
businessIdrequiredstring, path

Request body application/json

FieldTypeDescription
channel_idstringThe business's own channel to promote
namestringAt least 2 characters, at most 120 characters.
objectivestringOne of: "traffic", "sales", "leads", "awareness".
daily_budget_minornumberDaily budget in minor units (pence/cents) Minimum 1, maximum 10000000.
max_cpc_minornumberHighest cost per click in minor units Minimum 1, maximum 10000.
start_atstring
end_atstring
countriesstring[]Empty: everywhere
partner_idsstring[]Partner platforms (channel ids) to run on; empty: every partner platform

Response

200. The payload in data is of type object.

One campaign with its ads and results

GET/ads/campaigns/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Response

200. The payload in data is of type object.

Change budget, bid, dates (at once) or audience (back to review)

PATCH/ads/campaigns/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Request body application/json

FieldTypeDescription
channel_idstringThe business's own channel to promote
namestringAt least 2 characters, at most 120 characters.
objectivestringOne of: "traffic", "sales", "leads", "awareness".
daily_budget_minornumberDaily budget in minor units (pence/cents) Minimum 1, maximum 10000000.
max_cpc_minornumberHighest cost per click in minor units Minimum 1, maximum 10000.
start_atstring
end_atstring
countriesstring[]Empty: everywhere
partner_idsstring[]Partner platforms (channel ids) to run on; empty: every partner platform

Response

200. The payload in data is of type object.

Add an ad (a running campaign goes back to review)

POST/ads/campaigns/{id}/ads

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Request body application/json

FieldTypeDescription
headlinestringAt least 2 characters, at most 60 characters.
bodystringAt least 0 characters, at most 140 characters.
image_urlstringhttps image address At least 0 characters, at most 500 characters.
destination_urlstringA page on the promoted channel (https) At least 8 characters, at most 500 characters.
ctastringOne of: "learn_more", "shop_now", "book_now", "sign_up", "contact_us", "get_offer".
statusstringOne of: "active", "paused".

Response

200. The payload in data is of type object.

Archive a campaign

POST/ads/campaigns/{id}/archive

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Pause a running campaign

POST/ads/campaigns/{id}/pause

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Response

200. The payload in data is of type object.

Resume a paused campaign

POST/ads/campaigns/{id}/resume

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Response

200. The payload in data is of type object.

Results per ad and day (last 30 days)

GET/ads/campaigns/{id}/stats

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Response

200. data is object[].

Send for review (accepts the advertising policy)

POST/ads/campaigns/{id}/submit

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Request body application/json

FieldTypeDescription
accept_policyrequiredbooleanAccepts the advertising policy

Response

200. The payload in data is of type object.

The channel's ad partner enrolment, this month's results and statements

GET/ads/channels/{channelId}/partner

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path

Response

200. The payload in data is of type object.

Enrol the channel in the Ad Partner Program (reviewed by Intersink)

POST/ads/channels/{channelId}/partner

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path

Request body application/json

FieldTypeDescription
platform_namestringAt least 2 characters, at most 80 characters. Example: "viremail"
descriptionstringAt least 0 characters, at most 500 characters.
site_urlstringAt least 0 characters, at most 300 characters. Example: "https://viremail.com"
categorystringOne of: "email", "social", "browser", "news", "shopping", "video", "tools", "community", "other".
monthly_visitorsnumberAbout how many people visit a month Minimum 0.
accept_termsrequiredbooleanAccepts the Ad Partner Terms

Response

200. The payload in data is of type object.

Change how the platform is described

PATCH/ads/channels/{channelId}/partner

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path

Request body application/json

FieldTypeDescription
platform_namestringAt least 2 characters, at most 80 characters. Example: "viremail"
descriptionstringAt least 0 characters, at most 500 characters.
site_urlstringAt least 0 characters, at most 300 characters. Example: "https://viremail.com"
categorystringOne of: "email", "social", "browser", "news", "shopping", "video", "tools", "community", "other".
monthly_visitorsnumberAbout how many people visit a month Minimum 0.

Response

200. The payload in data is of type object.

Leave the Ad Partner Program

POST/ads/channels/{channelId}/partner/leave

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path

Response

200. The payload in data is of type object.

Follow an ad (counts the click, then redirects)

GET/ads/click/{id}

Public: no sign-in needed.

Parameters

NameTypeDescription
idrequiredstring, path
trequiredstring, query
prequiredstring, query

Response

200. The payload in data is not described in the spec yet.

Ad Library: every ad an advertiser has run (?q=business or brand)

GET/ads/library

Public: no sign-in needed.

Parameters

NameTypeDescription
qrequiredstring, queryA business or brand name At least 2 characters, at most 80 characters.

Response

200. The payload in data is not described in the spec yet.

Partner platforms advertisers can choose (Svayam's first)

GET/ads/platforms

Needs a signed-in user (Bearer token or access_token cookie).

Response

200. The payload in data is not described in the spec yet.

Ads for a Sponsored slot on a partner platform (?partner=<its channel id>&country=)

GET/ads/serve

Public: no sign-in needed.

Parameters

NameTypeDescription
partnerrequiredstring, queryThe partner platform's channel id (the slot's owner)
countrystring, queryAt least 2 characters, at most 2 characters. Example: "GB"
limitnumber, queryMinimum 1, maximum 6.

Response

200. data is object[].