Google Ads Scraper avatar

Google Ads Scraper

Try for free

1 day trial then $30.00/month - No credit card required now

Go to Store
Google Ads Scraper

Google Ads Scraper

silva95gustavo/google-ads-scraper
Try for free

1 day trial then $30.00/month - No credit card required now

Extract text, image and video ads from Google Ads, scraped from the ad library provided by Google Ads Transparency Center. Gain access to ad details, ad copy, locations, and more. Dive deeper into the Google Ads Transparency Center for a competitive edge.

KL

The scrapper returns 0 results

Open

KLoic opened this issue
2 days ago

Hi, I ran your actor with the following url: https://adstransparency.google.com/advertiser/AR05753369569305559041?region=anywhere and it does not return any results but when you check on the adstrasparency web page, you can clearly see there are 3 video ads!

Can you please quickly fix this, I just paid and subscribed to your actor and I need this to work perfectly as soon as possible. Thank you.

silva95gustavo avatar

Hi!

There are indeed some ads active for this advertiser, however these ads are marked as age-restricted. You can confirm this if you logout from your Google account or visit Ads Transparency Center from an Incognito session.

This scraper tool runs in anonymous mode (without logging in), which means that Google does not serve age-restricted ads. Some advertisers may focus mainly on ads that are restricted to certain ages and therefore this tool cannot retrieve some of their ads.

KL

KLoic

2 days ago

Ok ok I see. Thanks for the quick reply and explanation. Do you have another idea on how to scrape these type of ads? Thanks

silva95gustavo avatar

Support for Age-Restricted Ads Unfortunately, I’ve decided not to implement this functionality. Here’s why:

  • Accessing age-restricted ads requires being logged in, which could violate Google’s Terms of Service.
  • Adding this feature could pose a risk of account termination for users, which I want to avoid.

That said, if you’d like to proceed at your own discretion, you can customize the requests made by the scraper to include your session cookies. Here’s an example of how to pass custom headers in the input:

1{
2    "startUrls": [
3        {
4            "headers": {
5                "cookie": "<insert_cookies>",
6                "x-framework-xsrf-token": "<insert_token>"
7            },
8            "url": "https://adstransparency.google.com/advertiser/AR08888592736429539329?authuser=0&region=ES&preset-date=Last+7+days"
9        }
10    ]
11}

How to Configure:

  • If you’re running the scraper from the Apify Console (UI), switch from "Manual" to "JSON" input mode.
  • Add your headers under the headers object, as shown above.
  • Replace <insert_cookies> and <insert_token> with your session cookies and any required tokens.

Please keep in mind that using this approach carries the risks mentioned earlier, so proceed with caution.

Developer
Maintained by Community

Actor Metrics

  • 89 monthly users

  • 39 stars

  • >99% runs succeeded

  • 14 hours response time

  • Created in Oct 2023

  • Modified a month ago