Skip to navigation

List ads

List ads scoped by ad group, campaign, or company.

Required permissions:

  • ad_campaign:basic:read

Authentication

AuthorizationBearer

A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word ‘Bearer’, which will look like Bearer ***************************

Query parameters

afterstring or nullOptional
beforestring or nullOptional
firstinteger or nullOptional
lastinteger or nullOptional
ad_campaign_idslist of strings or nullOptional
ad_group_idstring or nullOptional
ad_group_idslist of strings or nullOptional
company_idstring or nullOptional
created_afterdatetime or nullOptional
created_beforedatetime or nullOptional
directionenum or nullOptional
The direction of the sort.
Allowed values:
orderenum or nullOptional
The fields ad resources can be ordered by.
Allowed values:
querystring or nullOptional
stats_fromdatetime or nullOptional
stats_todatetime or nullOptional
statusenum or nullOptional
The status of an external ad.
campaign_idstring or nullOptional
order_byenum or nullOptional

Columns that the listAds query can sort by. Deprecated — use AdOrder.

Allowed values:
order_directionenum or nullOptional
The direction of the sort.
Allowed values:
ad_campaign_idstring or nullOptional

Response

A successful response
datalist of objects
A list of nodes.
page_infoobject
Information to aid in pagination.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error