Skip to main content
POST
Search ads in the Google ads library
Searches ads in the Google ads library.

Request

At least one of query, advertiser or domain is required.

Response

If successful, the response body contains the standard envelope. data.results[] contains the ads, each with its advertiser and the days it ran. The following example is a real response, truncated: each list shows one item and long strings are cut.
For every field, see the response schema on this page.

Optional parameters

The Google ad library does not support keyword search. To search by advertiser name, first resolve the advertiser ID with Google advertisers.

Billing

Each successful request consumes 1 credit, regardless of the number of items returned. Requests that fail, or that return no items, are not billed.

Pagination

Results are paginated. To retrieve the next page, pass the value of data.cursor as cursor in a subsequent request. A response that omits cursor is the last page.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
query
string

A domain like nike.com. Google's library finds ads by domain or advertiser, not by keyword.

Required string length: 1 - 200
advertiser
string
domain
string
country
string

Country code like de. Only ads shown in this country are returned. Any case is accepted.

Pattern: ^[A-Za-z]{2}$
mediaType
enum<string>
Available options:
text,
image,
video
platform
enum<string>

Google's own Platform filter: where the ad was shown.

Available options:
search,
youtube,
play,
maps,
shopping
shownFrom
string<date>

Google's own Date range: ads shown on or after this day.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
shownTo
string<date>

Google's own Date range: ads shown on or before this day.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
cursor
string

The cursor from the previous response. Send it as is.

Minimum string length: 1

Response

The data, and the credits this call used.

success
any
required
data
object
required
creditsUsed
integer
required
requestId
string
required