CampaignsLink Creative to Campaign

Link Creative to Campaign

Link a creative to a campaign with an optional rotation weight.

curl -X POST "https://api.5centscdn.com/v2/ad-manager/101/campaigns/cmp_4c19/creatives/crv_9a71/link" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "weight": 100
}'
{
  "result": "success"
}
POST
/ad-manager/{pid}/campaigns/{cid}/creatives/{creativeId}/link
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

path
pidinteger
Required

ID of the Ad Manager project.

path
cidstring
Required

ID of the campaign.

path
creativeIdstring
Required

ID of the creative to link or unlink.

Content-Typestring
Required

The media type of the request body

Options: application/json
weightinteger

Rotation weight for this creative within the campaign. Higher values are served more often relative to other linked creatives.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Path Parameters

pidinteger
Required

ID of the Ad Manager project.

Example:
101
cidstring
Required

ID of the campaign.

Example:
cmp_4c19
creativeIdstring
Required

ID of the creative to link or unlink.

Example:
crv_9a71

Body

application/json
weightinteger

Rotation weight for this creative within the campaign. Higher values are served more often relative to other linked creatives.

Example:
100

Responses

resultstring

Operation outcome.

Allowed values:successerror