user6265154
user6265154

Reputation: 363

Using real AdMob ads in alpha/beta testing

My android application has some admob ads. I am testing my admob in Google Play store Alpha & Beta channel.

My question is:

Can I use REAL admob ad unit ids when I deploy my app into Google play store Alpha & Beta channels? Does it violate google play policy? What if i click or don't click them?

I read this in Google admob:

Do I need to use test ads? Yes. It is against AdMob policy to use live ads during development, and doing so could cause the suspension of your AdMob account.

BUT it seems not very clear to me.

Thank you!

Upvotes: 16

Views: 8929

Answers (3)

zarsky
zarsky

Reputation: 720

Technically you can, but there is one very important point to consider - Pre-launch report. You need to either have Pre-launch reports disabled, or make sure you don't show ads to Firebase test devices, or else you will get a bunch of "clicks by bots", with all the consequences.

I just got my account suspended for a month by accidently doing this - don't repeat my mistake.

You can disable Pre-launch reports in Play Console settings (see screenshot), or use this function to somehow hide your ads from testing devices:

boolean isTestDevice() {
    return Boolean.valueOf(Settings.System.getString(getContentResolver(), "firebase.test.lab"));
}

More info in this article on ubuverse.com

Firebase official documentation

Google Play Console settings

Upvotes: 24

Amod Gokhale
Amod Gokhale

Reputation: 2448

If you can get Device ID's of testing devices. Please add them to request. That is best approach.

// Create an ad request. Check logcat output for the hashed device ID to
        // get test ads on a physical device.
        AdRequest adRequest = new AdRequest.Builder()
            .addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
            .addTestDevice("INSERT_YOUR_HASHED_DEVICE_ID_HERE")
            .build();

Upvotes: 0

earthw0rmjim
earthw0rmjim

Reputation: 19427

Can I use REAL admob ad unit ids when I deploy my app into Google play store Alpha & Beta channels?

Yes, you can, it does not violate the policy.

What if i click or don't click them?

You cannot/should not click on your own live ads.

(well technically you can, but you will get suspended for it)

Upvotes: 8

Related Questions