我想弄清楚如何风格化(我真的只是想改变颜色)通过谷歌地图V3创建的adUnit。有没有标准的方法来做到这一点?大多数adsense广告都可以在内部进行风格化设计,但它看起来就像我陷入了丑陋的蓝色背景。google maps adsense adunit style
看起来应该有办法做到这一点,因为您现在可以将地图广告放置在地图之外。 谢谢!
我想弄清楚如何风格化(我真的只是想改变颜色)通过谷歌地图V3创建的adUnit。有没有标准的方法来做到这一点?大多数adsense广告都可以在内部进行风格化设计,但它看起来就像我陷入了丑陋的蓝色背景。google maps adsense adunit style
看起来应该有办法做到这一点,因为您现在可以将地图广告放置在地图之外。 谢谢!
我也搜索了一个解决方案,没有找到。我认为他们不希望你弄乱颜色,它必须与地图颜色本身很好地融合。
https://developers.google.com/maps/documentation/javascript/advertising?hl=en#AdUnitAdStyles
var adUnitDiv = document.createElement('div');
var adUnitOptions = {
format: google.maps.adsense.AdFormat.HALF_BANNER,
position: google.maps.ControlPosition.TOP,
backgroundColor: '#c4d4f3',
borderColor: '#e5ecf9',
titleColor: '#0000cc',
textColor: '#000000',
urlColor: '#009900',
map: map,
visible: true,
publisherId: 'YOUR_PUBLISHER_ID'
}
adUnit = new google.maps.adsense.AdUnit(adUnitDiv, adUnitOptions);
这是你needet什么?