i use control microsoftnsjs.advertising.adcontrol in itemtemplate of listview. bind datas following data-win-options properties : applicationid , adunitid
the source datas correctly set , visible in item template, can display them h2 + classic data-win-bind on innertext property
ads displayed correctly if put directly static ids in html code these ids need loaded config file...
is possible ? thanks
if it's not possible, can modify directly item template in js code before injected in listview ?
come find out possible (i trying similar)
the syntax control properties must prefixed wincontrol.
example (i'm setting application id here binding html element's classname , ad control's adunitid)
<div id="aditemtemplate" data-win-control="winjs.binding.template"> <div data-win-bind="classname:css; wincontrol.adunitid: adunitid" data-win-control="microsoftnsjs.advertising.adcontrol" data-win-options="{ applicationid: 'd25517cb-12d4-4699-8bdc-52040c712cab'}"> </div> </div>
Comments
Post a Comment