Thanks! @akenaton
I was also wondering how to add a test device by ID, I've tried to add the line .addTestDevice("D******"); above the .build(); in the onCreate, but I get a type mismatch,
com.google.android.gms.ads.AdRequest.Builder does not match with com.google.android.gms.ads.AdRequest.
@akenaton I have two problems, the first one is that, I get a banner that says"missing adactivity with android.configchanges in androidmanifest.xml" instead of the ads...
and then secondly I wanted to add test ads by adding .addTestDevice("blahblah") line 40, but it didn't work :(
Use test Banner ID: ca-app-pub-3940256099942544/6300978111
Interstitial ca-app-pub-3940256099942544/1033173712
Rewarded Video ca-app-pub-3940256099942544/5224354917 View details
Answers
@fish -- see a discussion from @akenaton on adding admob. It is in a two-page thread, here:
@jeremydouglass what's the android:value=" " in the manifest? where can I find this value?
You should definitely join that thread and/or talk to akenaton about that -- I've actually never used it myself.
@fish=== i explained that in the thread given by @jeremydouglass
Thanks! @akenaton I was also wondering how to add a test device by ID, I've tried to add the line .addTestDevice("D******"); above the .build(); in the onCreate, but I get a type mismatch, com.google.android.gms.ads.AdRequest.Builder does not match with com.google.android.gms.ads.AdRequest.
@fish===
can you put the code you are no using??? - i am not sure about you have done...
@akenaton I have two problems, the first one is that, I get a banner that says"missing adactivity with android.configchanges in androidmanifest.xml" instead of the ads... and then secondly I wanted to add test ads by adding .addTestDevice("blahblah") line 40, but it didn't work :(
@fish===
your Manifest is missing the requested configchanges attributes; add this line:
why are you targetting only 15 ( i dont speak about the minSdk)???
-what says the error log when adding .addTestDevice(AdRequest.DEVICE_ID_EMULATOR) line 40???
@akenaton Thanks, I have added the line that I missed and corrected the the target sdk(Thanks for pointing that out!)
For the .addTestDevice(" your device id"), I realised that I was getting the error because I did not quote the ID "". Now there's no error,
however when I test it, there is no ads that appear.. is that normal? do the ads only show if you get the app on the play store?
Use test Banner ID: ca-app-pub-3940256099942544/6300978111
Interstitial ca-app-pub-3940256099942544/1033173712
Rewarded Video ca-app-pub-3940256099942544/5224354917
View details
It works! Thanks!
@akenaton but... the ads only show after the screen has been in sleep mode. They don't appear right away when you open the app
@fish===
are you testing or working in (real) device mode?
and try to add code in onResume();
yes it is on a real device