Integration Overview
Publisher integration is two components:AdMeshProviderfor SDK/session initializationAdMeshIntentAssistantfor floating contextual suggestions
Full Page Integration (Next.js / React)
Key Props
AdMeshProvider
AdMeshIntentAssistant
| Prop | Component | Purpose |
|---|---|---|
apiKey | AdMeshProvider | Authenticates SDK requests |
sessionId | AdMeshProvider | Tracks a user session across interactions |
autoOpen | AdMeshIntentAssistant | Opens assistant by default |
position | AdMeshIntentAssistant | Floating position (bottom-right, etc.) |
size | AdMeshIntentAssistant | Panel preset size (sm, md, lg, xl) |
maxSuggestions | AdMeshIntentAssistant | Limit visible suggestions |
Best Practices for Publishers
- Keep the assistant on content-heavy pages where user intent is clearer
- Generate one stable
sessionIdper browsing session - Start with
size="md"andposition="bottom-right"for minimal disruption
Troubleshooting
Assistant does not appear
Assistant does not appear
Verify the component is inside
AdMeshProvider and apiKey/sessionId are non-empty.No contextual suggestions are shown
No contextual suggestions are shown
Confirm your key is valid and that your content page has enough meaningful text/context.
Session tracking looks inconsistent
Session tracking looks inconsistent
Ensure
sessionId is stable for the page lifecycle and not regenerated on every render.