Home > Back-end >  how to use the physical device to test ads [Android]
how to use the physical device to test ads [Android]

Time:03-23

After the change of the version of google services ads, the addTestDevice option no longer appears, how can I see bonus videos on a physical device?

       AdRequest adRequest = new AdRequest.Builder().build();


        RewardedAd.load(this, "ca-app-pub-3940256099942544/5224354917",
                adRequest, new RewardedAdLoadCallback() {
                    @Override
                    public void onAdFailedToLoad(@NonNull LoadAdError loadAdError) {
                        // Handle the error.
                      //  Log.d(TAG, loadAdError.getMessage());
                        mRewardedAd = null;
                    }

                    @Override
                    public void onAdLoaded(@NonNull RewardedAd rewardedAd) {
                        mRewardedAd = rewardedAd;
                        //Log.d(TAG, "Ad was loaded.");
                    }
                });

CodePudding user response:

You can follow steps here

Add a test device To make changes to a test device, such as enabling or changing ad inspector gestures, you’ll need to remove the test device and set it up again. Sign in to your AdMob account at https://apps.admob.com.

Click Settings in the sidebar.

Click the Test devices tab.

Click Add test device.

Select the platform of your device.

Enter a device name. Consider using a name that will help you quickly identify your devices in your AdMob account.

Note: The device name will be visible to anyone who has access to your AdMob account.

Enter your Advertising ID/IDFA. Learn how to find your advertising ID/IDFA.

Select a gesture to use to activate ad inspector:

None. If you select none, you can still activate ad inspector with an API call. Learn more.

Shake

Flick twice

Click Done.

  • Related