Skip to main content
The sdk-react-demo repo ships a minimal Next.js app you can run end-to-end against your own publisher token.

Clone and configure

The repo ships placeholder constants — replace PUBLISHER_TOKEN with your token from the publisher dashboard and set PLACEMENT_CODE to a placement enabled for your publisher (typically inlineAd).

What you should see

After npm run dev, open the printed local URL in a browser. The demo presents a chat interface with seeded user + assistant messages. As you send a message, the SDK fires /preload in the background and renders an ad below the assistant’s reply.