-
Notifications
You must be signed in to change notification settings - Fork 28
Add some ads for non premium users
Mickael Goubin edited this page Aug 3, 2013
·
3 revisions
After extending AdsFragmentActivity, you can use a few methods to set up some ads.
First of all, you can give your ads id using the following method
this.setAdUnitId("omgmykey");
And use this method to set up the ads
this.setDoAdsForNonPremium(true, R.id.adView, true);
The true means that you want some ads for non premium users, the second parameters is the viewgroup that will contain the ads, and the third one is whether or not you want an upgrade link on failure.
You can set the view for this upgrade link using the following method:
this.setAdsViewReplacement(myCustomView);
You can also set up your test devices for your ads using the following setTestDevice()
method as follows
Set<String> testDevices = new HashSet<String>();
testDevices.add("myfirstdeviceid");
testDevices.add("myseconddeviceid");
this.setTestDevice(testDevices);