开发者

Google Autoload Maps Adsense Library

开发者 https://www.devze.com 2023-02-10 07:21 出处:网络
I\'m wondering how to autoload the Adsense library with Google Maps. Right now my script tag looks like this:

I'm wondering how to autoload the Adsense library with Google Maps. Right now my script tag looks like this:

<script src="http://www.google.com/jsapi?autoload={'modules':[{'name':'maps','version':'3','other_params':'sensor=false'}]}" type="text/javascript"></script>

I'm unsure what the correct parameter is to autoload the Adsense library. In order to autoload 开发者_Go百科packages with the Visualization API, the script tag looks like this:

<script src="http://www.google.com/jsapi?autoload={'modules':[{'name':'visualization', 'version':'1.1', 'packages': ['geomap', 'corechart', 'imagebarchart']}]}" type="text/javascript"></script>

I'd definitely appreciate any help with this—haven't been able to find anything yet, and I've tried messing with the parameters a couple different ways.


A guy on the Google Maps JavaScript API v3 Group figured it out. The correct script tag should looking like this:

<script src="http://www.google.com/jsapi?autoload={'modules':[{'name':'maps','version':'3','other_params':'libraries=adsense%26sensor=false'}]}"></script>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号