由于无效的流量问题,您帐户上的广告服务目前受到限制。我们将在继续监视您的流量时自动检查并更新此限制。它已经8个月了,现在的限制仍然存在,当然没有办法联系admob团队。这一切都始于我为我的一个应用运行谷歌广告安装活动,我得到了一个非常高的安装量,从而从应用程序的高印象和收入,然后我得到了我的帐户限制。我已经暂停了活动,并删除了我所有应用程序的所有广告单位id,7天后警告消失,但当我创建新的广告单位,我只收到10个请求和2个印象的限制回来。我已经做了好几次了,但还是来了又走。我不知道该怎么办了,我需要你的帮助。下面是我如何通过firebase在我的应用程序中显示admob广告。
private InterstitialAd mInterstitialAd;
//innitiatizing the ads
mInterstitialAd = new InterstitialAd(this);
mInterstitialAd.setAdUnitId("ca-app-pub-1137773547201239/7187777199");
mInterstitialAd.loadAd(new AdRequest.Builder().build());//loading the ads
if (mInterstitialAd.isLoaded()) {
final ProgressDialog dialog=new ProgressDialog(MainActivity.this);
dialog.setMessage("Loading...");
dialog.setCancelable(false);
dialog.setInverseBackgroundForced(false);
dialog.show();
Handler handler = new Handler();
Runnable r = new Runnable() {
public void run() {
dialog.dismiss();
mInterstitialAd.show();
}
};
handler.postDelayed(r, 2000);
}
mInterstitialAd.setAdListener(new AdListener() {
@Override
public void onAdLoaded() {
// Code to be executed when an ad finishes loading.
}
@Override
public void onAdFailedToLoad(LoadAdError adError) {
// Code to be executed when an ad request fails.
}
@Override
public void onAdOpened() {
// Code to be executed when the ad is displayed.
}
@Override
public void onAdClicked() {
// Code to be executed when the user clicks on an ad.
}
@Override
public void onAdLeftApplication() {
// Code to be executed when the user has left the app.
}
@Override
public void onAdClosed() {
// Code to be executed when the interstitial ad is closed.
mInterstitialAd.loadAd(new AdRequest.Builder().build());//Reloading the ads
}
});
}
这是我清单中的代码和权限
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="com.android.vending.BILLING"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-1132553547777239~2704777871"/>
暂无答案!
目前还没有任何答案,快来回答吧!