Google search ads API
Search ads in the Google ads library. Call the Google search ads API and get JSON back in one request. 1 credit per call. Failed calls cost nothing.
Request
At least one ofquery, 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.
Optional parameters
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 ofdata.cursor as cursor in a subsequent request. A response that omits cursor is the last page.
Related methods
- Google ads search: Accepts an
advertiserIdasadvertiser. Searches ads in the Google ads library. - Google ad details: Accepts
adUrl. Returns a Google ad’s details.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
A domain like nike.com. Google's library finds ads by domain or advertiser, not by keyword.
1 - 200Country code like de. Only ads shown in this country are returned. Any case is accepted.
^[A-Za-z]{2}$text, image, video Google's own Platform filter: where the ad was shown.
search, youtube, play, maps, shopping Google's own Date range: ads shown on or after this day.
^(?:(?:\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])))$Google's own Date range: ads shown on or before this day.
^(?:(?:\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])))$The cursor from the previous response. Send it as is.
1