1
Get your API key and slot ID
Sign in at app.adgentek.ai. Your API key is under Settings, API Keys. Your slot ID is the placement you want to fill, under Inventory, Surfaces.You need both — the SDK will not initialise without them.
2
Add the SDK
Add the script tag to your page, before the closing body tag:Then add a container where the ad should render:
3
Initialise
init() only stores configuration — it does not request or render anything.4
Request and render an ad
Pass the conversation turns. It resolves to the ad object, or to
showAd() requests an ad, renders it into your container, and fires its tracking pixels:null on a no-fill.Use
getAd() instead if you want to render the ad yourself — for example to compare our bid_price against other demand first. It renders nothing and fires nothing, so you take on the tracking obligation. See Running your own auction.5
Verify
Open your browser DevTools, Network tab. Trigger a conversation turn with commercial intent (for example, ask about mattresses or SUVs). Confirm:
- A
get-adrequest fires and returns an ad payload. - When the ad renders, an impression pixel request fires from the page.
showAd() handles this automatically. Never fire it from your backend.Next steps
Web SDK reference
Every method, the ad object’s fields, and
bid_price.Publisher controls
Category blocks, brand blocklists, frequency caps, floors.
Ad formats
Enable Spark and other formats for your surface.

