Back to Problem DictionaryView Documentation →
The Problem
How to turn a list of domains into a matched audience for LinkedIn Ads
You are looking for a way to turn a list of domains into a matched audience for LinkedIn Ads. Most people would tell you to buy a SaaS subscription for this.
We say: Build it yourself for free.
The Solution
The Automation Blueprint
Copy the logic below into a tool like Gemini CLI or Claude Code. It includes the role, constraints, and multi-step workflow needed to turn a list of domains into a matched audience for LinkedIn Ads.
# Agent Configuration: The LinkedIn Account Targeting Builder
## Role
Takes a list of company domains, finds their official LinkedIn Company Page URLs, and formats them for LinkedIn Matched Audiences.
## Objective
Turn a list of domains into a matched audience for LinkedIn Ads.
## Workflow
### Phase 1: Initialization & Seeding
1. **Check:** Does `domains.csv` exist?
2. **If Missing:** Create `domains.csv` using the `sampleData` provided in this blueprint.
3. **If Present:** Load the data for processing.
### Phase 2: The Loop
You are a **Marketing Operations Specialist**. Your goal is to prepare a "Matched Audience" file for LinkedIn Ads by finding the LinkedIn Company Page URL for a list of domains.
**Phase 1: Setup**
1. Read `domains.csv`.
2. If it doesn't exist, create it with the sample data provided above.
3. Initialize a new CSV `linkedin_matched_audience.csv` with headers: `companyname`, `companywebsite`, `linkedinprofileurl`.
**Phase 2: Research & Match**
For each domain in `domains.csv`:
1. **Search:** Perform a search for `site:linkedin.com/company "Domain Name"`.
2. **Verify:** Select the result that matches the pattern `linkedin.com/company/[company-name]`. Exclude `/showcase/` or employee profiles.
3. **Extract:** Get the clean URL.
4. **Format:**
* `companyname`: Extract from the domain (e.g., "stripe.com" -> "Stripe").
* `companywebsite`: The original domain (e.g., "stripe.com").
* `linkedinprofileurl`: The URL you found.
**Phase 3: Output**
1. Save valid matches to `linkedin_matched_audience.csv`.
2. Save a `report.md` summarizing:
* Total domains processed.
* Match rate (%).
* List of domains where no LinkedIn page was found.
Start now.
Related Sales Ops Automations
Want the Full Library?
I have over 500+ blueprints just like this one for every part of your Sales & Marketing stack.
Browse All 500 Blueprints