accessing parameters sent with mboxUpdate in an offer



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.

Accepted Solutions (1)

Accepted Solutions (1)




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!




Answers (0)