AdMob Phonegap + JqueryMobile banner not showing

I would like to use admob in my applications, but if I add a new campaign to the adMob administration (I chose the network for smartphones) and add the generated code to my application banner, the ad will not be displayed.

I checked that I allowed permission in AndroidManifest.xml and looked it OK

What is the problem?

+4
source share
1 answer

In XML, I define a RelativeLayout with id banner_admob, then I run the banner from Java code.

RelativeLayout root = (RelativeLayout) findViewById(R.id.banner_admob); AdView banner = new AdView(mActivity, AdSize.BANNER, "banner"); banner.loadAd(new AdRequest()); root.addView(banner); 
0
source

All Articles