Skip to content

Instantly share code, notes, and snippets.

@joemocha
Created February 12, 2014 20:55
Show Gist options
  • Select an option

  • Save joemocha/8964313 to your computer and use it in GitHub Desktop.

Select an option

Save joemocha/8964313 to your computer and use it in GitHub Desktop.
google ad for the frontpage
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<script type="text/javascript">
// <![CDATA[
/*
App Data
Changeable
*/
var App = {
baseDomain: "alltheparties.com",
subDomain: function(){
var d = document.location.hostname.split('.');
if (d.length == 3){
return d[0].substr(0,3);
}
}
};
// ]]>
</script>
<script type="text/javascript" src="http://partner.googleadservices.com/gampad/google_service.js"></script>
<script type="text/javascript">GS_googleAddAdSenseService("ca-pub-0178269653059034"); GS_googleEnableAllServices();</script>
<script type="text/javascript">GA_googleAddAttr('subDomain', App.subDomain());</script>
<script type="text/javascript">
GA_googleAddSlot('ca-pub-0178269653059034', 'atp_728x90_homepage'); GA_googleAddSlot('ca-pub-0178269653059034', 'atp_336x280_homepage');
GA_googleFetchAds();
</script>
</head>
<body>
<div class="ad 728x90_homepage"><script type="text/javascript">GA_googleFillSlot("atp_728x90_homepage");</script></div>
<div class="ad 336x280_homepage"><script type="text/javascript">GA_googleFillSlot("atp_336x280_homepage");</script></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment