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

The 1st edition of the Target Community Lens newsletter is out now! Click to the right to find all the latest updates

Global Mbox and API Call


Level 4

Hi Team,


We are trying to call a 3rd party API and get some parameters into Adobe Target , we didn't want to delay the global MBOX , so we used targetgetoffer and Applyoffer method at window loaded to pass the parameters to Adobe Target. We trying to show a popup to based on that parameters


Below is the page events


I would like to inquire about how we can deploy the popup to the second Regular mbox instead of the Global mbox. While custom code can be used for the Global mbox, there doesn't seem to be an option to add custom code for the regular mbox


We tried to add the popup in custom script based on Profile Parameters , Below is our current output:


At First Load

Library Loaded - Global mbox - No offer (As expected because no parameter as of now)

Window Loaded - Regular mbox - Profile Parameter Send - No Offer Delivered (We want the popup to be delivered here)


After Page Reload

Library Loaded - Global mbox - Offer Delivered and popup shown(As expected because of profile parameter)






Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies


Level 2

Hi @Vinoth1991,


Based on your question above, I assume you are trying to use the VEC (Visual Experience Composer) to add custom code to the regional mbox. You will likely need to use the form-based composer instead of the VEC. 


The Adobe Target Form-Based Experience Composer is a non-visual experience. It offers an interface helpful in creating experiences for use in A/B Tests, Experience Targeting, Automated Personalization, and Recommendations activities when the Visual Experience Composer (VEC) is not available or practical for use.


To use the form-based composer, follow these steps:


  1. Click Create Activity, then select the type of activity you want to create.
    • The Form-Based Experience Composer is available for A/B Tests, Experience Targeting, Automated Personalization, and Recommendations activities.
  2. Select Form from the Create Activity dialog box.
  3. (Conditional) You can choose a workspace and property.
  4. Click Next.
    • The Form-Based Experience Composer opens.
  5. Matthew_Ravlich_ACG_1-1678808572958.png
  6. Name the activity by clicking “Untitled Activity.”
  7. You can select a location.
  8. When you click the Select Location box, a list of available locations appears. Select one of those locations.
  9. You can also enter a location that is not listed here. This can be useful if the mbox has not been created or viewed on a page. Type the name of the location. Be careful when entering a location that still needs to be created. If the spelling or capitalization does not match the spelling and capitalization when the mbox call is made, the activity will not deliver. Manually entered locations are saved to the list of available locations. The next time you try to select a manually entered location, it will be available from the Select Location drop-down list for that activity.

You can then add your custom code as an offer which can be applied to the location in the form-based composer.


To create offers, follow these steps:

Create HTML Offer:

  1. Click Offers, then select the Code Offers tab.
  2. Click Create > HTML Offer.
  3. Type an offer name.
  4. Type or paste your HTML code in the Code box.
  5. Click Save.

Create JSON Offer:

  1. Click Offers, then select the Code Offers tab.
  2. Click Create > JSON Offer.
  3. Type an offer name.
  4. Type or paste your JSON code in the Code box.
  5. Click Save.



I hope that helps you out. Please let me know if you have any more questions.



Level 4

Hi Mathew,


Thanks for the detailed explanation. will try form based composer , hope popup will work in HTML offer.


Community Advisor

Yes in the offer code you can trigger an API request - and reload something e.g. - like that then a popup is displayed. Then you get your popup already in the first page load.


You can also use a dataProvider - and yes this can influence the loading time of the global-target-mbox. But here you can also save e.g. in a cookie (if this is desired) - if you already have some information about the customer - and do not need this API call. Here you can also influence how long the request may take - and otherwise cancel it, so that the target is executed as quickly as possible.


Hope this helps you.

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now