简体   繁体   English

如何使adduplex广告在Windows Phone 8中可点击?

[英]How to make adduplex ads clickable in windows phone 8 ?

I have implemented adduplex control exactly the same way as specified in adduplex website : 我已经按照adduplex网站中指定的方式完全相同地实现了adduplex控件:

<adduplex:AdControl x:Name="adDuplexAd" 
                AppId="YOUR_AppId_HERE" 
                />

I used the nuget installation way and the following namespace : 我使用了nuget安装方式和以下命名空间:

xmlns:adduplex="clr-namespace:AdDuplex;assembly=AdDuplex.WindowsPhone"

The app displays ads perfectly however whenever the ads in the app are clicked , nothing happens , I tried searching on the adduplex blog , but didnt get anything . 该应用程序完美显示广告,但是无论何时单击该应用程序中的广告,什么都没有发生,我尝试在adduplex博客上进行搜索,但没有得到任何结果。

I googled but still didn't get any substantial result . 我用谷歌搜索,但仍然没有得到任何实质性的结果。 Is it some API error ? 是API错误吗?

Please help ! 请帮忙 !

Your adControl might be covered by another element. 您的adControl可能会被另一个元素覆盖。 Run the adControl in the Test mode and it will show any elements covering it in red on screen when debugging. 在测试模式下运行adControl,调试时它将在屏幕上以红色显示覆盖它的所有元素。

<adduplex:AdControl x:Name="adDuplexAd" 
            AppId="YOUR_AppId_HERE" 
            IsTest="True"
            />

or you can create the event handler for the AdCovered event and set a breakpoint and see if the ad is covered by another element. 或者您可以为AdCovered事件创建事件处理程序并设置断点,然后查看广告是否被另一个元素覆盖。

<adduplex:AdControl x:Name="adDuplexAd" 
                AppId="YOUR_AppId_HERE" 
                AdCovered="adDuplexAd_AdCovered"
                />

private void adDuplexAd_AdCovered(object sender, AdDuplex.Models.AdCoveredEventArgs e)
{

}

Also you can add the event handler for the AdClick event and also set a break point and see if that is hit. 另外,您可以为AdClick事件添加事件处理程序,还可以设置断点并查看是否被击中。 ( same as the above code) (与上面的代码相同)

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

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