I'm trying to use adobe.target.applyOffer but am getting the error adobe is not defined. Target seems to be running correctly on the page as there is an active test running on the page. Is there a reason adobe would be undefined?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
applyOffer requires the mbox parameter. If no mbox name is specified, an error occurs.
I hope that helps.
Sure, it appears everywhere I've tried to use it, for example in chrome devtools on any of our site pages:
If I try it on the Adobe Experience League site which is running target it looks like this and returns an object:
Hi @deakin96, It could be because of race conditions. Can you try to load the at.js on that page synchronously? It may be that the at.js is still loading when the adobe.target.applyOffer() function is called.
Thats a good idea but that wouldn't explain not being able to access the adobe object in the chrome devtools long after the page has loaded correct?