Browse the help center

Search campaigns

Performs an advanced search over campaigns using filter parameters submitted as a JSON request body.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/search/campaigns.do

Performs an advanced search over campaigns using filter parameters submitted as a JSON request body. Supports pagination (limit/page), sorting (sortBy/sortDir), active status filtering, name filtering, filtering by campaign ids (ids), and targeting parameter filters. The response optionally includes targeting, pricing, and limits data for each campaign depending on 'showTargeting', 'showPricing', and 'showLimits' flags (subject to the caller's permissions for MANAGE_DEMAND_TARGETING, MANAGE_CAPPING_AND_LIMITATIONS, and MANAGE_PRICING respectively). With the MASK_CAMPAIGNS permission a campaign of an advertiser the caller does not own is named CAMPAIGN_{id}, as in the console's trees and grids. Users with CAMPAIGNS SHARE permission see all campaigns; otherwise only campaigns shared with the authenticated user are returned. Response is a JSON object with 'data' array and 'total' count.

Body

A JSON body. An example, built from the field definitions:

{
  "limit": "25",
  "page": "0",
  "sortBy": "name",
  "sortDir": "desc"
}

Responses

200

JSON object with 'data' array of campaign objects (each containing baseEntity, target, limit, pricing) and 'total' count

400

sortBy names no sortable field; the message lists the ones it may name

401

Authentication error — missing or invalid credentials

403

Forbidden — insufficient permissions

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.