| Start |
|---|
| Basic Ad Setup You'll need to add the following to your dependencies:
and then put this in the same file.
Next you'll need to add relevant information into your strings.xml.
Next place an adview wherever you want it and style it just like any other view. And last but not least, throw this in your onCreate. If you copy-pasted exactly you should now have a small banner ad. Simply place more AdViews wherever you need them for more. |
| Adding Interstitial Ad Interstitial ads (opens new window) are full-screen ads that cover the interface of their host app. They're typically displayed at natural transition points in the flow of an app, such as between activities or during the pause between levels in a game. Make sure you have necessary permissions in your This one should be on the bottom. Add your Ad unit ID to your Add ConfigChanges and meta-data to your manifest: and Activity: This AdActivity will show a full screen ad now. |
Read Article
https://develop.horje.com/learn/1434/reference