即使将应用程序上载到商店后

即使将应用程序上载到商店后

本文介绍了即使将应用程序上载到商店后,AdControl也不会显示广告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将一个UWP应用程序上载到Windows 10商店,并使用AdControl在我的应用程序中展示广告。

I Uploaded app an UWP app to the windows 10 store whil using AdControl to show ads in my app.

我的添加控件没有向我显示广告,它保持空白并抛出下一个错误:无广告。没有其他信息

My Add Control doesn't show me ads, it just stay blank and throwing the next error: "No ad available. No additional information""

在仪表板-获利中,我创建了广告单元名称,并获得了广告单元ID应用ID和广告单元名称,如下所示:

In the dashbored - monetize I created ad unit name and got ad unit ID app ID and ad unit name as shown in here:

<UI:AdControl ApplicationId="78eefbba-92ef-466f-bec3-81e17f9c36d4"
     AdUnitId="332861"
     Name="adControl"
     Height="60"
     Width="480"
     Grid.Row="5"
     HorizontalAlignment="Center"
     ErrorOccurred="OnAdError"
     Grid.ColumnSpan="6"
     Grid.Column="0"/>

然后调试我的应用程序,我会得到:

and wen i debug my app I'm getting:

并在O中nAdError事件:

and in OnAdError event I'm getting:

我做了什么?

编辑:
问题得到了解决,因为Romasz认为广告尺寸不合适。
需要注意的另一重要事项是,在开发人员中,即使我们尺寸合适,在发布应用程序之前也可能看不到广告。

Editted:the problem was solved, as Romasz comment the ad wasn't in the right size.another importent thing to notice is that in dev, even we the right size you may not see the ad until the app is published.

推荐答案

我认为您的广告尺寸可能有问题-尝试将尺寸更改为中描述了 https://msdn.microsoft.com/zh-CN/windows/uwp/monetize/supported-ad-sizes-for-banner-ads rel = nofollow noreferrer>。

There may be a problem with your AD sizes as I think - try to change to a size one of described at MSDN.

AD的可用性取决于国家/地区,很难说是问题出在您身边,还是商店中根本没有AD。首先,我将检查不支持480 x 60的尺寸,因此该尺寸可能没有可用的广告。如果大小不同于MSDN站点上的大小,则很有可能会收到错误消息。

Also AD availability depend on country, it's hard to say if the problem is on your side or simply AD is not available from the Store. First I would check the size 480 x 60 is not supported, and thus there may be no AD available with that size. If the size is different than those on MSDN site, then there is chance you will get the error.

这篇关于即使将应用程序上载到商店后,AdControl也不会显示广告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!