Skip to content
December 4, 2015 / Danii Oliver

Working with HTML5 Banner Ads

Whether a HTML 5 build or a SWIFFY export if your banner ads are to eventually be served from double click ( most are even when using a 3rd party vendor ) you need to have a few basic lines of code in order for the ads to not throw errors.

 

<meta name=”ad.size” content=”width=300,height=250″>

var clickTag = “”;

https://s0.2mdn.net/ads/studio/Enabler.js

linkToCTA = function(e) {
try {
Enabler.exit(‘CTA’);
} catch (err) {
window.open(clickTag, “_blank”);
}
};

<a id=”btn_cta” href=”javascript:window.open(window.clickTag);void(0)”></a>

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: