<?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: Tha Thu</title>
    <description>The latest articles on DEV Community by Tha Thu (@tha_thu_bc3fd6268bcbbaf06).</description>
    <link>https://dev.to/tha_thu_bc3fd6268bcbbaf06</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%2F4082702%2F84faf2dc-a39a-4d97-8fd8-2b8ce12b1334.jpg</url>
      <title>DEV Community: Tha Thu</title>
      <link>https://dev.to/tha_thu_bc3fd6268bcbbaf06</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tha_thu_bc3fd6268bcbbaf06"/>
    <language>en</language>
    <item>
      <title>Automate Meta Ads Analysis with n8n, Apify, and Google Sheets</title>
      <dc:creator>Tha Thu</dc:creator>
      <pubDate>Tue, 18 Aug 2026 07:17:37 +0000</pubDate>
      <link>https://dev.to/tha_thu_bc3fd6268bcbbaf06/automate-meta-ads-analysis-with-n8n-apify-and-google-sheets-162c</link>
      <guid>https://dev.to/tha_thu_bc3fd6268bcbbaf06/automate-meta-ads-analysis-with-n8n-apify-and-google-sheets-162c</guid>
      <description>&lt;p&gt;Competitive ad research should produce useful creative insights—not another long session of opening Meta Ad Library tabs, downloading images, and copying notes into a spreadsheet. &lt;strong&gt;Meta Ads Analyzer to Google Sheets&lt;/strong&gt; turns that manual work into a repeatable pipeline. Automated Meta ads analysis lets you enter a Meta Ad Library or Facebook Page URL, collect ads through an Apify Actor, analyze the copy and image creatives with AI, and send a structured report to Google Sheets.&lt;/p&gt;

&lt;p&gt;This n8n workflow is built for performance marketers, media buyers, creative strategists, agencies, and ecommerce teams that want to research ads more consistently. It does not merely collect ad links. It creates a dataset you can filter, compare, and turn into better campaign hypotheses.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F72dfhbub6wl1lmay3kre.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F72dfhbub6wl1lmay3kre.png" alt=" " width="800" height="246"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How automated Meta ads analysis works
&lt;/h2&gt;

&lt;p&gt;The workflow accepts one or more source URLs, with one URL per line, then performs the following steps. This automated Meta ads analysis process keeps the research trail consistent from collection to reporting:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Retrieves ad data using a dedicated &lt;strong&gt;Apify Actor&lt;/strong&gt; for Meta Ads.&lt;/li&gt;
&lt;li&gt;Calculates each ad's runtime and ranks ads to surface noteworthy examples.&lt;/li&gt;
&lt;li&gt;Caps the number of ads to analyze so usage remains controlled.&lt;/li&gt;
&lt;li&gt;Keeps image-based ads, downloads their creatives, and uploads the image files to Google Drive.&lt;/li&gt;
&lt;li&gt;Uses OpenAI to review the ad copy: target audience, intent, value proposition, messaging angle, tone, calls to action, strengths, weaknesses, and a practical improvement.&lt;/li&gt;
&lt;li&gt;Uses AI vision to review the creative: product, design style, dominant colors, visual hierarchy, setting, and advertising angle.&lt;/li&gt;
&lt;li&gt;Combines the resulting data and appends an organized report to Google Sheets.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The outcome is an ad-research dashboard instead of a scattered list of URLs. Each row can include the ad ID, brand, category, primary text, headlines, landing-page link, delivery platforms, runtime, active status, AI copy analysis, creative link, and visual analysis.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why use an Apify Actor for automated Meta ads analysis?
&lt;/h2&gt;

&lt;p&gt;The difficult part of competitor research is rarely viewing a single ad. The challenge is turning ad-library results into data that can be reviewed systematically. The Apify Actor in this workflow handles the collection layer: you provide a Facebook Page URL or a Meta Ad Library URL, and it returns the input that n8n can filter, enrich, and report on.&lt;/p&gt;

&lt;p&gt;That gives you one connected workflow. With automated Meta ads analysis, the handoff between data collection and creative review no longer depends on manual copying:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Meta Ad Library / Facebook Page URL
        ↓
Your Apify Actor
        ↓
