Not getting created experiences on getOffers or getAttributes call | Community
Skip to main content
Level 2
February 12, 2025
Question

Not getting created experiences on getOffers or getAttributes call

  • February 12, 2025
  • 1 reply
  • 394 views

Hi, 

 

I followed this link to create experience in Adobe Target - https://experienceleague.adobe.com/en/docs/target-dev/developer/server-side/getting-started

In my next.js app i am using Target node.js sdk to get offers. I am passing this in case of getOffers, but not getting 

const request = {
context: {
channel: "web",
},
execute: {
mboxes: [
{
index: 1,
name: "home_ab_test",
},
],
},
};
try {
const response = await targetClient.getOffers({ request });
}catch(err){
 //Err
}
 
But in the response inside mbox, i am not getting the options...
 
[
{
'$type': undefined,
index: 1,
name: 'home_ab_test',
options: undefined,
metrics: undefined,
analytics: undefined,
trace: undefined
}
]
 
I also tried getAttributes. Same issue.
Please what is the issue. Am i missing anything.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

pradnya_balvir
Community Advisor
Community Advisor
February 12, 2025

Hi @ashokra2 ,

 

If you're not seeing created experiences when calling "getOffers" or "getAttributes" in Adobe Target, it could be due to several reasons, including incorrect audience targeting, issues with visitor identification, problems with the activity setup, or a potential caching issue where the latest experience data isn't being retrieved; check your audience criteria, visitor IDs, and ensure the activity is properly configured and set to deliver experiences based on your defined parameters.