Endpoint
Request example
Query parameters
The target placement ID that identifies where the ad will appear in your layout. Examples:
header_banner, article_inline, sidebar_top. See Ad Placements for the full list of supported values.The number of campaigns to return. Defaults to
10. Maximum value is 100. Use a higher limit to batch-fetch campaigns and reduce the number of API calls your integration makes.The ISO 3166-1 alpha-2 country code representing the user’s geographic location. Examples:
US, GB, FR. When provided, the API filters campaigns to those targeted at the specified country.The device type of the current user. Accepted values:
mobile, desktop, tablet. When provided, the API filters campaigns to those targeted at the specified device type.Response
200 — Success
The response includes astatus field, a data array of campaign objects, and a count of returned campaigns.
Always
"success" for a successful response.The number of campaign objects returned in the
data array.Array of campaign objects matching the requested placement and targeting parameters.
400 — Bad Request
Returned when a required parameter is missing or a parameter value is invalid.401 — Unauthorized
Returned when theAuthorization header is missing or the API key is invalid.