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.