How it works

Every step from sign-up to your AI's first change.

One endpoint between your accounts and your assistant

You connect once

OAuth to Meta Ads. Accounts, Pages and permissions land in the console.

We expose tools

Every action the UI can take is also an MCP tool and a REST endpoint.

You stay in control

Scopes, validation and an audit trail sit between intent and spend.

What happens between “pause that ad” and the ad pausing

  1. 1

    You / your assistant

    Chat, dashboard, or API call

  2. 2

    Viral4All Ads MCP + REST

    Auth, scopes, validation, audit

  3. 3

    Meta Graph API v24

    Campaigns, ad sets, ads, creatives

  4. 4

    Sync + webhooks

    Results flow back into the console

The loop closes: results come back through scheduled sync and Meta webhooks, so the next question your assistant asks is answered with numbers that are minutes old, not days old.

Eight steps, and why each one exists

01

Create your account

Sign up with Google or email. A workspace is created and every table is row-level scoped to your user.

Why: Ad data is money data. Each workspace is kept apart in the database itself, so a bug in a page can't leak someone else's spend.

/auth

02

Connect Meta Ads with OAuth

Connections → Connect Meta. Meta's consent screen asks for ads_management, ads_read, business_management and Page access. You come back with your ad accounts and Pages listed.

Why: You never paste a token. We exchange it on the server, store it encrypted and refresh it for you.

/connections

03

Activate one ad account and one Page

Pick the account you want to operate on and the Facebook Page ads will be published from.

Why: Dashboards, API keys and AI tools all act on the active account. One switch changes everything.

/connections

04

Watch the console fill with real numbers

Overview, Analytics and Meta Ads pull live spend, impressions, reach, clicks and results from the Graph API, plus the last sync time.

Why: Numbers come straight from Meta. If one looks wrong here, it's wrong in Meta too.

/dashboard

05

Build or edit an ad

Create a campaign, ad set and ad in one wizard. Upload an image or video and the checklist validates dimensions, format, aspect ratio and duration before Meta ever sees it.

Why: Meta rejects creatives after upload with vague errors. Validating locally turns a 20-minute round trip into an instant red line.

/campaigns

06

Point your AI assistant at the MCP endpoint

Paste https://ads.viral4all.com/mcp into Claude, ChatGPT, Gemini, Codex or Cursor and sign in when it asks, choosing read-only or read-and-change. The assistant then sees your tools. No API key needed: keys are for scripts and automations. Steps for each app are on Connect AI.

Why: MCP is the open standard for giving an AI real tools. Your AI calls the same logged functions the dashboard uses.

/connect

07

Or drive it with an API key

Create a key with only the permissions you need, then call the REST API from a script or n8n.

Why: Scopes mean a key used by a scheduling script can never spend money it wasn't allowed to spend.

/api-keys

08

Keep it in sync and audited

Webhooks push Meta changes back in near real time; a backoff queue retries transient failures; every key action lands in the audit log.

Why: Automation without a paper trail is a liability. You can always answer 'who paused this ad, and when'.

/audit

What people ask on day one

›

Pause every ad under 1.2 ROAS and move that budget to Retargeting.

›

What did we spend yesterday, and which creative had the best cost per result?

›

Swap the video on the Summer Sale ad for this URL and resume it.

›

Raise the daily budget on the top ad set by 20% but cap it at $200.

{
  "mcpServers": {
    "viral4all-ads": { "url": "https://ads.viral4all.com/mcp" }
  }
}

Steps for Claude, ChatGPT, Gemini, Codex, Cursor and more are on the Connect AI page.

What stands between an AI and your budget

Server-side tokens

Meta access tokens never reach the browser; the app holds them server-side.

Scoped API keys

Each key carries an explicit permission set and can be revoked instantly.

Per-user queries

Every database query is filtered by your user id on the server.

Full audit log

Every create, pause, resume and upload, with its result and time.

Validation before spend

Creatives and budgets are checked before a single request reaches Meta.

Retry with backoff

Rate limits and permission blips recover on their own instead of silently dropping.

The detailed version lives inside the console

Signed in, the Guide shows these steps for your own account, with what's done ticked off.

Create an account