SCALIX help

← All tools

competitor_ads_document

Competitor research read low risk

Part of the Competitor Ads Agent.

What it does

A competitor's ads in full, as the outline of ONE PDF that Claude builds with its own PDF tool and, when the user asks, shares in Slack with the user's Slack connector. Returns `document`: a title, a summary, notes, and per library the ads as cards. A Google card carries every wording variation as a link to Google's own picture of the ad (the picture IS the ad), the dates shown, the topic, the countries it ran in, the audience targeting, the IDs and a link to the ad; ads from another advertiser are labelled. A LinkedIn card carries the page logo and name ('Promoted'), the full post text (`lead`, shown above the pictures as LinkedIn does), every image or carousel card, the headline, the button, who paid, EU data where LinkedIn publishes it, and a link to the ad. Also returns `file_name`, `slack_message` (the text to post with the file), `network_hosts` (what Claude's code must reach to download the pictures and upload to Slack) and `counts`; the recipe for building and sharing the PDF is the first warning. Data comes from competitor_get_transparency_ads and competitor_get_linkedin_ads, so it needs SCALIX_SEARCHAPI_API_KEY. Read-only: Scalix renders, downloads and stores nothing.

When to use it

Use when the user asks for a competitor's ads as a PDF or a document file: build the PDF from `document` following the recipe. To send the ads to Slack, use competitor_post_ads_to_slack (one PDF made by Scalix) instead. Get the competitor's Google advertiser ids from competitor_find_google_advertisers when you can.

Inputs

NameTypeRequiredDescription
domainstringnoThe competitor's website, e.g. 'rillet.com'. Used for Google ads when no advertiser ids are given, and as the LinkedIn page name when none is given.
google_advertiser_idsarray<string>noThe competitor's own Google advertiser ids (AR…), from competitor_find_google_advertisers. Precise: only these accounts' ads.
linkedin_pagestringnoThe competitor's LinkedIn page name, e.g. 'Rillet'. Defaults to the website's brand.
linkedin_aliasesarray<string>noOther LinkedIn page names that really are the competitor.
regionstringnoGoogle Transparency Center region, default 'anywhere'.
countriesarray<string>noISO two-letter countries for LinkedIn ads, e.g. ['US']. Omit for all.
limitintegernoAds per platform, 1-50 (default 10), the most recent first.
platformsarray<string>no'google', 'linkedin' or both (default).

Safeguards

Policy

Copy every ad exactly as its library has it: never change an ad's words or redraw its picture. A Google ad from another advertiser is labelled and never presented as the competitor's. Competitors' ad copy is for analysis only and must never be reproduced in the client's own ads. Share the PDF only in the channel the user named.

Reminder

Read-only: Scalix pulls the ads and returns the outline; Claude builds the PDF and shares it with the user's Slack connector. Nothing is stored on Scalix.

Errors

Error classMeansWhat to doRetry
invalid_argumentNo competitor was given, or platforms held something other than google and linkedin.Pass the competitor's website (and its Google advertiser ids or LinkedIn page name when known); platforms is 'google', 'linkedin' or both.no

Edge cases

  • No ads from either library: there is nothing to build or send, and the result says so.
  • A library that cannot be read becomes a note in the document; the other library's ads are still there.
  • Claude's code must be allowed to reach `network_hosts` (Claude's code execution network settings); a blocked picture or upload is reported, never silently left out.
  • LinkedIn picture links are signed and can expire after some days: build the PDF right away. The ad links do not expire.
  • A LinkedIn post shown only as LinkedIn's cut-short preview carries a note; the full text is in the ad link.
  • A large pull (50 ads per library) takes Claude longer to build; the default is 10.