<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Gii Winthrop</title>
    <description>The latest articles on DEV Community by Gii Winthrop (@giiwinthrop).</description>
    <link>https://dev.to/giiwinthrop</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4283864%2Feed3fbfc-e92e-4c9d-bf3f-52279d61c736.jpg</url>
      <title>DEV Community: Gii Winthrop</title>
      <link>https://dev.to/giiwinthrop</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/giiwinthrop"/>
    <language>en</language>
    <item>
      <title>Getting a competitor's Google ads into a spreadsheet</title>
      <dc:creator>Gii Winthrop</dc:creator>
      <pubDate>Sat, 05 Dec 2026 03:44:00 +0000</pubDate>
      <link>https://dev.to/giiwinthrop/getting-a-competitors-google-ads-into-a-spreadsheet-20e</link>
      <guid>https://dev.to/giiwinthrop/getting-a-competitors-google-ads-into-a-spreadsheet-20e</guid>
      <description>&lt;p&gt;The Google Ads Transparency Center is the official record of the ads each verified advertiser runs on Search, YouTube, Shopping, Maps and Play, and for anyone needing more than a glance at one brand it is also a record most tediously read, since the website shows ads one card at a time and offers no export and no API. It would be another matter if Google published the archive as a download, but as it is not such, the practical alternative is to read the same public pages a logged-out visitor sees, which is what the tool in this article does.&lt;/p&gt;

&lt;p&gt;In the interest of disclosure, I built and maintain the scraper used below; it is a paid tool on Apify Store, priced at $1.50 per 1,000 ads, whilst the free Apify plan carries enough monthly credit to try it on a few thousand of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it collects
&lt;/h2&gt;

&lt;p&gt;For each ad the scraper records the advertiser's verified name and ID, the format, the domain it promotes, the first and last dates it was shown, the number of days it ran and the countries Google lists for it. Where Google's own preview of the ad contains them, it also records the headline, the description, the call to action, the landing page, the image links and the YouTube video, and an ad that Google keeps only as a rendered picture comes with the link to that picture and a note saying so. A website domain, an advertiser ID, a Transparency Center link or an advertiser's name all serve as input, and a domain returns the ads of every advertiser promoting it, which is how most brands with several legal entities and agencies are in actuality covered. The output arrives as a table that exports to CSV, Excel or JSON, which is the whole point for anyone whose competitive analysis lives in a spreadsheet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running it from the browser
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open the Actor page at &lt;a href="https://apify.com/giiwinthrop/google-ads-transparency-scraper" rel="noopener noreferrer"&gt;https://apify.com/giiwinthrop/google-ads-transparency-scraper&lt;/a&gt; and select the option to try it, which asks for a free Apify account.&lt;/li&gt;
&lt;li&gt;In the input form, enter one or more website domains, or paste advertiser IDs and Transparency Center links into the same field, and add company names in the field beneath it if the domain is not known.&lt;/li&gt;
&lt;li&gt;Set the maximum number of ads per domain or advertiser, which defaults to twenty in the form and can be raised to several thousand.&lt;/li&gt;
&lt;li&gt;Leave "Ad copy and media" switched on if headlines, landing pages and videos are wanted; switching it off gives a faster and cheaper run with only the dates, formats and advertisers.&lt;/li&gt;
&lt;li&gt;Start the run, wait for the table to fill, and export it in whichever format the rest of the work requires.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For watching a competitor's campaigns, the region, date, format and platform filters narrow a run to, for instance, video ads shown on YouTube in Canada during the past month, so a weekly scheduled run costs only as many results as the competitor actually put out.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running it from code
&lt;/h2&gt;

&lt;p&gt;The same run is available over Apify's API, which returns the results in the response once the run has finished. Replace the token placeholder with a personal API token from the Apify Console settings.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -X POST &lt;span class="s2"&gt;"https://api.apify.com/v2/acts/giiwinthrop~google-ads-transparency-scraper/run-sync-get-dataset-items"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer YOUR_APIFY_TOKEN"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"sources": ["nike.com"], "region": "US", "maxAdsPerSource": 50}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each item in the response is one ad, with fields such as &lt;code&gt;advertiserName&lt;/code&gt;, &lt;code&gt;format&lt;/code&gt;, &lt;code&gt;firstShown&lt;/code&gt;, &lt;code&gt;daysShown&lt;/code&gt;, &lt;code&gt;headline&lt;/code&gt; and &lt;code&gt;landingPageUrl&lt;/code&gt;, so the result drops straight into pandas, a database table or a Google Sheet without further cleaning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits worth knowing
&lt;/h2&gt;

&lt;p&gt;Google keeps many search text ads only as a rendered image, and the output flags whenever that is the case rather than presenting an empty headline as a missing one. The date filter reaches back only about twelve months, which is a limit of the Transparency Center itself, and older date ranges return no ads although the ads listed without a date filter still carry their original first-shown dates. The scraper reads public data only; it does not collect spend, impressions or anything behind a login, and whether that suits a given project is of no concern here, either way the limits are stated plainly on the Actor page.&lt;/p&gt;

