我对 AdMob 有以下问题。
我的应用程序已在 Google Play、Opera Mobile Store 和 GetJar 上发布。它从 Opera Store 下载了 30 次,从 GetJar 下载了 120 次,但 AdMob 仅显示和计算来自 Google Play 下载的展示次数和点击次数。问题仅在于其他应用商店在过去 1 周内下载了 150 次,并且没有计算一次展示。
任何想法是我的代码有问题还是其他问题?
我已经删除了addTestDevice方法调用。
private AdView adView;
@Override
protected void onCreate(Bundle savedInstanceState) {
...
adView = (AdView) this.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
adView.loadAd(adRequest);
...
}
@Override
protected void onResume() {
...
if (adView != null) {
adView.resume();
}
super.onResume();
}
@Override
protected void onPause() {
if (adView != null) {
adView.pause();
}
super.onPause();
}
@Override
protected void onDestroy() {
super.onDestroy();
if (adView != null) {
adView.destroy();
}
}
<com.google.android.gms.ads.AdView
android:id="@id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
ads:adUnitId="ca-app-pub-*******/******"
ads:adSize="BANNER"/>