n8n filters, ranks, and normalizes ads
        ↓
OpenAI analyzes copy and images
        ↓
Google Drive + Google Sheets report
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Rather than spending time transferring data between browser tabs, your team can focus on the work that matters: spotting winning patterns, comparing competitors' positioning, and turning observations into new creative briefs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need before you start automated Meta ads analysis
&lt;/h2&gt;

&lt;p&gt;The workflow is designed so every user connects their own accounts. Before running it, create and assign these four n8n credentials:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Apify API/OAuth&lt;/strong&gt; for the &lt;code&gt;Retrieve Meta Ads from Apify&lt;/code&gt; node.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OpenAI API&lt;/strong&gt; for copy and creative analysis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google Drive OAuth2&lt;/strong&gt; for storing downloaded ad images.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google Sheets OAuth2&lt;/strong&gt; for writing the final report.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then choose the target spreadsheet in &lt;code&gt;Append Ad Report to Google Sheets&lt;/code&gt;. You can also select a dedicated Drive folder in &lt;code&gt;Upload Image to Google Drive&lt;/code&gt; so research assets stay separate from the rest of your files.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Do not paste API keys into a Form or Set node. Use n8n Credentials instead. It is safer and makes account access easier to manage later.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How to use the automated Meta ads analysis workflow
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Open the form and add ad sources
&lt;/h3&gt;

&lt;p&gt;The workflow starts with the &lt;code&gt;Receive Meta Ad URLs&lt;/code&gt; form. In &lt;strong&gt;Meta Ad Library URL or Facebook Page URL&lt;/strong&gt;, paste one or more URLs. Put each source on a separate line.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://www.facebook.com/your-competitor-page
https://www.facebook.com/ads/library/?active_status=active&amp;amp;ad_type=all&amp;amp;...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use a Facebook Page URL when you want a quick view of a particular brand's ads. Use a Meta Ad Library URL when you have already narrowed the research by country, ad status, delivery platform, media type, or keyword.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Set sensible analysis limits
&lt;/h3&gt;

&lt;p&gt;Open the &lt;code&gt;Prepare Search Settings&lt;/code&gt; node. The workflow starts with conservative defaults:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;max_ads = 3&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;max_images_per_ad = 1&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is an excellent first-run configuration: it analyzes up to three ads and one image per ad. Once you have verified that your credentials, Drive folder, prompts, and spreadsheet output work as expected, raise either value to expand your research.&lt;/p&gt;

&lt;p&gt;The limits are intentional. They help you inspect the most relevant examples first while managing AI usage, Google Drive storage, and operating costs.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Tailor the AI prompts to your market
&lt;/h3&gt;

&lt;p&gt;The same settings node contains two ready-to-use prompts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;copy_analysis_prompt&lt;/code&gt; asks for the audience, intent, value proposition, angle, tone, CTA, strengths and weaknesses, plus an improvement.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;image_analysis_prompt&lt;/code&gt; asks for the product, design, colors, visual hierarchy, setting, and advertising angle.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Customize the prompts for your category. An ecommerce team might ask AI to pay extra attention to offers, bundles, social proof, and benefit clarity. A SaaS team might prioritize pain points, proof, objections, and demo or trial calls to action.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Test with one URL first
&lt;/h3&gt;

&lt;p&gt;For the first run, use a single URL and keep the default limits. Confirm that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The Apify Actor returns ad data.&lt;/li&gt;
&lt;li&gt;Downloaded images appear in the expected Google Drive folder.&lt;/li&gt;
&lt;li&gt;Google Sheets receives the intended columns and links.&lt;/li&gt;
&lt;li&gt;The AI output is in the right language and has the level of depth you need.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After that, add more sources or increase &lt;code&gt;max_ads&lt;/code&gt; and &lt;code&gt;max_images_per_ad&lt;/code&gt; as appropriate.&lt;/p&gt;

&lt;p&gt;Download workflow &lt;a href="https://files.catbox.moe/r16d6f.json" rel="noopener noreferrer"&gt;https://files.catbox.moe/r16d6f.json&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>nocode</category>
      <category>socialmedia</category>
    </item>
  </channel>
</rss>
