내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

adobe not defined

Avatar

Level 2

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?

주제

토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor and Adobe Champion

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

원본 게시물의 솔루션 보기

9 답변 개

Avatar

Community Advisor

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/functi...

I hope that helps.

Avatar

Level 2

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

Avatar

Community Advisor

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

 

Matthew Ravlich | ACG Digital | albertacg.com

Avatar

Level 2

Sure, it appears everywhere I've tried to use it, for example in chrome devtools on any of our site pages: Screenshot 2023-05-16 at 1.55.15 PM.png


If I try it on the Adobe Experience League site which is running target it looks like this and returns an object:
Screenshot 2023-05-16 at 1.56.25 PM.png

Avatar

Community Advisor

Hi @deakin96 - is Target implemented using at.js or WebSDK?

 

Matthew Ravlich | ACG Digital | albertacg.com

Avatar

Level 2

Thanks for helping, we're using at.js 

Avatar

Employee

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.

Avatar

Level 2

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?

Avatar

정확한 답변 작성자:
Community Advisor and Adobe Champion

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