Expand my Community achievements bar.

SOLVED

Global Mbox and API Call

Avatar

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

Vinoth1991_0-1678806160762.png

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

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

1 Accepted Solution

Avatar

Correct answer by
Level 4

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.

Documentation: https://experienceleague.adobe.com/docs/target/using/experiences/form-experience-composer.html?lang=...

 

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

 

View solution in original post

3 Replies

Avatar

Correct answer by
Level 4

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.

Documentation: https://experienceleague.adobe.com/docs/target/using/experiences/form-experience-composer.html?lang=...

 

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

 

Avatar

Level 4

Hi Mathew,

 

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

Avatar

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.