Why Update a Campaign?
Typically, a campaign runs for a specific duration of time, with flights in the campaign having a common theme, and an advertiser's ads that directly correlate with the campaign. During the course of a campaign, however, you may wish to make changes to a flight, the ads associated with a flight, or specifics about the campaign. In this case, you will want to use the Update Campaigns API call to make changes to an existing campaign.
API Syntax
When using the Update Campaigns API endpoint, it is important to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:
PUT https://api.kevel.co/v1/campaign/{CampaignID}
Where:
PUT- the type of API request being made.https://api.kevel.co- the URL for the request.v1- the API version.campaign- the API endpoint being called.CampaignID- the ID associated with the campaign.
Changing a Campaign's wallet
The request body accepts a Wallets array with at most one item.
- If the Campaign has no wallet, the wallet is linked.
- If it has a different wallet, the new wallet replaces it.
- If it has the same wallet, nothing changes.
Leave Wallets out, or send an empty list, to keep the link. To unlink, use Unlink Wallet from Campaign. The rules for Link Wallet to Campaign and Swap Campaign Wallet apply, and every failure returns 400.
