Hi,
I am trying to test AdMob ads, here's my code:
adView = new AdView(getActivity());
adView.setAdSize(AdSize.BANNER);
adView.setAdUnitId("ca-app-pub-my_ad_unit_id");
my_main_view_here.addView(adView);
AdRequest adRequest = new AdRequest.Builder()
.addTestDevice("my_device_hash_here")
.build();
adView.loadAd(adRequest);
adView.bringToFront();
When I enable layout borders from developer options, the banner is clearly there, properly sized. The logcat, though says:
10-02 14:40:46.125: W/Ads(12119): There was a problem getting an ad response. ErrorCode: 0
10-02 14:40:46.185: W/Ads(12119): Failed to load ad: 0
"0" begin "INTERNAL ERROR". Not very helpful...
How can I debug it further?