Update Campaigns

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.

📘

Partial Update Supported

This endpoint supports partial update. API callers need only supply the attributes they want to change. Attributes not included in update requests will retain their previous values. To unset or clear an attribute, set its value to NULL.

The example below will deactivate an entity while leaving all other settings unchanged:

curl --location --request PUT 'https://api.kevel.co/v1/{entity_type}/{entity_id}' \
--header 'X-Kevel-ApiKey: {api_key}' \
--header 'Content-Type: application/json' \
--data '{"IsActive":false}'
Language
Authorization
Header