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

SOLVED

accessing parameters sent with mboxUpdate in an offer

bani_k
Level 1
Level 1

I have an mboxDefine()

and after a certain condition check call the mboxUpdate and also send some parameters. The resulting network call shows these parameters in the console. These are also shown in the parameters list of the associated location.

But When I do an mboxCurrent.getParameters() in the accociated offer, only the default ones (browser height, screen width etc) are available. 

I tried a bunch of things but so far have not been able to access these custom parameters in offer itself. Any pointers will be helpful. Thanks.

1 Accepted Solution
shekhardhiman
Correct answer by
Employee
Employee

Hi Bani,

Thank you for reaching out to Adobe Community.

Parameters can be added and associated with an mbox.

  1. Follow the instructions for a inserting a basic mbox.
  2. After the mbox title, enter the parameters and values you wish to add to the mbox.

    Parameters and values are case sensitive. Match the case of the parameters and values you will receive during the campaign or test.

    Parameters use the structure shown below:

    1. <script type="text/javascript">
    2. mboxCreate('myMbox',"parameter1=value1",​"parameter2=value2","parameter3=value3");
    3. </script>

    For example:

    1. <script type="text/javascript">
    2. mboxCreate('myMbox',"state=AL",​​"categoryId=toys, books, accessories");
    3. </script>

    Hope this helps!

     

     

     

View solution in original post

0 Replies
shekhardhiman
Correct answer by
Employee
Employee

Hi Bani,

Thank you for reaching out to Adobe Community.

Parameters can be added and associated with an mbox.

  1. Follow the instructions for a inserting a basic mbox.
  2. After the mbox title, enter the parameters and values you wish to add to the mbox.

    Parameters and values are case sensitive. Match the case of the parameters and values you will receive during the campaign or test.

    Parameters use the structure shown below:

    1. <script type="text/javascript">
    2. mboxCreate('myMbox',"parameter1=value1",​"parameter2=value2","parameter3=value3");
    3. </script>

    For example:

    1. <script type="text/javascript">
    2. mboxCreate('myMbox',"state=AL",​​"categoryId=toys, books, accessories");
    3. </script>

    Hope this helps!

     

     

     

View solution in original post