Create Ads

Why Create an Ad?

An ad is an important part of a flight and campaign, and can help in driving traffic to a website or domain. To create an ad, simply upload the creative associated with the ad to the system using the Create Creative API call. After the creative is uploaded, pass the CreativeID as the id for the creative object.

An ad will be created, and the unique Ad ID returned may then be used to update or delete ads.

📘

Creating product-based ads?

If you're using Kevel Catalog, create ads directly from product data using the asynchronous create ads from products Jobs endpoint.

API Syntax

When using the Create Ads API call, it is important to understand the syntax required to make the request. There is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

POST https://api.kevel.co/v1/flight/{FlightID}/creative

Where:

  • POST - the type of API request being made.
  • https://api.kevel.co - the URL for the request.
  • v1 - the API version.
  • flight - the API endpoint being called.
  • FlightID - the ID associated with the Flight.
  • creative - indicates that we're mapping a Creative to the Flight.

Additional Parameters

In addition to the parameters already listed above that can be passed as part of this request, there are a few additional parameters you can pass to further refine the ad being created. These parameters are listed in the table below.

PropertyDescription
IsNetworkAd
(boolean)
Indicates that ad comes from a 3rd party (i.e. uses 3rd party ad tags) - for use with Click Bucketing. If true = multiple clicks from the same IP address count as Unique Clicks
DontAffectParentFreqCap
(boolean)
"Opts-out" of frequency cap settings imposed on it by above
FreqCap
(integer)
The cap of the frequency cap. Instructions here
FreqCapDuration
(integer)
How long the frequency cap should apply. Instructions here
FreqCapType
(integer)
The unit for the frequency cap: 1 = Hour 2 = Day 3 = Minute. Instructions here

Misc Notes

Goal: If GoalType is 2 (Percentage), then a Goal of 100 represents a 100% goal. If GoalType is 1 (Impressions), then a Goal of 200000 represents a goal of 200,000 impressions. Note: when you GET a creative, you will see a value of "null" for Goal, and the goal should be represented as e.g. "Impressions": 200000 or "Percentage": 100. Our API does this conversion behind the scenes.

IsGoalOverride: You will see this IsGoalOverride field in the results of a GET request for an ad -- this indicates whether or not the flight-level goal is being overridden by an ad-level goal. When creating or updating an ad, however, you do not need to explicitly set IsGoalOverride -- it is set automatically based on whether or not you are supplying GoalType and Goal.

IsStartEndDateOverride: You will see IsStartEndDateOverride field in the results of a GET request for an ad -- this indicates whether or not the ad has its own start/end dates. When creating or updating an ad, however, you do not need to explicitly set IsStartEndDateOverride -- it is set automatically based on whether or not you are supplying StartDateISO and EndDateISO.

Path Params
int32
required

The ID of the Flight

Body Params
Creative
object
required

The creativeID you'll get when you create a creative, wrapped in an object, like {"Id":12345}. Or you may omit the id and specify a new Creative using the object structure described on Create Creative.

boolean
Defaults to false

Whether ad should be eligible to serve. Defaults to false

string

Required for RTB ads only. JSON Object in a String. It's JSON data provided by the RTB partner. Certain parameters in the object will be required per partner. If you aren't sure what is required, your account manager will supply you with the data for this property

ActiveKeywords
array of strings

For Keyword Targeting. Instructions here

ActiveKeywords
string

Zerkel string for Custom targeting. Instructions here. The maximum string length for CustomTargeting is 1000 characters.

int32

Site ID for Site Specific targeting

int32

Zone ID for Zone Specific targeting

boolean

Whether it should be deleted

boolean

Whether Creative should use iFrame

boolean
Defaults to false

Whether size needs to be overridden. Defaults to false

boolean

Whether you are overriding the start and end date

string

The start date for this ad in ISO 8601 format

string

The end date for this ad in ISO 8601 format

boolean

Whether you are overriding the goal on the ad

int32

If you are overriding the flight's goal, sets the target goal metric for ad. Key follows: 1 = Impressions 2 = Percentage 3 = Click 7 = Any Conversions 8 = Lifetime Revenue (integer) 9 = Daily Revenue (integer) 10 = Monthly Revenue (integer)

int32

The Goal Amount of GoalType

float

The Price value - instructions here

AttributionSettings
object

Specify the products, categories, brands, and/or merchants that make a purchase eligible for attribution to this Ad. See Attribution Overview for more details.

SearchTerms
object
Response

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json