gpt4 book ai didi

google-maps - 如何在使用 Maps API 创建的自定义 map 中显示广告(adsense 或本地搜索广告)?

转载 作者:行者123 更新时间:2023-12-04 16:15:59 25 4
gpt4 key购买 nike

有没有办法在使用 Google Maps API 创建的自定义 map 上显示 Adsense 广告?

谷歌最近推出了“本地搜索广告”,在谷歌地图上展示本地广告。但是,在使用 Maps API 创建的 map 上看不到相同的广告。

最佳答案

Google Maps JavaScript API 的 AdSense 库已于 2015 年 5 月弃用。如果您查看 JavaScript API 3.22 版的发行说明,您将看到以下文本

5 November 2015

The AdSense library has been deprecated since May 2015, and is no longer available in the experimental version of the Google Maps JavaScript API. The library will be removed from the release and frozen versions of the API soon. An alternative solution is Google AdSense. See the guide to creating an AdSense ad unit.


来源: https://developers.google.com/maps/documentation/javascript/releases#322
尝试按照本文档中的建议使用 Google AdSense 广告单元。

关于google-maps - 如何在使用 Maps API 创建的自定义 map 中显示广告(adsense 或本地搜索广告)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48965021/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com