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
BedrockMission!

Learn More

View all

Sign in to view all badges

Getting offers from multiple mbox in one HTTP request

Avatar

Avatar
Validate 1
Level 1
Romain_Blineau
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Romain_Blineau
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Romain_Blineau
Level 1

14-12-2018

Performance is critical for web applications, which means we often try to avoid network calls as much as possible to not add latency time each time an application needs computed data from a server.

This is also true for personalization, and looking at Adobe Target capabilities, I can see that implementation through at.js, getOffer for each mbox on a page will  trigger an individual HTTP Request.

On the other side, Target REST API provides a way to get several mbox offers in one HTTP call, which seems more efficient.

Is the multiple mbox call will land in at.js in the future ? Is there a way to achieve this already with the library ?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 1
Romain_Blineau
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Romain_Blineau
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Romain_Blineau
Level 1

19-04-2019

Just to update on this. Since at.js 2.0 release, multiple offers retrievial is actually possible.

See documentation: adobe.target.getOffers() - at.js 2.0.0

Answers (2)

Answers (2)

Avatar

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

188 likes

Total Posts

193 posts

Correct Reply

77 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

188 likes

Total Posts

193 posts

Correct Reply

77 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
ryanr701
Employee

03-01-2019

Hi Romain,

This is a great question. The at.js library does not support multiple mbox responses with a single call. While the Target REST API does have a method for this. It is limited to form based activities in Target. If you are using the Target global mbox and the visual composer you can deliver multiple activities to a page with only a single call to Target.This is actually how at.js and the visual composed activities natively work.

Also worth noting, if you are using form composed activities because you prefer to write your own code, these use cases usually can also be handled in the visual composer by using the custom code option to insert your own code blocks to the page. So you could get multiple custom code offers delivered in a single call to Target.

Hope that helps.

-Ryan

Avatar

Avatar
Validate 250
Employee
Amelia_Waliany
Employee

Likes

183 likes

Total Posts

440 posts

Correct Reply

72 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile

Avatar
Validate 250
Employee
Amelia_Waliany
Employee

Likes

183 likes

Total Posts

440 posts

Correct Reply

72 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile
Amelia_Waliany
Employee

22-04-2020

Hi @Romain_Blineau,

 

Our next Adobe Target Skill Builder Webinar is right around the corner on May 5th, and will be presented by Adobe Target Product Management on migrating Adobe Target’s mbox.js to At.js. Check out this community discussion to register today. Hope you can make it!
 
Warmly,
Amelia