[英]How to count ad banner impressions on Android?
Admob banners can be used with this AdListener : Admob标语可以与此AdListener一起使用:
public abstract class AdListener {
public void onAdLoaded();
public void onAdFailedToLoad(int errorCode);
public void onAdOpened();
public void onAdClosed();
public void onAdLeftApplication();
}
onAdOpened()
means onAdOpened()
意思是
ad opens an overlay that covers the screen 广告会打开覆盖屏幕的覆盖
and is called when the user clicks on ad. 当用户点击广告时被调用。 But how can I count the number of impressions ? 但是,我该如何计算印象数?
(For example, a banner showing for 4 minutes at refresh rate of 30 seconds would produce 8 impressions). (例如,以30秒刷新率显示4分钟的横幅会产生8次展示)。
印象只是说广告存在,因此onAdLoaded是您要放置印象跟踪的位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.