I'm having some trouble with ads in my application. This is the code I'm currently using: > > Window window = getWindow(); > > RelativeLayout adsLayout = new RelativeLayout(this); > > RelativeLayout.LayoutParams lp2 = new >> RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, >> RelativeLayout.LayoutParams.WRAP_CONTENT); > > adsLayout.setGravity(Gravity.BOTTOM); > > AdView adView = new AdView(this, AdSize.BANNER, "5924168281971448"); > > adsLayout.addView(adView); > > AdRequest newAdReq = new AdRequest(); > > adView.loadAd(newAdReq); > > window.addContentView(adsLayout, lp2); > > When I run the application with this it tells me: onFailedToReceiveAd(Invalid Ad request.)
As information: the number in AdView is my publisher id. I haven't paid for Android publisher account I think though, maybe that's it? Either way, how do I fix this problem? -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

