简体   繁体   English

AdMob原生广告的大小

[英]Size of AdMob native ads

What is the size of AdMob native ads for large ads? 大型广告的AdMob原生广告大小是多少?

My UIView size is 300 * 300 and I used native large ads. 我的UIView尺寸为300 * 300,并且使用了本地大型广告。

It gives an error like: 它给出了如下错误:

Error: No ad to show. 错误:无广告显示。

If you want to display a " Large " AdMob native ads you can use widths between 280 and 1200 dp, and heights from 250 to 1200 dp. 如果要显示“ ” AdMob原生广告,则可以使用280至1200 dp之间的宽度,以及250至1200 dp之间的高度。 That means 300 by 300 is valid for the Large template size. 这意味着300乘300对大模板尺寸有效。

For more information, you can look https://firebase.google.com/docs/admob/ios/native-express 有关更多信息,请访问https://firebase.google.com/docs/admob/ios/native-express

Error: No ad to show. 错误:无广告显示。

The ad server will return this message mainly because there are no ads for your ad unit id. 广告服务器将返回此消息的主要原因是您的广告单元ID没有广告。 Check whether your ad unit id is proper or not. 检查您的广告单元ID是否正确。

Try with the ad unit ID for testing: ca-app-pub-3940256099942544/3986624511 尝试使用广告单元ID进行测试: ca-app-pub-3940256099942544 / 3986624511

AdMob available this ad unit ID for use. AdMob可以使用此广告单元ID。

If you are debugging to test your ads you need to use your test device id. 如果您要调试测试广告,则需要使用测试设备ID。

for debugging use: 供调试使用:

adView.loadAd(new AdRequest.Builder().addTestDevice("BB6B8630BC49F8850B714C06E65DB592").build());

BB6B8630BC49F8850B714C06E65DB592 is your test device id. BB6B8630BC49F8850B714C06E65DB592是您的测试设备ID。

You can get your test device id from your logs. 您可以从日志中获取测试设备ID。 When your device is ready for debugging select verbose and type "Ads" on tag. 当您的设备准备好进行调试时,请选择详细信息,然后在标签上键入“广告”。

you would get something like this: 你会得到这样的东西:

06-09 23:05:36.985 2347-2347/<package> I/Ads: Use AdRequest.Builder.addTestDevice("9FEE2036743C6A58AF69BA3A505316A9") to get test ads on this device.

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

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