简体   繁体   English

Delphi XE7 TBannerAd无法在Android上展示广告

[英]Delphi XE7 TBannerAd not showing ad on Android

I'm trying to test run some admob ads via the TBannerAd component in Delphi xe7, to see if it will work on ios and android. 我正在尝试通过Delphi xe7中的TBannerAd组件测试运行一些admob广告,以查看它是否可以在ios和android上运行。

Upon testing the ad seems to load on IOS but on Android nothing happens. 经过测试,广告似乎可以在IOS上加载,但在Android上则什么也没有发生。

I've checked the manifest file and made sure it had the activity and meta data. 我已经检查了清单文件,并确保它具有活动和元数据。 I'm not sure what the issue is. 我不确定是什么问题。

Could someone shed some light? 有人可以照亮吗?

Just checking the obvious - have you enabled the AdMob Service option on the entitlements page in the project options? 仅检查显而易见的内容-您是否已在项目选项的权利页面上启用了AdMob服务选项?

The entitlements page is new in Delphi XE7, so may not have been set up, and so won't pull in the required Google advertising library into the final binary. 授权页面是Delphi XE7中的新增功能,因此可能尚未设置,因此不会将所需的Google广告库引入最终的二进制文件中。 This will cause a lack of functionality, despite the manifest file looking fine. 尽管清单文件看起来不错,但这将导致功能不足。

See online documentation for more details. 有关更多详细信息,请参见在线文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM