Ads
Run paid ads on the ad accounts your company already has. Connect them, research what works, create campaigns, cap spending, and track results.
Run paid ads on the ad accounts your company already has, on Google, Meta, LinkedIn, TikTok, and other platforms. Managed Google Ads provisioning is limited to selected companies. Your agent researches what works, sets up campaigns, keeps spending under a daily limit you control, and reports how they perform.
Connecting accounts and anything that spends money require a company admin. Any member can see accounts, campaigns, and results.
Connect Your Ad Accounts
Your agent can connect Google Ads, Meta, LinkedIn, TikTok, Pinterest, X, and OpenAI ad accounts. Connecting one needs you to sign in to the ad platform. Your agent hands you the link.
X Ads requires a connected X social account in the same company. Connect X
first with social_accounts_connect, then call ads_accounts_connect with
platform: "xads". It uses your default X account, or your only connected X
account. If several are connected without a default, pass source_resource_id
from social_accounts to choose one.
In Cofounder's Social app, open your X account or choose X under Add account. The X Ads section shows its separate authorization. Authorize at X, then return to Cofounder to choose available ad accounts. Unavailable accounts cannot be selected. If no accounts are returned, use Check access again; an empty list does not explain why access is unavailable.
Your agent can inspect the same choices with ads_accounts_list, passing the
X account's source_resource_id, and save a nonempty ad_account_ids selection
with ads_accounts_connect. The provider may discover or sync reachable ad
accounts during authorization, before you save a selection. Connecting or
selecting accounts does not create ads or approve spending.
If the company has more than one account, your agent picks the one each
campaign runs on. Every ads command names an account by the resource_id
that ads_accounts_list returns. The only exception is ad_account_ids
when connecting, which takes the ad platform's own account IDs.
For a connected Meta account, your agent can also see the account's business-verification facts when Meta reports them. A missing fact is unknown, not an approval.
Inspect Website Tracking
Your agent can inspect the tracking tags and conversion destinations for a connected Meta or Google Ads account. Any company member can read them.
cofounder ads tracking tags list --resource <resource_id>
cofounder ads tracking tags get --resource <resource_id> --tag-id <tag_id>
cofounder ads conversions destinations list --resource <resource_id>The matching MCP tools are ads_tracking_tags_list, ads_tracking_tags_get,
and ads_conversions_destinations_list. List results are paginated; pass
page.next_cursor as --cursor to continue.
The tag detail includes its base installation code and available conversion definitions. A Google tag's website identifier can differ from its tag ID; its website events can also have conversion labels. Google conversion destinations are limited to the selected advertiser's own definitions. Shared manager-owned definitions are not available through these reads. An account without Google conversion tracking returns an empty destination list with a notice.
These reads do not install code, send test events, or change campaign bidding. An active tag is not proof that your website sends conversions. A reported last-fired time covers every website using the tag. A destination's category does not tell you whether it accepts website events or server uploads.
For installation, ask your agent to read the cofounder-ads-measurement skill.
On supported Next.js sites, @cofounder/ads-tracking installs the existing
marketing template's Meta Pixel and Google Tag Manager loader. Connect it to
the site's advertising consent control. Keep conversion events in the site's
existing PostHog, GTM, or Meta implementation and emit them after a successful
signup, purchase, or other chosen business action.
Create a Website Lead Action
When available for the company, an admin can create a secondary website lead action for a managed Google advertiser:
cofounder ads tracking website-lead-actions create \
--resource <resource_id> \
--name <unique_action_name>Google creates the action in the selected advertiser's own conversion account, including when conversion tracking has not yet been enabled for that advertiser. Shared manager-owned conversion accounts and linked Google accounts are not supported by this operation. Google action names are unique, and creation is not safe to retry after an uncertain result. Inspect the returned action ID with the lead measurement check before installing it. The action is secondary: it appears in All conversions and is excluded from standard bidding goals. Google may create default category and origin goal records when it creates the action, but this call does not add the action to a custom conversion goal or configure campaign-specific goals. It does not install code or prove that the site sent the event or that Google attributed it.
These tools are not available to every company yet. When available, an admin can set the selected action as primary or secondary after reviewing its advertiser-wide effect. This affects every campaign using the action. A primary action can count in Conversions and standard bidding wherever its category and origin goal is biddable; secondary actions remain in All conversions:
cofounder ads tracking conversion-actions primary update \
--resource <resource_id> \
--action-id <action_id> \
--primary-for-goalCampaign goal settings are a separate explicit choice. Set the lead-form goal for one campaign to biddable or non-biddable with an explicit campaign scope. This applies to every primary action with that category and origin in the campaign:
cofounder ads campaigns lead-goals set \
--resource <resource_id> \
--campaign-id <campaign_id> \
--action-id <action_id> \
--goal-config-level CAMPAIGN \
--biddableSetting CAMPAIGN disconnects that campaign from future account-default goal
updates. The operation changes only the selected WEBSITE /
SUBMIT_LEAD_FORM goal and preserves other goals. It refuses campaigns with a
custom conversion goal or unknown custom-goal membership. Neither operation
changes a bidding strategy, budget, or campaign status.
Send Server Conversions
An admin can create a Meta pixel with ads_tracking_tags_create or a Google
upload action with ads_conversions_destinations_create. Google creation
requests secondary status; a reused action retains its existing settings.
Website tags and upload actions are separate destinations.
cofounder ads tracking tags create --resource <meta_resource_id> --name "Website pixel"
cofounder ads conversions destinations create --resource <google_resource_id> --name "Confirmed signups" --category CompleteRegistrationads_conversions_send sends up to 100 events to one destination verified
against the selected advertiser. Supply stable event IDs, original occurrence
times, explicit consent and permitted matching identifiers. Inspect the
response's outcome, accepted/failed counts and failures even on HTTP 200.
Denied ad-data consent skips delivery. Provider acceptance does not prove
attribution. Preserve IDs and times after uncertain delivery; never undo a
purchase because tracking failed.
Replace the event ID, time, URL and permitted matching data with the original business event before sending:
cofounder ads conversions send --resource <resource_id> --destination-id <destination_id> \
--consent '{"ad_user_data":"GRANTED","ad_personalization":"GRANTED"}' \
--events '[{"event_id":"signup:<id>","event_name":"CompleteRegistration","occurred_at":"<original-ISO-time>","action_source":"web","source_url":"https://example.com/signup","user":{"email":"<permitted-email>"}}]'For a company site, ads_conversions_site_setup saves or reuses one site-bound
ads:conversions key and installs server-only settings in its Vercel Production
environment. Install @cofounder/ads-conversions, call sendAdConversion or
sendAdConversions from the existing successful business-action handler, then
deploy the site. A batch has up to 100 events, all for the configured destination
and one consent decision. Setup does not deploy. Keep all COFOUNDER_ADS_*
settings server-only. The key can submit conversions to eligible company
advertisers, but cannot call ordinary company operations.
Setup retries reuse the saved key. Rotate explicitly with
ads_conversions_site_rotate and the current expected_key_id. The previous
key remains active for the running deployment. Deploy the new Vercel settings,
reapply affected PostHog destinations, then explicitly revoke the previous key.
cofounder ads conversions site setup --resource <resource_id> --app-binding-id <site_binding_id> --destination-id <destination_id>Rotation uses the current key ID as a retry guard:
cofounder ads conversions site rotate --resource <resource_id> --app-binding-id <site_binding_id> --destination-id <destination_id> --expected-key-id <current_key_id>Meta's ads_conversions_quality_get reads matching scores and browser/server
coverage for a selected pixel. It is pixel-wide, not a measurement of one site.
cofounder ads conversions quality get --resource <resource_id> --destination-id <pixel_id>Google Data Manager accepts uploads for asynchronous processing. Acceptance does not mean processing completed or attribution occurred, and the current Zernio API does not expose Google request status.
Meta pixels can be inspected with ads_tracking_tags_diagnostics_get. Google
server delivery requires an enabled, advertiser-owned UPLOAD_CLICKS action;
shared-manager and WEBPAGE actions are not supported for uploads.
cofounder ads tracking tags diagnostics get --resource <resource_id> --tag-id <pixel_id>Use Existing PostHog Events
Keep the canonical conversion object on the existing successful business event:
ad_conversion, with top-level ad_user_data and ad_personalization consent
states. Managed PostHog forwarding targets that event through the same scoped
Cofounder endpoint used by the site's server helper, keeping shared Ads provider
credentials private. An admin explicitly authorizes destination-management
permissions for the selected managed analytics project, then configures one
destination using a stable setup_key. The same key selects it for retries,
reads, updates and deletion. See the cofounder-ads-measurement skill.
cofounder ads conversions posthog authorize --resource <ads_resource_id> --app-binding-id <site_binding_id> --destination-id <destination_id> --analytics-resource-id <analytics_resource_id>
cofounder ads conversions posthog setup --resource <ads_resource_id> --app-binding-id <site_binding_id> --analytics-resource-id <analytics_resource_id> --setup-key <stable_uuid> --destination-id <destination_id> --event-name <existing_event_name>
cofounder ads conversions posthog get --resource <ads_resource_id> --app-binding-id <site_binding_id> --analytics-resource-id <analytics_resource_id> --setup-key <stable_uuid>
cofounder ads conversions posthog delete --resource <ads_resource_id> --app-binding-id <site_binding_id> --analytics-resource-id <analytics_resource_id> --setup-key <stable_uuid>If authorization returns a consent link, an admin opens it and retries
authorization. The destination forwards the existing event's ad_conversion
object after checking its top-level ad-data consent properties. Deleting the
destination leaves the site's conversion key active.
Use one server delivery route per event and advertiser destination. Verify business success, PostHog capture and provider receipt separately. Google upload acceptance is not completed processing or attribution.
Research Hooks and References
Before making creatives, your agent can study live Meta ads in your space: real examples, opening hooks, creative prompts, and audience patterns. Research uses ad-research credits. It doesn't make images or video. Your agent uses Media for that.
Your agent puts your product, audience, relevant URLs, and dates in the question. An answer can take up to twenty minutes, and your agent checks back for it. Follow-up questions continue the same conversation. A retried question returns the saved answer instead of charging twice.
A reference ad that has run for a long time is a lead, not proof it makes money.
Research Keywords
With a Google Ads account connected, your agent looks up search terms before writing ads. It suggests keywords from seed words, a web page, or both, and returns search volume and competition for up to 1,000 keywords. Google reports bid and cost figures in millionths of the account currency (1,000,000 is one dollar on a USD account).
Create a Campaign
On a connected Meta account, your agent creates the campaign, ad set, and ad in one step. The creative is a public image, or a public video with a call to action.
New campaigns start paused. Nothing spends until your agent resumes one.
The result can include notices suggesting more specific ad text. They're
suggestions only and don't launch anything.
Meta post boosts request a paused campaign. After creating a boost, check its campaign status before resuming it. Repeating the same request returns the original result and doesn't pause a campaign you resumed afterward. If Cofounder can't confirm the new campaign is paused, its budget remains committed. Check the campaign in Meta and pause it before continuing.
The first Meta resume commits the campaign's spend before switching it on. Pause and resume use the provider's timestamped status observation when it is available, and otherwise attempt a live read of the selected campaign. An accepted request alone does not confirm the change. Meta's effective status can leave an activation unconfirmed while the campaign is in review or has delivery issues. If the switch outcome is unclear, inspect the existing campaign in Meta before taking another action; don't create a replacement boost or use a new idempotency key. An active switch doesn't prove ad approval or delivery.
Meta Age and Special Ad Categories
On Meta, your agent can set an age range and declare a special ad category,
such as financial products, housing, employment, or credit. A boost takes
age_min, age_max, special_ad_categories, and
special_ad_category_country directly. A standalone campaign takes ages in
input.targeting and the category fields at the top of input:
{
"input": {
"targeting": {"countries": ["US"], "age_min": 18, "age_max": 65},
"special_ad_categories": ["FINANCIAL_PRODUCTS_SERVICES"],
"special_ad_category_country": ["US"]
}
}- The category country is where the category applies. It's separate from
countries, which picks the audience, and needs a category alongside it. - Use
FINANCIAL_PRODUCTS_SERVICESfor new financial campaigns. The olderCREDITvalue is still accepted. - With no audience countries, campaigns target the US. US rules apply when either the audience or the category country includes the US: ages must sit within 18 to 65 (65 means 65 and older), and conflicting ages are refused.
- Setting ages, or declaring a US restricted category, turns off audience expansion.
- An ordinary 21+ offer can set just
"targeting": {"age_min": 21}.
These fields describe the targeting you submit. They don't prove licensing, platform permission, or that the campaign will be approved. Other platforms ignore them.
Company Facts and Activity Checks
Save the company's offer and intended_use in company settings.
These caller-supplied facts are not independently verified. The safeguards
that use them are off by default and apply only when enabled for a company.
They affect connected Meta ads, not every company or ad platform.
When enabled, standalone campaign creation checks the saved facts against the
submitted ad text, effective audience, declared special categories, and
selected account. It does not open the landing page or inspect image or video
files. The actual ad is also checked against the prohibited activities;
ordinary company facts cannot authorize an ad promoting a prohibited offer.
The effective audience must be US-only. The operation explains whether the
stated business or activity is unsupported, facts are missing, or a check is
unavailable. Resubmit the facts through settings update to retry an unavailable
company check. A company category by itself does not ban every ad from that
company. The activity in the specific ad and its audience determine which
controls apply:
- Non-explicit adult dating and specific weight-loss, cosmetic, medical, or physiological health claims require an explicit minimum age of 18. This 18+ rule applies to covered claims, not every health-related business. US alcohol promotion requires an explicit minimum age of 21; a company that serves alcohol does not trigger the age rule unless the ad promotes alcohol.
- US ads for housing, employment, or financial products and services require
the matching
HOUSING,EMPLOYMENT, orFINANCIAL_PRODUCTS_SERVICEScategory andUSinspecial_ad_category_country. A regulated title or consequential claim instead triggers the scoped review described below; it does not by itself require a financial-products category. If an ad includes both housing and employment activity, declare both matching categories. - An ad for a covered crypto exchange or token is blocked because this campaign path cannot verify Meta's prior permission and account-matched accepted license evidence. A US securities or investment ad is blocked because the path lacks the advertiser and payer disclosure fields. These checks concern the specific advertised activity, not every ad from a financial-services company.
Non-explicit adult dating, US alcohol promotion, ads relying on a regulated
title or authorization, consequential medical, legal, tax, or financial claims,
and third-party fundraising that raises or routes money to a beneficiary
require scoped Cofounder staff review for the exact ad and audience. Add
input.review_evidence_reference to a standalone create request with a text
or URL reference. The reference does not approve the activity; classification
and Meta's review verdict do not replace human review. A pending or rejected
review leaves creation blocked, and no review turnaround time is promised.
Approval is scoped to the account, market, and activity context; a different
context needs its own review.
Retrying an unchanged rejected or revoked review returns that decision. Change
the ad, company facts, or supporting evidence before requesting another review.
An expired approval can be submitted for renewed review.
Alcohol and regulated-title or consequential-claim reviews must also establish that the actual offer does not require targeting below country level. This path supports US country targeting only; staff cannot approve an activity that requires state-level restrictions this path cannot enforce.
When these safeguards are enabled, boosting a connected Meta post and resuming
a connected Meta campaign are currently unavailable because the current ad
creative and effective audience cannot be checked. Pausing remains available.
If an error says an authorization change was confirmed not submitted, correct
the facts or review and submit again with a new --idempotency-key. For an
unclear provider outcome, do not submit again with a new key.
Cap Spending
Set one daily-equivalent commitment limit across every ad account through
company budgets, with scope: ads. For example, a limit_cents value of
5000 sets a USD $50 limit. Your agent needs company admin access to create
or lower it. A signed-in admin can raise or remove it in Wallet.
The limit is checked when admitting spend, including campaign resumes and budget increases. It caps active campaign budget commitments in USD; it does not reset each day. Each campaign's own budget and Google's account budget still apply. Provider pacing can make actual daily charges differ from these commitments. Company budgets reports the committed amount and remaining room; these are unknown when currency conversion is unavailable.
| MCP | CLI | API |
|---|---|---|
This is the only place to set the ad limit. A raise through
company_billing_budgets_set over MCP or the CLI is refused with
ad_spend_ceiling_raise_requires_payer; raise it in Wallet instead.
Manage Campaigns
Your agent lists your campaigns, pauses them, resumes them, and changes their budgets. Pausing always works. Resuming starts spending, within the campaign budget and the daily ceiling.
Budget changes follow each platform's rules. Cofounder's Google budget changes support only daily budgets; reads can report custom-period budgets. Meta campaigns budgeted per ad set reject a campaign-level change.
Campaign reads and action results return the reported budget in budget:
amount, type, and currency. Google reads also retain amount_micros,
explicitly_shared, resource_name, and delivery_method when reported.
amount uses the exact micros value in native currency units when available.
These budget facts come from the latest successful sync, including when a
campaign status is read live. Unknown sharing stays null, and a shared-budget
read does not opt into changing it. The separate budget_level identifies the
budget owner, including ad groups when the campaign has no budget amount.
A missing currency or budget period stays unknown. An unfamiliar period stays
as reported; it does not establish
a daily amount. Lifetime budgets need a known schedule to calculate a daily
amount. platform_campaign_status preserves the reported campaign status.
Meta reports its effective status here, which is separate from the requested
on/off switch. It does not prove that ads are serving. status_read_at and confirmed
distinguish a provider observation from an accepted status-change request.
Reading one Meta campaign can also return platform_options: the special
ad categories and category countries Meta reports, plus each ad set's ages,
countries, and audience expansion. A missing or null value means Meta didn't
report it, not that it's off. adsets_coverage says whether all ad sets
were read, and observed_at is when Cofounder looked. It's a snapshot of
settings, not proof of delivery or compliance, and campaign lists don't
include it.
| MCP | CLI | API |
|---|---|---|
See Results
Ask your agent how a campaign or a single ad did over a date range. Ranges include both the start and end dates, and results show only the numbers the platform reports. The dashboard's Analytics app also shows your campaigns.
Google results include the account currency and time zone when available.
For “last week,” choose explicit inclusive dates in that account's time zone;
do not substitute your local time zone when the account time zone is unknown.
Check the selected resource_id, reported ad_account_id, and campaign
object_id before interpreting the numbers.
For a Google account-scope report, pass the selected resource_id as
object_id; the bound Google customer ID is used for the query. Campaign, ad
set, and ad reports use that Google object's numeric ID.
Check reporting.completeness before treating the numbers as a full-period
report. Empty results mean unavailable data, not zero activity. A null metric
is unavailable; reporting.incomplete_metrics names totals that could not be
combined from all rows. Spend is reported ad spend, not a settled company
charge. Conversions are attributed events, not verified leads, and conversion
value is not verified business revenue. Historical impressions show delivery
in the requested window, not that the campaign is serving now.
ctr is clicks divided by impressions, so 0.04 means 4%, not 0.04%. cpc is spend
per click in account currency. Both are null for partial reports or a zero
denominator. reporting.retrieved_at is when the data was read, not when it
was refreshed. A null reporting.stale means freshness is unknown. When supplied,
reporting.cache_age_seconds preserves the HTTP cache age for this reporting
source, not Google's data age. The GAQL response does not supply Google's
refresh timestamp, so do not claim freshly synced data. Respect
reporting.retry_after before retrying; Google reports do not start a job.
| MCP | CLI | API |
|---|---|---|
Commands
Connect or provision accounts. Managed Google Ads provisioning is not available to every company yet:
An admin can call ads_accounts_provision with platform: "googleads" when
managed Google Ads is enabled for the company. The response identifies the
account and reports created, already_exists, creation_outcome_unknown, or
ambiguous. An unknown result means account creation may have succeeded; follow
the returned recovery steps instead of creating another account. An ambiguous
result needs account selection to be resolved before setup can continue.
After confirming the child account, provisioning also attaches Cofounder's
Google billing account. The response can be pending while Cofounder confirms
that attachment; follow its next action. An APPROVED or APPROVED_HELD billing
setup means the payer is attached, not that ads are ready to spend. Provisioning
does not authorize a service period, reserve company funds, set a finite media
cap, or activate campaigns. Use the separate billing authorization for the
approved amount and dates before campaign spending. Read ads_accounts_get for
remaining account requirements. Cofounder handles billing setup support; ask for
business or advertiser identity information only when Google requires it. The provisioning
timestamp records when the result was evaluated and may use saved setup state;
it does not guarantee a fresh check with Google.
For a managed Google Ads account, an admin can stop service with
ads_accounts_stop or request service closure and final settlement with
ads_accounts_cancel. These operations are available only to selected companies
with managed Google Ads enabled. Select the exact account using its company
resource ID:
cofounder ads accounts stop --resource <resource_id>
cofounder ads accounts cancel --resource <resource_id>Acceptance records the lifecycle request; it does not prove that Google has
stopped serving or that final settlement is complete. Read ads_accounts_get
for lifecycle and any final service receipt, and ads_billing_get for current
containment and settlement. Stop permanently blocks new spending for that
managed account; it cannot be resumed. Use campaign pause when the user wants a
reversible pause. Service closure permanently ends managed Ads service after
settlement, but does not delete the native Google Ads customer account.
After stop or close, account, billing, campaign diagnostics, and Ads view reads can request another stop if Google reports renewed activity. This applies only while Cofounder still manages the account under its verified supplier billing authority, including when new managed setup is disabled. A requested repair is not confirmation: check the returned containment evidence. Unknown evidence remains unknown. Recovery is triggered by these reads, not continuous monitoring.
For companies with managed Google Ads enabled, ads_accounts_get may also
return managed_action. It names the current account-level actor (customer,
cofounder, or provider) and its highest-priority known requirement. This
summary does not establish campaign readiness, delivery, or that ads have
stopped. Check campaign and spend evidence separately.
| MCP | CLI | API |
|---|---|---|
Platforms are googleads, linkedinads, metaads, openaiads,
pinterestads, tiktokads, and xads.
Research ads and keywords:
| MCP | CLI | API |
|---|---|---|
Create a Meta campaign:
cofounder ads campaigns create --input <json>