See llms.txt for all machine-readable content.

Back to Templates

Track weekly competitor Meta and Google ads with Apify, OpenAI and Sheets

Quick overview

This workflow runs every Monday and uses Apify to pull active Meta Ads Library ads and recent Google Ads Transparency ads for a list of competitors, uses OpenAI to extract hooks/offers and summarize weekly changes, stores results in Google Sheets, and emails the brief via Gmail.

How it works

  1. Runs every Monday at 9am and loads your competitor list and limits (country/region, ad caps, and long-runner thresholds).
  2. Fetches active Meta ads for all competitors with a Facebook Page using Apify’s Facebook Ads Library Scraper and normalizes the results, continuing even if the read fails.
  3. Fetches Google ads shown in the last 7 days for all competitors with a website using Apify’s Google Ads Transparency Scraper and normalizes the results, continuing even if the read fails.
  4. Reads the existing Ads and Briefs tabs from Google Sheets and classifies each ad as new, running, or stopped based on what was seen this week.
  5. Selects new ads and long-running unread ads, then uses OpenAI (with image + text when available, otherwise text-only) to extract a short hook and offer for each chosen ad.
  6. Uses OpenAI to summarize each competitor’s key angles and what shifted versus last week, then builds a combined brief (text and HTML) including notices about failed/capped reads.
  7. Updates the Ads tab (append or update by key), appends competitor rows to the Briefs tab in Google Sheets, and sends the HTML brief via Gmail (with optional disabled Slack/Telegram/Discord/Microsoft Teams outputs).

Setup

  1. Add an Apify API token as an HTTP Query Auth credential (name it token) and select it in both Apify HTTP Request steps for Meta and Google.
  2. Add your OpenAI credential for the OpenAI Chat Model used to extract hooks/offers and generate competitor summaries.
  3. Create a Google Sheet with Ads and Briefs tabs and the expected header columns, then replace REPLACE_WITH_YOUR_SHEET_ID in all Google Sheets steps.
  4. Add a Gmail credential and replace REPLACE_WITH_YOUR_EMAIL with your recipient address, or enable Slack/Telegram/Discord/Microsoft Teams steps and fill in their credentials and channel/chat/webhook details.
  5. Update the competitor list (Facebook Page URLs and website domains) and tuning values (max ads per competitor, long-runner days, ads read per competitor, country/region) in the settings step.