I am trying to write a scriupt to serve ad slot for each region. URL's are generated dynamically. OK, so I have the following code to display the ad (Google Ad Manager)
The script works fine as long as the page is served from http://www.atlanticportal.com
The Problem is that the script wont work with any of the other URL's that I have such as Http://atlanticportal.com or http://www.atlanmticportal.ca
How can I fix this?
reply
Code:
<script type="text/javascript">
if (location.href.substring(75,76) == "1")
{
GA_googleFillSlot("Button4");
}
</script>
The Problem is that the script wont work with any of the other URL's that I have such as Http://atlanticportal.com or http://www.atlanmticportal.ca
How can I fix this?
reply
Comment