How do I enter age / gender for AdMob interstitials by code?

The AdRequest object has a way to specify age and gender, but I cannot find a way to specify this on the InterstitialAd object. Does anyone know how?

+3


source to share


2 answers


It seems like InterstitialAd has a method loadAd(AdRequest adRequest)

where I can set the age and gender for the AdRequest object.



0


source


use this method



AdRequest adRequest = new AdRequest.Builder().setGender(1).setBirthday(birthday).build();
interstitial.loadAd(adRequest);
interstitial.show();

      

0


source







All Articles