【问题标题】:How to track Google Adsense Click in iOS / Swift Programatically如何以编程方式在 iOS / Swift 中跟踪 Google Adsense 点击
【发布时间】:2017-08-19 19:40:21
【问题描述】:

是否有任何方法可以以编程方式跟踪在 iOS/Swift 中点击的谷歌广告。我没有找到任何解决方案来使用 Google Ad Sense 跟踪点击任何 Google 广告的点击次数。

【问题讨论】:

  • 有一个应用程序叫做“AdSense”。还是您的意思是您想以编程方式进行?
  • 以编程方式。

标签: ios swift admob adsense


【解决方案1】:

阅读documentation - 有委托功能。我认为您可以像这样实现它:

我建议你将类范围变量 clickCount = 0 并在委托函数中添加一个。

/// Tells the delegate that a full screen view will be presented in response
/// to the user clicking on an ad.
func adViewWillPresentScreen(_ bannerView: GADBannerView) {
  clickCount += 1
  print(clickCount)
}

【讨论】:

  • 非常感谢 Tarvo Mäesepp
猜你喜欢
  • 2015-03-13
  • 2010-11-27
  • 1970-01-01
  • 2012-01-29
  • 1970-01-01
  • 2015-05-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多