@ Jason Byrne,
Hi,
You seem to really know your stuff so I thought I would ask this:
What I do is I SEO websites and then rent the traffic to customers. In order to do so, I "import" their whole page through an include so that visitors actually think they are visiting my client's site.
This new client of mine has Google Maps installed on her site, which causes an error when the page gets imported into mine.
What we did do:
- make sure each other's domains are approved under the key's access following this structure:
*.web-success-maketing.com/*
*.acces411.ca/*
I then put this code on my page:
document.write([
'<script src="http://maps.google.com/maps?file=api&v=2&key=', {
'web-success-marketing.com': 'AIzaSyBYRZu-ozTok0A2ktqihham77Ym2Yiu6Rk',
'www.web-success-marketing.com': 'AIzaSyBYRZu-ozTok0A2ktqihham77Ym2Yiu6Rk',
'acces411.ca': 'ABQIAAAAmfnmLtcTHrHhkpkNKRujrRRnRZM9i66V77rRaQmSxF8bpYq1RBQ2RLYMDfRCRcCPWBzO7serz8DfcA',
'www.acces411.ca': 'ABQIAAAAmfnmLtcTHrHhkpkNKRujrRRnRZM9i66V77rRaQmSxF8bpYq1RBQ2RLYMDfRCRcCPWBzO7serz8DfcA'
}[window.location.host],
'" type="text/javascript"><\/script>'
].join(''));
yet I still can't get this thing to work as I keep getting the error: This web site needs a different Google Maps API key. A new key can be generated at introduction.html#Obtaining_Key.
Now, I did ask my client to upgrade from v2 to v3, which she did so I'm a little perplexed about the v2 in the above error.
Also, on both our sites, both v2 and v3 are "on".
When I click ok, I get a message telling me Google deactivated the service because of an invalid key yet I did check both and they seem fine.
Here is a sample test page where you can see the whole code: test.php Please bear with the CSS error as it's nothing more than changing relative links to absolute ones which I'll do if I can get her page to load properly in my site...
thanks for your time!
Seb.