Is it possible to apply a JSON Offer in the `response.prefetch.mboxes` path in `applyOffers`? I am able to see the offer using `getOffers` but the offer is not applying.
I am also getting an error message of:
message: "Expected an array of promises"
I am doing exactly as the example shows in the getOffers documentation. Here is my code:
adobe.target.getOffers({
request: {
prefetch: {
mboxes: [
{
"index": 0,
"name": "testMbox"
},
]
}
}
}).then(response => {
const mboxes = response.prefetch.mboxes;
mboxes.forEach(mbox => {
adobe.target.applyOffers({
selector: '#headerWrapper',
response: {
prefetch: {
mboxes: [mbox]
}
}
});
});
});