Skip to main content
This quickstart uses the Web SDK, the fastest path to a live ad. For iOS, Android, React, the Publisher Widget, AdsMCP, or the REST API, see Integrations. If you have not read Choosing your integration path, read it first: your integration path determines which demand can serve on your surface.
1

Get your publisher token

Sign in at app.adgentek.ai and copy your publisher token from Settings, Integration.
2

Add the SDK

Add the script tag to your app, before the closing body tag:
<script src="https://sdk.adgentek.ai/v1/adgentek.js?token=YOUR_PUBLISHER_TOKEN"></script>
Replace YOUR_PUBLISHER_TOKEN with your real token. Placeholder tokens do not serve ads.
3

Register a placement

Tell the SDK where ads may render and pass the conversational context:
adgentek.placement({
  query: userMessage,      // the user's message
  response: aiResponse,    // your AI's response
  target: '#ad-slot'       // CSS selector, or omit for auto-discovery
});
4

Verify

Open your browser DevTools, Network tab. Trigger a conversation turn with commercial intent (for example, ask about mattresses or SUVs). Confirm:
  1. A serve request fires to the Adgentek endpoint and returns an ad payload.
  2. When the ad renders, an impression pixel request fires from the page.
The impression pixel firing from the browser is what makes the impression billable. The SDK handles this automatically. Never fire it from your backend.

Next steps

Theming

Match the ad unit to your product’s look.

Publisher controls

Category blocks, brand blocklists, frequency caps, floors.

Ad formats

Enable Spark and other formats for your surface.