PlaybooksSales
Ad-Activity Trigger
Companies running ads about your topic on Meta and LinkedIn now, sized up, with their marketing lead to contact.
- Id
ad-activity-trigger- Version
- 1.0.0
- Category
- Sales
- Status
- Beta: it works, and may still change in a minor version
- Saved, it runs
- weekly, monthly
- Unit cap
- 2000 by default, 10 to 20000
Searches the Meta and LinkedIn ad libraries for ads that mention your words in the countries you choose. Each advertiser is matched to its website, by the ad's landing page where it has one, and its ads are counted: how many, in which libraries, since when. Companies are sized up, staffing agencies advertising jobs are left out, and a connected people provider adds the marketing lead. One row per company and contact, the most active advertisers first.
Use when someone sells to marketers and wants the companies spending on ads about their topic this month.
It can use a provider you connect in the console for finding people at a company, finding a person's email, checking an email address at the mailbox. Until one is connected, those columns stay empty and the run says so (contacts_not_connected); the rest of each row is filled.
It returns people: an owner or an admin of the account accepts its terms once, before its first run (POST /v1/attestations, or the console).
Run it with POST /v1/formulas/ad-activity-trigger/runs. How runs work is in Running a playbook; what a run costs is below.
Parameters
The fields of params, the Basics first. Only the required ones must be given; every other has a default. A field that is not listed is refused. The OpenAPI document has them as the type AdActivityTriggerParams.
| Parameter | Type | Required or default | What it is |
|---|---|---|---|
keywordsBasics | list of strings | required | What the ads are about. Words the ads say, each searched in each library, such as "payroll software".1 or more, up to 5, each up to 100 characters. |
countriesBasics | list of strings | ["US"] | Countries. Where the ads are shown, as two-letter codes such as US or GB.1 or more, up to 5. |
platformsBasics | list of strings | ["meta","linkedin"] | Ad libraries. Meta covers Facebook and Instagram.One of meta, linkedin.1 or more. |
started_within_daysBasics | integer | 90 | Ads started within (days). Meta says when each ad started; older ones are left out. LinkedIn's library does not say, and its ads are kept.at least 1, at most 365. |
ads_per_searchFilters | integer | 30 | Ads read per search. How many ads to read for each phrase, country and library.at least 5, at most 100. |
min_adsFilters | integer | 1 | Least ads. Ads a company needs to be running to be listed.at least 1. |
company_sizeFilters | object (min, max) | {"min":2,"max":10000} | Company size (employees). Companies whose size is not known are kept. |
exclude_companiesFilters | list of strings | [] | Companies to leave out. Names or domains, such as your existing customers.up to 5000, each up to 200 characters. |
buyer_titlesEnrichment | list of strings | ["Chief Marketing Officer","VP Marketing","Head of Marketing","Marketing Director","Head of Growth"] | Who to contact. The roles a connected people provider looks for at each company.each up to 80 characters. |
contacts_per_companyEnrichment | integer | 2 | Contacts per company. 0 keeps one row per company.at least 0, at most 5. |
require_verified_emailEnrichment | boolean | true | Only addresses that pass the check. Keeps addresses whose domain takes mail, and those a verification provider confirmed. |
max_resultsOutput | integer | 200 | Most rows. The run stops at this many rows, the most active advertisers first.at least 1, at most 2000. |
Presets
Ready-made answers to start from: give them as params, with any of your own beside them.
Campaigns started this month new-campaigns
{
"keywords": [
"payroll software"
],
"started_within_days": 30,
"platforms": [
"meta"
]
}Five or more ads running heavy-spenders
{
"keywords": [
"payroll software"
],
"min_ads": 5
}Columns
The columns of each row’s data, in order; rows also carry a score from 0 to 100, and come best first. A value that is not known is null.
| Column | Label | Type | Shown by default |
|---|---|---|---|
company_name | Advertiser | string | yes |
company_domain | Domain | string | yes |
industry | Industry | string | yes |
employees | Employees | string | yes |
headquarters | Headquarters | string | no |
ads_found | Ads found | integer | yes |
libraries | Ad libraries | list | yes |
first_ad_started | Earliest ad started | date | yes |
ad_title | Ad headline | string | no |
ad_text | Ad text | string | no |
landing_page | Landing page | url | yes |
ad_url | Ad in the library | url | yes |
advertiser_names | Advertising as | list | no |
contact_name | Contact | string | yes |
contact_title | Contact title | string | yes |
contact_email | yes | ||
email_status | Email status | string | yes |
contact_profile_url | Profile | url | no |
score | Score | number | yes |
Example request
# Start the run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/formulas/ad-activity-trigger/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"params":{"keywords":["payroll software","HR software"],"ads_per_search":30,"countries":["US"],"platforms":["meta","linkedin"],"started_within_days":90,"min_ads":1,"company_size":{"min":2,"max":10000},"exclude_companies":[],"buyer_titles":["Chief Marketing Officer","VP Marketing","Head of Marketing","Marketing Director","Head of Growth"],"contacts_per_company":2,"require_verified_email":true,"max_results":200},"unit_cap":2000}'
# Follow it until it ends, then read its rows, with the id the first call answered
curl "https://api.enrichednow.com/v1/formula-runs/$RUN_ID?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
curl "https://api.enrichednow.com/v1/formula-runs/$RUN_ID/rows?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start the run, wait for it to end, and get its rows
params = {
"keywords": ["payroll software", "HR software"],
"ads_per_search": 30,
"countries": ["US"],
"platforms": ["meta", "linkedin"],
"started_within_days": 90,
"min_ads": 1,
"company_size": {"min": 2, "max": 10000},
"exclude_companies": [],
"buyer_titles": [
"Chief Marketing Officer",
"VP Marketing",
"Head of Marketing",
"Marketing Director",
"Head of Growth",
],
"contacts_per_company": 2,
"require_verified_email": True,
"max_results": 200,
}
result = client.run_formula("ad-activity-trigger", params, unit_cap=2000)
print(result.run.id, result.run.status, result.run.rows_total, result.run.units_spent)
# Read its rows, best first: pages are fetched as you go
for row in result:
print(row.data)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start the run, wait for it to end, and get its rows
const params = {
keywords: ["payroll software", "HR software"],
ads_per_search: 30,
countries: ["US"],
platforms: ["meta", "linkedin"],
started_within_days: 90,
min_ads: 1,
company_size: { min: 2, max: 10000 },
exclude_companies: [],
buyer_titles: [
"Chief Marketing Officer",
"VP Marketing",
"Head of Marketing",
"Marketing Director",
"Head of Growth",
],
contacts_per_company: 2,
require_verified_email: true,
max_results: 200,
};
const { run, rows } = await client.runFormula("ad-activity-trigger", params, { unitCap: 2000 });
console.log(run.id, run.status, run.rows_total, run.units_spent);
// Read its rows, best first: pages are fetched as you go
for await (const row of rows) console.log(row.data);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Minute)
defer cancel()
// Start the run, wait for it to end, and get its rows
params := map[string]any{"keywords": []any{"payroll software", "HR software"}, "ads_per_search": 30, "countries": []any{"US"}, "platforms": []any{"meta", "linkedin"}, "started_within_days": 90, "min_ads": 1, "company_size": map[string]any{"min": 2, "max": 10000}, "exclude_companies": []any{}, "buyer_titles": []any{"Chief Marketing Officer", "VP Marketing", "Head of Marketing", "Marketing Director", "Head of Growth"}, "contacts_per_company": 2, "require_verified_email": true, "max_results": 200}
run, rows, err := client.RunFormula(ctx, "ad-activity-trigger", params, &enrichednow.RunFormulaParams{UnitCap: 2000})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RowsTotal, run.UnitsSpent)
// Read its rows, best first: pages are fetched as you go
for rows.Next() {
fmt.Println(string(rows.Current().Data))
}
if err := rows.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.fasterxml.jackson.databind.ObjectMapper;
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.FormulaResult;
import com.enrichednow.FormulaRunOptions;
import com.enrichednow.models.FormulaRow;
import java.util.Map;
public class Run {
public static void main(String[] args) throws Exception {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start the run, wait for it to end, and get its rows
FormulaResult result = client.runFormula("ad-activity-trigger", new ObjectMapper().readValue("{\"keywords\":[\"payroll software\",\"HR software\"],\"ads_per_search\":30,\"countries\":[\"US\"],\"platforms\":[\"meta\",\"linkedin\"],\"started_within_days\":90,\"min_ads\":1,\"company_size\":{\"min\":2,\"max\":10000},\"exclude_companies\":[],\"buyer_titles\":[\"Chief Marketing Officer\",\"VP Marketing\",\"Head of Marketing\",\"Marketing Director\",\"Head of Growth\"],\"contacts_per_company\":2,\"require_verified_email\":true,\"max_results\":200}", Map.class), FormulaRunOptions.builder().unitCap(2000).build());
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().rowsTotal() + " " + result.run().unitsSpent());
// Read its rows, best first: pages are fetched as you go
for (FormulaRow row : result.rows()) {
System.out.println(row.data());
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow formulas run ad-activity-trigger --params-json '{"keywords":["payroll software","HR software"],"ads_per_search":30,"countries":["US"],"platforms":["meta","linkedin"],"started_within_days":90,"min_ads":1,"company_size":{"min":2,"max":10000},"exclude_companies":[],"buyer_titles":["Chief Marketing Officer","VP Marketing","Head of Marketing","Marketing Director","Head of Growth"],"contacts_per_company":2,"require_verified_email":true,"max_results":200}' --unit-cap 2000Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
{
"name": "run_formula",
"arguments": {
"formula_id": "ad-activity-trigger",
"params": {
"keywords": [
"payroll software",
"HR software"
],
"ads_per_search": 30,
"countries": [
"US"
],
"platforms": [
"meta",
"linkedin"
],
"started_within_days": 90,
"min_ads": 1,
"company_size": {
"min": 2,
"max": 10000
},
"exclude_companies": [],
"buyer_titles": [
"Chief Marketing Officer",
"VP Marketing",
"Head of Marketing",
"Marketing Director",
"Head of Growth"
],
"contacts_per_company": 2,
"require_verified_email": true,
"max_results": 200
}
}
}It starts a full run with the answers the sample rows below were made with and the default unit cap, waits for it, and reads its rows a page at a time. The key is read from an environment variable. The MCP tab is the same run asked of an agent connected to the MCP server, which runs a preview first.
Example response
The data of the first 3 rows a real run returned with these answers on 2026-11-24: it ended partial with 27 rows, after 316 scraper calls charged 315 units. Text over 160 characters is cut here and ends with … [truncated]; the API returns every value whole.
The columns about a person — contact_name, contact_title, contact_email, contact_profile_url — say hidden on this page here: this page never shows who someone is. A run of yours returns them.
[
{
"company_name": "Fuse Workforce Management",
"company_domain": "fuseworkforce.com",
"industry": null,
"employees": null,
"headquarters": null,
"ads_found": 5,
"libraries": [
"linkedin"
],
"first_ad_started": null,
"ad_title": "Tyrant Boss Overwhelms the Office",
"ad_text": "If you need to see your employees sitting at a desk to know they're working, you have a bigger problem than hybrid work.…",
"landing_page": null,
"ad_url": "https://www.linkedin.com/ad-library/detail/1695033216",
"advertiser_names": [
"Fuse Workforce Management"
],
"contact_name": null,
"contact_title": null,
"contact_email": null,
"email_status": null,
"contact_profile_url": null,
"score": 25
},
{
"company_name": "Deputy.com",
"company_domain": "deputy.com",
"industry": null,
"employees": null,
"headquarters": null,
"ads_found": 4,
"libraries": [
"meta"
],
"first_ad_started": "2026-11-05",
"ad_title": "Employee Scheduling, HR & Payroll Software — Deputy",
"ad_text": "Meet Gio, guest services at @260samplesale in NYC. 🙌\n\nHis goal is to give every guest the best experience. Deputy helps by handling the admin so he has more … [truncated]",
"landing_page": "https://www.deputy.com/",
"ad_url": "https://www.facebook.com/ads/library/?id=1102481332552639",
"advertiser_names": [
"Deputy.com"
],
"contact_name": null,
"contact_title": null,
"contact_email": null,
"email_status": null,
"contact_profile_url": null,
"score": 25
},
{
"company_name": "Patriot Software",
"company_domain": "patriotsoftware.com",
"industry": "Information Technology",
"employees": "51 to 200",
"headquarters": "4883 Dressler Rd. NW Canton, Ohio 44718",
"ads_found": 4,
"libraries": [
"meta"
],
"first_ad_started": "2026-10-29",
"ad_title": "Patriot Software",
"ad_text": "Run payroll in minutes or automate recurring payroll runs with AutoPay when you sign up for Patriot Software.",
"landing_page": "https://www.patriotsoftware.com/lp-go-payroll/stealing-time",
"ad_url": "https://www.facebook.com/ads/library/?id=2350096965742955",
"advertiser_names": [
"Patriot Software"
],
"contact_name": null,
"contact_title": null,
"contact_email": "hidden on this page",
"email_status": "risky",
"contact_profile_url": null,
"score": 40
}
]Each row also has its id, its score, when it was first seen and its evidence: where each value came from. The run and its rows are described in Running a playbook.
Pricing
A run costs the units of the work it does, and nothing on top: each scraper call it makes is charged at that scraper's rate, when the call ends ok or partial. It never spends past its unit cap: 2000 units unless you give another (at least 10, at most 20000).
With the answers above, a run is estimated at about 248 units for about 27 rows, and at most 1080: 4 searches and 27 lookups across 3 sources, about 27 rows. An estimate for no history; POST /v1/formulas/ad-activity-trigger/estimate gives yours, free.
A preview, mode: preview, is the first 10 rows, charged at what they cost: about 223 units with the answers above. POST /v1/formulas/ad-activity-trigger/estimate with mode: preview gives yours, free.
It can use a provider you connect for finding people at a company, finding a person's email, checking an email address at the mailbox; until one is connected, those columns stay empty and the rest of the row is filled.
How a playbook is charged has the rule for every playbook.