Spiral gives your agent every tool with one account. Browse the tools →

Gemini CLI · SEO

How to Use LinkedIn company ads in Gemini CLI

Returns a company's LinkedIn ad copy, headlines, creative formats, media links, and ad count. Use it to review a known advertiser's messaging and creative mix.

Prompts to try with LinkedIn company ads in Gemini CLI

Copy an example into Gemini CLI, or ask in your own words.

Use LinkedIn company ads for hubspot.com and add a report to this project showing returned headlines, copy, creative formats, and media links.

LinkedIn company adsGemini CLI
Try asking
  • Use LinkedIn company ads for shopify.com and build a table in this project that groups ads by creative format and repeated headline.

  • Use LinkedIn company ads for salesforce.com and compare returned headlines and copy with the campaign positioning notes in this repository.

  • Use LinkedIn company ads to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from LinkedIn company ads and tell me what changed since last week.

How to set up LinkedIn company ads in Gemini CLI

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Or add it to ~/.gemini/settings.json yourself:

    gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start gemini and run:

    /mcp auth spiral
  3. Check it

    In Gemini CLI, run /mcp. From your shell:

    gemini mcp list

Use the Spiral skill

  1. Send Gemini CLI this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run LinkedIn company ads

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "adyntel/linkedin/company-ads",
        "input": {
          "company_domain": "<company_domain>"
        }
      }'

Then paste one of the prompts above: Gemini CLI finds LinkedIn company ads on Spiral, shows the price and runs it.

LinkedIn company ads providers and prices

Spiral runs LinkedIn company ads through Alexandria. Open a card for today's price, with every fee included.

AlexandriaSEO
Adyntel · LinkedIn ads for a company
adyntel/linkedin/company-ads

Settings you can ask for

Ask Gemini CLI for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Live adson or off

When true, only ads that are live. Omit it for the default, which is false.

Every API field of Adyntel · LinkedIn ads for a company is on its tool page: open its card above.

What can you do with LinkedIn company ads in Gemini CLI?

Build a searchable review of LinkedIn ad copy and creative assets in your project. Use returned records to compare advertisers, group repeated messages, and link each example to its media.

Compare competitor messaging

Collect ads from named competitors or a shared product topic. Compare headlines and copy to see which benefits each advertiser emphasizes.

Build a creative reference list

Organize returned image and video links by advertiser and message. Give a creative team concrete examples to review before drafting its own campaign.

Review webinar promotions

Find webinar offers in a company's ads or search the topic across advertisers. Compare event headlines, calls to action, and supporting copy.

Monitor changes in advertised offers

Compare repeated searches with earlier results to flag newly observed headlines and offers. Keep the advertiser and creative link beside each change.

Prepare an agency account review

Review a public business's ads or relevant category ads before an account meeting. Summarize messaging themes and creative formats using returned examples.

Find repeated creative concepts

Compare headlines, copy, and media URLs across returned ads. Separate repeated executions from distinct concepts when assembling a campaign review.

Questions about LinkedIn company ads in Gemini CLI

Can Gemini CLI use LinkedIn company ads?

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run LinkedIn company ads like any built-in tool.

How much does LinkedIn company ads cost in Gemini CLI?

Up to $0.0977704 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.

Do I need an Alexandria account to use LinkedIn company ads in Gemini CLI?

No. Spiral runs LinkedIn company ads on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up LinkedIn company ads in Gemini CLI?

About two minutes: add the server, then sign in, then check it.

Does Gemini CLI wait while LinkedIn company ads runs?

LinkedIn company ads runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.

How far back does LinkedIn's ad library go?

Ads remain available for one year after their last impression. The library therefore includes ads that have stopped running, alongside more recent activity.

How soon do new ads appear?

LinkedIn says ads typically appear shortly after their first impression. Its help page gives no fixed number of minutes or hours.

Does one response contain every matching ad?

Results are paginated. Use the continuation token to retrieve additional pages before treating the returned ads as the complete result.

Will the retrieved ads always match the displayed total?

Counts and retrievable records can differ. In Adyntel's September 2026 HubSpot test, pagination returned 1,167 ads against a displayed total of 1,409.

Does LinkedIn publish impression data for every ad?

LinkedIn documents estimated total impressions and country breakdowns for EU-targeted ads. That additional library information should not be assumed to appear in every ad search response.

Get started

Start using LinkedIn company ads in Gemini CLI

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Gemini CLI:

Set up Gemini CLI

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options