Question

I've put GooglePlayService Ads to my app and ran on my tablet. It worked properly. But when do I run it on HTC Desire - API 10 - 2.3.3 - I it doesn't show at all.

Do the ads show only when the app is in .apk file and put to GooglePlay or is it another problem?

Was it helpful?

Solution

To get the ads shown you have to add your device like the test one, for example:

AdRequest adRequest = new AdRequest.Builder()
    .addTestDevice(AdRequest.DEVICE_ID_EMULATOR)       // Emulator
    .addTestDevice("AC98C820A50B4AD8A2106EDE96FB87D4") // your phone code
    .build();

I'd like to remark that you have to find your phone code in logcat window. That would be working even if your are working without .apk, also don't forget that for different devices you will have to add different phone codes.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top