AdWords
2.3K members online now
2.3K members online now
Get started with AdWords - learn the basics to get set up for success
Guide Me
star_border
Reply

how to put the "clictag" with gdn

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello

I have to create banners for GDN, i don't use Google web designer

I've read in your doc wich say :

"HTML5 ads that are not created in Google Web Designer are, by default, clickable on the entire area of the ad"

 

so if i put something like that to write url in my html5 page my banner will be tracked by gdn

is it ok ?

 

by exemple :

 

<script>
var clickTag = "http://........";
</script>
</head>
<body>

<a href="javascript&colon;window.open(window.clickTag)">

<!--animation->

<!--animation end ->

</a>

</body>

 

Thank you very much

 

Arno

 

 

1 Expert replyverified_user

how to put the &quot;clictag&quot; with gdn

[ Edited ]
Top Contributor
# 2
Top Contributor

Hi Arn

No, this will not work. 

Google has it's own compiled JS that you need to use instead. The exit API.

 

If you wish to limit the clickable area to specific elements, you will need to include the exitapi.js script.
To use exitapi.js, include the following script in your HTML :

 

<head> tag:
<script type="text/javascript" src="https://tpc.googlesyndication.com/pagead/gadgets/html5/api/exitapi.js"> </script>


Then make the following JavaScript call to enable your final URL:

 

ExitApi.exit()
 

 

For example, send a consumer to the final URL, using a standard anchor:

 

<a onclick="ExitApi.exit()">Click Here!</a>

 

 

Hope that helps. 
If you don't include the extiapi.js script, AdWords will make the entire ad clickable, and you won't need the exit() call.