Chat SDK
Troubleshooting
Fix common Chat SDK integration issues
Troubleshooting
No ad returned
Check:
apiKeystarts withidl_pk_sessionIdis provided- at least one of
rawText,contentText, orcontext.topicsis available
Wrong method for the use case
- Chat messages:
fetchAd/getAd - Non-chat UI blocks:
fetchAdForContent/getAdForContent
Clicks not visible
- Ensure
trackClickis bound to the same link/button that opensctaUrl. - Avoid navigation that bypasses click handlers before tracking can fire.
Debug logs
Enable SDK debug mode:
const ads = new IdlenChatAds({
apiKey: 'idl_pk_...',
debug: true
});