Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

dan_e1982
Community profile dan_e1982 Level 1
Job title here
Location here
4 BADGES
Level 1

Level 1

Learn more
Joined the community 22-01-2020 12:48:11 AM
Offline
Top badges earned by dan_e1982
Customize the badges you want to showcase on your profile
Re: How do I retrieve content using applyOffers()?
Avatar
Give Back
Level 1
dan_e1982
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

1 solution
Top badges earned
Give Back
Ignite 1
Validate 1
Affirm 1
View profile
dan_e1982
- Adobe Target
I have managed to answer my own question. First of all I run the getOffers() code, however I save the response into a custom Launch variable "resObj", this allows me to split the running of getOffers() and applyOffers() To apply the content within this "resObj", I run a for loop to find the mbox content I want to apply. To easier facilitate this the mbox name I've applied in Target matches the analytics page name ("page|name"). mboxOffer then has the specific content of the mbox parsed into it, ...

Views

186

Likes

0

Replies

1
Re: How do I retrieve content using applyOffers()?
Avatar
Give Back
Level 1
dan_e1982
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

1 solution
Top badges earned
Give Back
Ignite 1
Validate 1
Affirm 1
View profile
dan_e1982
- Adobe Target
Hi We're using the at.js (2x) library. The idea of using getOffers() was to retrieve/prefetch all offers in the one call, in my case, on the load of the SPA. Then, as the user went through the different states of the SPA, executing the applyOffers() function to retrieve the relevant offer from the response as and when needed, I assume the response is held somewhere in cache. If we have to run the functions together i.e. getOffers() then immediately applyOffers(), then this offers no difference i...

Views

247

Likes

0

Replies

0
How do I retrieve content using applyOffers()?
Avatar
Give Back
Level 1
dan_e1982
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

1 solution
Top badges earned
Give Back
Ignite 1
Validate 1
Affirm 1
View profile
dan_e1982
- Adobe Target
HiI have a secure SPA that we're implementing Target into. We've decided to utilise the new getOffers() and applyOffers() functions that were part of at.js 2x.Via a Launch rule we have managed to successfully 'get' the offers, i.e., see the offers associated with the mbox in the response, this is code we've used to do this..However, I've been unable to figure out how to apply any of these offers, the Adobe documentation is a bit sparse, giving no example of how to retrieve the content associated...

Views

299

Likes

0

Replies

4