This article will cover the following:
What Is a Campaign?
In CAKE, a campaign is the connection between an affiliate and a specific offer. When a network approves an affiliate to promote an offer, CAKE creates a campaign that ties their account to that offer — and from that campaign, CAKE generates a unique tracking link.
| Component | What It Represents |
|---|---|
| Offer | The product or service being promoted |
| Affiliate | The publisher driving traffic |
| Campaign | The approved relationship between the two |
| Tracking Link | The unique URL generated from the campaign |
Note:
Each campaign has its own ID in CAKE — useful when troubleshooting conversion attribution issues.
Each campaign has its own ID in CAKE — useful when troubleshooting conversion attribution issues.
How to Generate a Tracking Link
For Affiliates
- Log in to your affiliate portal and go to Offers.
- Find the offer and click its name to open the detail page.
- Scroll to the Tracking Link section. Your unique link is displayed there.
- If the offer supports multiple landing pages or creatives, select them before copying your link.
- Copy the link and use it in your promotion. Do not alter the URL structure — changing parameters breaks tracking.
For Network Managers
- Go to Campaigns and search by affiliate name, offer name, or campaign ID.
- Open the campaign record. The tracking link is displayed near the top.
- To create a new campaign, click Add Campaign, select an affiliate and offer, and save. CAKE generates the tracking link automatically.
Caution:
Never manually construct a tracking link by copying someone else's link and changing the affiliate ID. Each campaign must be properly set up in CAKE for reporting, caps, and payouts to work correctly.
Never manually construct a tracking link by copying someone else's link and changing the affiliate ID. Each campaign must be properly set up in CAKE for reporting, caps, and payouts to work correctly.
Creative Types
| Creative Type | What it is | Common use |
|---|---|---|
| Banners | Static or animated image files (JPG, PNG, GIF) in standard ad sizes. | Display advertising, ad networks. |
| HTML Creatives | Raw HTML code for rich media or formatted ads. | Email newsletters, custom ad placements. |
| Text Links | Plain hyperlinked text. | Inline blog links, email copy, social posts. |
| Landing Pages | Pre-approved destination URLs for the offer. | Sending traffic to a specific version of the offer page. |
How to Select a Creative
- On the offer detail page, scroll to the Creatives section.
- Browse available creatives — type, dimensions if applicable, and a preview.
- Click Get Code or Get Link next to the creative you want.
- CAKE displays the code or link with your affiliate tracking already built in. Copy and place it in your promotion.
Caution:
Only use creatives listed as active on the offer. Using outdated or unapproved creatives may violate your agreement with the network or advertiser.
Only use creatives listed as active on the offer. Using outdated or unapproved creatives may violate your agreement with the network or advertiser.
Landing Pages and Tracking
A landing page in CAKE is a destination URL the advertiser has approved for a specific offer. When you select a landing page in the tracking link generator, CAKE encodes that choice into your link and routes the visitor to the correct page.
- Not all offers have multiple landing pages — if only one is available, it is selected automatically.
- Landing pages are controlled by the network or advertiser; you cannot add your own unless the network permits it.
- If a landing page is deactivated, CAKE falls back to the offer's default URL.
API: Campaign & Creative Endpoints
List Campaigns
GET /api/2/campaigns.json
| Parameter | Type | Required | Description |
|---|---|---|---|
| campaign_id | integer | No | Return a single campaign by ID. |
| offer_id | integer | No | Filter campaigns for a specific offer. |
| affiliate_id | integer | No | Filter campaigns for a specific affiliate. |
| campaign_status | string | No | Filter by status: active, inactive, or deleted. |
| start_at_row | integer | No | Row offset. Default: 1. |
| row_limit | integer | No | Max rows. Default: 100; max: 500. |
Sample request
GET https://yourdomain.cake.com/api/2/campaigns.json
?api_key=YOUR_API_KEY
&offer_id=12345
&affiliate_id=67890
&campaign_status=activeSample response
{
"request_status": "Success",
"campaigns": [{
"campaign_id": 8801,
"offer_id": 12345,
"affiliate_id": 67890,
"campaign_status": "active",
"tracking_link": "https://yourdomain.cake.com/click?c=8801"
}]
}Create Campaign
POST /api/2/campaign.json
| Parameter | Type | Required | Description |
|---|---|---|---|
| offer_id | integer | Yes | ID of the offer this campaign belongs to. |
| affiliate_id | integer | Yes | ID of the affiliate being assigned. |
| display_link_type_id | integer | Yes | Display link format type. Obtain valid IDs from your CAKE admin. |
| creative_id | integer | No | ID of the creative asset to assign. |
| landing_page_id | integer | No | ID of the landing page to assign. |
Sample request
POST https://yourdomain.cake.com/api/2/campaign.json?api_key=YOUR_API_KEY
{
"offer_id": 12345,
"affiliate_id": 67890,
"display_link_type_id": 2,
"creative_id": 441,
"landing_page_id": 309
}Sample response
{
"request_status": "Success",
"campaign": {
"campaign_id": 8802,
"tracking_link": "https://yourdomain.cake.com/click?c=8802"
}
}If you have any questions, please reach out to your dedicated CAKE Client Success Manager/Account Manager or contact the CAKE Support Team at support@getCAKE.com.