Jump to content

mprefit

Approved members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by mprefit

  1. I wonder if someone can help me with an issue on implementing {clickurl} macro in a html5 banner made with Tumult Hype. After I create an animated banner with transparent background in Tumult Hype (http://tumult.com/hype/) I don't figure out where and how to insert {clickurl} macro for tracking clicks, because banner works fine, track impressions but no clicks tracking. Banner has an enablerListener which it is triggered on sceneLoad function EnablerListener(hypeDocument,element, event) { if (!Enabler.isInitialized()) { Enabler.addEventListener( studio.events.StudioEvent.INIT, enablerInitialized); } else { enablerInitialized(); } function enablerInitialized() { // Enabler initialized. // In App ads are rendered offscreen so animation should wait for // the visible event. These are simulated with delays in the local // environment. if (!Enabler.isVisible()) { Enabler.addEventListener( studio.events.StudioEvent.VISIBLE, adVisible); } else { adVisible(); } } function adVisible() { // Ad visible, start ad/animation. hypeDocument.continueTimelineNamed('Main Timeline', hypeDocument.kDirectionForward); console.log('Congrats! adVisible() triggered'); } Into the head of the banner I had the following: <head> <script src="https://s0.2mdn.net/ads/studio/Enabler.js"></script> <script type="text/javascript"> function clickURL() { //window.open('http://www.intercomfilm.ro/index.php/2014-12-01-12-12-42/in-curand/item/168-inainte-de-craciun', //window.open('%%CLICK_URL_UNESC%%', '_blank' // <- Use _self here to open in the same window. ); } </script> <style> body { background-color: transparent; } </style> </head> I had on click for the target link exitURL() function function exitURL(hypeDocument,element, event) { clickURL(); } In Revive Ad Server in Create an HTML banner - banner code I insert following code for ad created with Hype: <div id="inaintedecraciunf_hype_container" style="margin:auto;position:relative;width:320px;height:430px;overflow:hidden;" aria-live="polite"> <script type="text/javascript" charset="utf-8" src="http://www.creativeads.ro/images/banner_html5/inainte_de_craciunf.hyperesources/inaintedecraciunf_hype_generated_script.js?58280"></script> </div> Generated banner code in Revive Ad Server is: <!--/* * * CreativeAds Interstitial or Floating DHTML Tag * - Generated with Revive Adserver v3.2.2 * */--> <!--/* * This tag has been generated for use on a non-SSL page. If this tag * is to be placed on an SSL page, change the * 'http://adserver.creativeads.ro/www/delivery/...' * to * 'https://adserver.creativeads.ro/www/delivery/...' * *------------------------------------------------------------* * This interstitial invocation code requires the images from: * /www/images/layerstyles/simple/... * To be accessible via: http(s)://adserver.creativeads.ro/www/images/layerstyles/simple/... *------------------------------------------------------------* */--> <script type='text/javascript'><!--//<![CDATA[ var ox_u = 'http://adserver.creativeads.ro/www/delivery/al.php?zoneid=6&layerstyle=simple&align=left&valign=bottom&padding=2&closetime=14&padding=2&shifth=0&shiftv=25&closebutton=t&nobg=t&noborder=t'; if (document.context) ox_u += '&context=' + escape(document.context); document.write("<scr"+"ipt type='text/javascript' src='" + ox_u + "'></scr"+"ipt>"); //]]>--></script> Where can I insert {clickurl} macro for counting clicks? Can you help me please with that? Regards, Mihnea
  2. If you want bigger size, make a html5 banner with different layouts for desktop, tablets and phones.
×
×
  • Create New...