&lt;p&gt;For anyone who needs to look at a single advertiser now and then, the Transparency Center website remains the sensible choice, and nothing above argues otherwise. Where the ads of several competitors have to be compared, counted or tracked over time, reading the public pages at a fixed price per ad is the more workable arrangement, and the steps above are all it takes to put that data into a spreadsheet.&lt;/p&gt;

</description>
      <category>googleads</category>
      <category>webscraping</category>
      <category>marketing</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Getting YouTube video data into a spreadsheet without the API quota</title>
      <dc:creator>Gii Winthrop</dc:creator>
      <pubDate>Sat, 05 Dec 2026 03:16:15 +0000</pubDate>
      <link>https://dev.to/giiwinthrop/getting-youtube-video-data-into-a-spreadsheet-without-the-api-quota-1m0e</link>
      <guid>https://dev.to/giiwinthrop/getting-youtube-video-data-into-a-spreadsheet-without-the-api-quota-1m0e</guid>
      <description>&lt;p&gt;The YouTube Data API is the official route to video statistics, and for anyone needing more than a handful of searches a day it is also the route most quickly exhausted, since a project's default quota of 10,000 units allows roughly one hundred search requests before it stops answering. It would be another matter if the quota were raised as a matter of course, but as it is not such, the practical alternative is to read the same public pages a logged-out visitor sees, which is what the tool in this article does.&lt;/p&gt;

&lt;p&gt;In the interest of disclosure, I built and maintain the scraper used below; it is a paid tool on Apify Store, priced at $2 per 1,000 results, whilst the free Apify plan carries enough monthly credit to try it on a couple of thousand of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it collects
&lt;/h2&gt;

&lt;p&gt;For each video the scraper records the title, the channel, the exact view count and like count, the comment count as YouTube displays it, the publish date, the duration, the full description and the hashtags. A search term, a channel URL or handle, a playlist or a single video link all serve as input, and channel inputs also produce one record with the channel's subscriber and video counts. The output arrives as a table that exports to CSV, Excel or JSON, which is in actuality the whole point for anyone whose analysis lives in a spreadsheet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running it from the browser
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open the Actor page at &lt;a href="https://apify.com/giiwinthrop/youtube-scraper" rel="noopener noreferrer"&gt;https://apify.com/giiwinthrop/youtube-scraper&lt;/a&gt; and select the option to try it, which asks for a free Apify account.&lt;/li&gt;
&lt;li&gt;In the input form, enter one or more search terms, or paste channel and playlist URLs into the field beneath them.&lt;/li&gt;
&lt;li&gt;Set the maximum number of results per source, which defaults to twenty and can be raised to several thousand.&lt;/li&gt;
&lt;li&gt;Leave "Scrape video details" switched on if exact likes, comment counts and dates are wanted; switching it off gives a faster run with only what YouTube's lists show.&lt;/li&gt;
&lt;li&gt;Start the run, wait for the table to fill, and export it in whichever format the rest of the work requires.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For monitoring a competitor's channel, the "Only videos published after" field accepts a period such as "7 days", and the scraper stops reading a channel as soon as its videos grow older than that, so a weekly scheduled run costs only as many results as the channel actually published.&lt;/p&gt;

&lt;h2&gt;
  
  
  Running it from code
&lt;/h2&gt;

&lt;p&gt;The same run is available over Apify's API, which returns the results in the response once the run has finished. Replace the token placeholder with a personal API token from the Apify Console settings.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -X POST &lt;span class="s2"&gt;"https://api.apify.com/v2/acts/giiwinthrop~youtube-scraper/run-sync-get-dataset-items"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Authorization: Bearer YOUR_APIFY_TOKEN"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"searchQueries": ["espresso machine review"], "maxResults": 20}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each item in the response is one video, with fields such as &lt;code&gt;viewCount&lt;/code&gt;, &lt;code&gt;likeCount&lt;/code&gt;, &lt;code&gt;commentCount&lt;/code&gt;, &lt;code&gt;publishedAt&lt;/code&gt; and &lt;code&gt;channelName&lt;/code&gt;, so the result drops straight into pandas, a database table or a Google Sheet without further cleaning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits worth knowing
&lt;/h2&gt;

&lt;p&gt;Comment counts are rounded by YouTube itself for large figures, and the output flags whenever that is the case rather than presenting a rounded number as an exact one. The category and keyword fields depend on what YouTube chooses to send a logged-out visitor, which in practice is about one video in four, and they are left empty otherwise. The scraper reads public data only; it does not collect comments, transcripts or anything behind a login, and whether that suits a given project is of no concern here, either way the limits are stated plainly on the Actor page.&lt;/p&gt;

&lt;p&gt;For anyone whose needs fit inside the official quota, the API remains the sensible choice, and nothing above argues otherwise. Where the quota runs out before the work does, reading the public pages at a fixed price per result is the more workable arrangement, and the steps above are all it takes to put that data into a spreadsheet.&lt;/p&gt;

</description>
      <category>youtube</category>
      <category>data</category>
      <category>webscraping</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
