Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards
SOLVED

Adobe target html offers

Avatar

Level 1

I have created html offer in offers library . i want to add that offer using custom script . is it  possible to retreive an offer in my client side js

 

1 Accepted Solution

Avatar

Correct answer by
Level 6

In Adobe Target you don’t fetch a library offer arbitrarily from the browser. Offers are returned only through a decision (activity + location/mbox) using at.js (client-side) or the Delivery API (typically server-side). The browser asks Target for content for a location (mbox); Target decides which offer to return and you apply it.

Instead of calling the offer id directly you can instead get a similar result through an Activity in Adobe Target. Here are the steps, this approach uses One mbox, multiple experiences, it's cleaner and Switchs variants via params.

1) Create an XT (Experience Targeting) activity.
2) Tie each variant (experience) to an HTML offer (that you want to call directly on page).
3) Define unique mbox parameters that supposed to delivery the Variant tied to the desired HTML offer.
4) Create seperate audiences in that match the mbox parameter you’ll pass from the client.
5) Call Target with that mbox + parameter and Target's delivery engine will fetch the desired variant/HTML offer

Alternatively you can also setup Multiple mboxes, one offer each Experience Activity in Target and call the right mbox at runtime.

It always a best practice to set a default experience to avoid rendering issues if your activity rules doesn't match.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 6

In Adobe Target you don’t fetch a library offer arbitrarily from the browser. Offers are returned only through a decision (activity + location/mbox) using at.js (client-side) or the Delivery API (typically server-side). The browser asks Target for content for a location (mbox); Target decides which offer to return and you apply it.

Instead of calling the offer id directly you can instead get a similar result through an Activity in Adobe Target. Here are the steps, this approach uses One mbox, multiple experiences, it's cleaner and Switchs variants via params.

1) Create an XT (Experience Targeting) activity.
2) Tie each variant (experience) to an HTML offer (that you want to call directly on page).
3) Define unique mbox parameters that supposed to delivery the Variant tied to the desired HTML offer.
4) Create seperate audiences in that match the mbox parameter you’ll pass from the client.
5) Call Target with that mbox + parameter and Target's delivery engine will fetch the desired variant/HTML offer

Alternatively you can also setup Multiple mboxes, one offer each Experience Activity in Target and call the right mbox at runtime.

It always a best practice to set a default experience to avoid rendering issues if your activity rules doesn't match.