While adding Google Maps into site simplest method would be using Google Webmaster Tools:
http://www.google.com/webmasters/tools/
G Account is paid and DNS record verification may take hours depending on your hosting service providers response time
Using webmaster tools we can do simple HTML verification domain verification without Google G accountsusing http meta tag method:
* Make sure to enable Google Embed API . Otherwise you may get:
The Google Maps API server rejected your request. This API project is not
authorized to use this API.
* Add allowed urls like:
- http://mysite.com/*
- http://www.mysite.com/*
Note www one as well. Otherwise you may get:
The Google Maps API server rejected your request. This IP, site or mobile application is not authorized to use this API key. Request received from IP address
__IP__, with referer: __URL__
* Sometimes it wont work on Incognito Window with above message.
* Note the slash ('/') at the end
In my case urls like:
http://www.mysite.com/contact-us did not work but
http://www.mysite.com/contact-us/ did
No comments:
Post a Comment