Why should I update a creative?
Occasionally, you may wish to update an existing creative with new parameters when an Ad may need to be updated. The Update Creative API call enables you to update the creative using the Creative ID; however, the id
may not be changed.
Warning
When updating a creative, you MUST use the
AdvertiserId
of the creative when it was created. Creatives cannot change advertisers in Kevel.
API Syntax
To update an existing creative, you need to understand the syntax for the Update Creative API call. 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/creative/{CreativeID}
Where:
PUT
- the type of API request being made.https://api.kevel.co
- the URL for the request.v1
- the API version.creative
- the API endpoint being called.CreativeID
- The ID for the creative.
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}'