【发布时间】:2018-12-28 07:31:41
【问题描述】:
我正在使用 Microsoft Advertising SDK for xaml。我的应用现在可以展示广告了。但我想知道用户点击广告时的事件。
以下事件均无效。
<ads:AdControl x:Name="adAd" Grid.Row="3" ApplicationId="" AdUnitId=""
Width="300" Height="250" AdRefreshed="OnAdRefreshed"
ErrorOccurred="OnErrorOccurred"
Tapped="OnAdTapped" OnPointerDown="OnAdPointerDown"
PointerPressed="OnAdPointerPressed"/>
【问题讨论】:
-
AdControl.IsEngagedChanged 应该可以工作。而且我看不出为什么您的代码示例中的 3 个事件“不起作用”。
-
Not work 是指当我点击广告时,Tapped, OnPointerDown, PointerPressed 事件不会触发。而且 IsEngagedChanged 也不会触发。
-
嗨@Vincent 我已经编辑了答案,请检查。
标签: uwp windows-store-apps uwp-xaml ads