From September, Flash will no longer be supported by Chrome. Prepare for the shift towards HTML5 by visiting our Flash to HTML5 help page

Check it out!

Dynamic Content

MRAID Dynamic Content allows changing the banner content without a need to produce a new creative. On each refresh predetermined messages are randomly loaded on the same banner. 

  • Specifications

    Please follow General specifications.

  • Configuration

    The following script should be inserted in the <head> container:

    <script src="http://s1.adform.net/banners/scripts/mobile/dco.js"></script>

    The following script is used to create dynamic content:

    <script type="adform/template" data-client="4790" data-template="11780" data-messages="82993283">
        {{#messages}}
            <div >
                <div id="text1" class="text">{{text1}}</div>
                <div id="text2" class="text">{{text2}}</div>
                <div id="text3" class="text">{{text3}}</div>
            </div>
        {{/messages}}
    </script>

    When loaded into the system, XML file takes the following structure: http://s1.adform.net/Banners/Elements/Templates/{data-client}/{data-template}.xml

    When banner is uploaded to Adform system different template/admessage can be assigned using UI

    For data synchronization and transformation please contact Adform Rich Media Support

     

    If there is a need to load more AdMessages, manipulate text data or call some function when AdMessage is loaded you can use:

    Adform.DCO.loadMessages(1, function(data, total) {//total returns how many AdMessages there are in total
      data.messages[0]['text3']  = '!'; //text var manipulation
      return function () { 
        //action when admessage is loaded e.g. start animation
      }
    });