Scrape Creators icon

Scrape Creators

Get real time social media data

Google Ad Library → Get A Company's Google Ads

AI-generated

Summary

Fetches a company's Google ads from the Google Ad Library by domain or advertiser ID, with optional topic and country filters. Paginates results using a cursor with safeguards against infinite pagination, returning up to the configured limit.

Inputs

  • Domain — Domain to search for (default: google.com).
  • Advertiser ID — Advertiser ID to search for; use this or the domain to identify the advertiser.
  • Topic — Filter by All (default) or Political.
  • Country — Two-letter country code to filter by (default: US).
  • Limit (required) — Maximum number of ads to return (default: 50).

Output shape

A single item containing an ads array.

The node paginates through the API response using a cursor, ensures it collects items until the limit is met or no new cursor is returned, and avoids infinite loops by limiting the maximum number of pages fetched. The combined ads array is then truncated to the configured limit. The response fields for each ad are determined by the API.

Links

Discussion