Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps API V3 error: 403 (Forbidden access for too many pageviews)

I have a published layer in Google Maps Engine that I am attempting to display using the Google Maps V3 API. In GME, the layer's "Shared with" access list includes my user and the "API access" access list also includes by user.

I am making the Maps V3 API call using MapsEngineLayer from the visualization library, and setting the appropriate auth token and layer asset id as part of the layerOptions.

The API call is failing with the error message: Google Maps API V3 error: 403 (Forbidden access for too many pageviews)

The URL looks like:

https://earthbuilder.googleapis.com/my_gme_layer_asset_id-4/maproot/json? output=jsonp&access_token=my_auth_token&callback=xdc._tsel5i

I have found some discussion threads related to "403" and "forbidden", but am having difficulty figuring out the meaning of (and solution to) the "too many pageviews" issue.

Any suggestions would be appreciated.

like image 991
user2336424 Avatar asked Jun 25 '13 16:06

user2336424


1 Answers

If you tried with @David solution and it doesnt work. It worths to check that you are not caching (or storing locally) the google maps js script. Google don't allow that. If you serve that file it will work for about 3 days and then stop working.

like image 129
Arnold Roa Avatar answered Oct 28 '22 00:10

Arnold Roa