Search Campaigns

Why Search Campaigns?

If you would like to review the properties of a campaign, the Kevel API enables you to perform a search on a campaign's name and then have a list of properties returned to you for that campaign. The result will be a JSON list of all campaigns for which the value of campaignName is contained in the name property (aka wildcard search).

📘

Note

This endpoint accepts a string key/value pair as its payload instead of a JSON object.

API Syntax

When using the Search 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:

POST https://api.kevel.co/v1/campaign/search

Where:

Request Syntax

When making a request to this endpoint, please keep the following rules in mind:

🚧

Caution

If you are searching for a campaign name that contains multiple words, you must URL encode the term you are searching for. For example, in curl you can use the --data-urlencode flag and search for "campaignName=Nike Shoes"

``200 200

object

PageNumber

integer

Defaults to 0

Items

array of objects

Items

object

IsActive

boolean

Defaults to true

DontAffectParentFreqCap

boolean

Defaults to true

Flights

array

DailyCapAmount

integer

Defaults to 0

FreqCapType

integer

Defaults to 0

CapType

integer

Defaults to 0

IsFreqCap

string

IsDeleted

boolean

Defaults to true

EndDateISO

string

Price

integer

Defaults to 0

IsArchived

boolean

Defaults to true

LifetimeCapAmount

integer

Defaults to 0

FreqCapDuration

integer

Defaults to 0

FreqCap

integer

Defaults to 0

SalespersonId

string

AdvertiserId

integer

Defaults to 0

Name

string

Id

integer

Defaults to 0

CustomFieldsJson

string

StartDateISO

string

Updated 10 months ago


ShellJavaScriptRuby


xxxxxxxxxx

curl -X POST -H 'X-Adzerk-ApiKey:<APIKEY>' 'https://api.kevel.co/v1/campaign/search' --data-urlencode 'campaignName=%Nike%'

xxxxxxxxxx

{
  "PageNumber": 1,
  "Items": [
    {
      "IsActive": true,
      "DontAffectParentFreqCap": true,
      "Flights": [],
      "DailyCapAmount": 5000,
      "FreqCapType": 1,
      "CapType": 4,
      "IsFreqCap": null,
      "IsDeleted": false,
      "EndDateISO": null,
      "Price": 0,
      "IsArchived": false,
      "LifetimeCapAmount": 50000,
      "FreqCapDuration": 10,
      "FreqCap": 2,
      "SalespersonId": null,
      "AdvertiserId": 12345,
      "Name": "Nike Shoes",
      "Id": 567890,
      "CustomFieldsJson": null,
      "StartDateISO": "2017-01-01T00:00:00.0000000"
    }
  ]
}

Updated10 months ago

* * *