Full demand eligibility. This SDK runs in a real browser. All four demand tiers serve, and impression, engagement, and click tracking are automatic.
Install
Add the script tag before the closing body tag:Configure
Set global configuration before the script tag loads. All fields are optional:Register a placement
Call after each AI response with the conversational context for the turn:Verify
- DevTools, Network tab: confirm the serve request and its response.
- Trigger a commercial-intent turn and confirm the ad renders.
- Confirm the impression pixel request fires from the page on render.
Reference
| Field | Type | Required | Description |
|---|---|---|---|
query | string | Yes | The user’s message for the turn |
response | string | Yes | Your AI’s response for the turn |
target | string or Element | No | Where to render; auto-discovery when omitted |
turnId | string | No | Stable ID pairing events across a turn |

