Expand my Community achievements bar.

Not getting created experiences on getOffers or getAttributes call

Avatar

Level 1

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.
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Community Advisor

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.