AdMob 以 google.com 为例

AdMob with google.com example

我十天前发布了我的应用程序,现在我收到了这条消息。我不知道如何通过互联网和Whosebug上的信息解决这个问题。

We have identified a potential advertising ID policy violation with your app(s). Please review the flagged app(s) listed in your All Applications page for details.

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        sInstance = this;

            mInterstitialAd = new InterstitialAd(this);
            mInterstitialAd.setAdUnitId("ca-app-pub-****************/**********");
            requestNewInterstitial();
            mInterstitialAd.setAdListener(new AdListener() {
                @Override
                public void onAdClosed() {
                    requestNewInterstitial();
                }
            });
            startAd();
        }    

void showAd() {
        mInterstitialAd.show();
        mLastAd = System.currentTimeMillis();
    }

    private void requestNewInterstitial() {
        if (MyApplication.getInstance().isAdEnabled()) {
            AdRequest adRequest = new AdRequest.Builder()
                    .build();

            mInterstitialAd.loadAd(adRequest);
        }
    }

    private void startAd() {
        if (MyApplication.getInstance().isAdEnabled()) {
            final Handler handler = new Handler();
            Runnable runnable = new Runnable() {
                @Override
                public void run() {

                    if (mInterstitialAd.isLoaded()) {
                        showAd();
                    } else {
                        handler.postDelayed(this, 100);
                    }

                }
            };
            handler.postDelayed(runnable, 1000);
        }
    }

我编译这个:

    compile 'com.google.android.gms:play-services:7.0.0'

和我的清单一样

https://developers.google.com/mobile-ads-sdk/docs/admob/android/play-migration

这是我的第一个应用程序,也是第一个使用 AdMob 的应用程序,仅产生一些欧元。

如果您使用永久 ID 而不是广告 ID,您将收到此警告。

来自Google:

As a reminder, please note that starting 1 August 2014, new apps and app updates distributed through Google Play must use the advertising ID in lieu of any other persistent identifiers for any advertising purposes, on devices that support the advertising ID.

检查此 link - https://support.google.com/googleplay/android-developer/answer/6048248

您几乎可以肯定收到了违反政策的警告,因为您在应用中的任意点显示插页式广告(您实际上是在广告加载后立即显示它,这将是在用户实际执行时一个动作)而不是在一个自然的断点。

Admob 一直表示不会这样做。