adobe not defined | Community
Skip to main content
May 16, 2023
Solved

adobe not defined

  • May 16, 2023
  • 3 replies
  • 4457 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by PratheepArunRaj

Dear deakin96,

If you are using Adobe Target Extension (V1 or V2) in Adobe Launch, then you should not get the error.

Is it possible to share the public URL so that we can validate it? Something is missing here.

Thank You, Pratheep Arun Raj B (Arun) | NextRow Digital | Terryn Winter Analytics

3 replies

Matthew_Ravlich_ACG
Community Advisor
Community Advisor
May 16, 2023

Hi @deakin96,

applyOffer requires the mbox parameter. If no mbox name is specified, an error occurs.

Documentation: https://experienceleague.adobe.com/docs/target-dev/developer/client-side/at-js-implementation/functions-overview/adobe-target-applyoffer.html

I hope that helps.

deakin96Author
May 16, 2023

The problem is its saying adobe isn't defined so I can't get that far regardless.

Matthew_Ravlich_ACG
Community Advisor
Community Advisor
May 16, 2023

When does the error appear? Can you share a screenshot of the error?

 

Matthew Ravlich | ACG Digital | albertacg.com

jpetermarias
Adobe Employee
Adobe Employee
May 17, 2023

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.

deakin96Author
May 17, 2023

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?

PratheepArunRaj
Community Advisor and Adobe Champion
PratheepArunRajCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
May 17, 2023

Dear deakin96,

If you are using Adobe Target Extension (V1 or V2) in Adobe Launch, then you should not get the error.

Is it possible to share the public URL so that we can validate it? Something is missing here.

Thank You, Pratheep Arun Raj B (Arun) | NextRow Digital | Terryn Winter Analytics