4 |
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/CustomRenderingExample/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/admob/BannerExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/BannerExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/BannerExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/BannerExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/drawable-hdpi/drawer_shadow.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/advanced/APIDemo/app/src/main/res/drawable-hdpi/drawer_shadow.9.png
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/drawable-mdpi/drawer_shadow.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/advanced/APIDemo/app/src/main/res/drawable-mdpi/drawer_shadow.9.png
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/BannerExample/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/BannerExample/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/BannerExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/BannerExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/BannerExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/BannerExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/BannerExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/BannerExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/InterstitialExample/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/InterstitialExample/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/advanced/APIDemo/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/advanced/APIDemo/app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/advanced/BannerRecyclerViewExample/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/BannerExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/BannerExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/BannerExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/BannerExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/BannerExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/InterstitialExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/InterstitialExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle
2 | /local.properties
3 | /.idea/workspace.xml
4 | /.idea/libraries
5 | .DS_Store
6 | /build
7 | /captures
8 | gradle-wrapper.jar
9 | /app/libs
10 |
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/NativeAdvancedExample/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/NativeAdvancedExample/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/RewardedVideoExample/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/RewardedVideoExample/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/RewardedVideoExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/BannerExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/BannerExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/BannerExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle
2 | /local.properties
3 | /.idea/workspace.xml
4 | /.idea/libraries
5 | .DS_Store
6 | /build
7 | /captures
8 | gradle-wrapper.jar
9 | /app/libs
10 |
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/InterstitialExample/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/InterstitialExample/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/InterstitialExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/RewardedVideoExample/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/RewardedVideoExample/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/BannerExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/BannerExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/InterstitialExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/NativeAdvancedExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/NativeAdvancedExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/NativeAdvancedExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/RewardedVideoExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/RewardedVideoExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/BannerExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/BannerExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/CustomRenderingExample/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/CustomRenderingExample/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/InterstitialExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/InterstitialExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/RewardedVideoExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/RewardedVideoExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/InterstitialExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/InterstitialExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/InterstitialExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | AdMob Native Advanced Example
3 | Ad
4 |
5 |
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/RewardedVideoExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/RewardedVideoExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/CustomRenderingExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/CustomRenderingExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/CustomRenderingExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/InterstitialExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/InterstitialExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/RewardedVideoExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/InterstitialExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/InterstitialExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/NativeAdvancedExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/NativeAdvancedExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/NativeAdvancedExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/NativeAdvancedExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/RewardedVideoExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/RewardedVideoExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/RewardedVideoExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/advanced/BannerRecyclerViewExample/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/advanced/BannerRecyclerViewExample/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/advanced/BannerRecyclerViewExample/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Ad Manager Custom Rendering Example
3 | Ad
4 |
5 |
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/InterstitialExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/InterstitialExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/RewardedVideoExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/RewardedVideoExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/RewardedVideoExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admob/NativeAdvancedExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/advanced/BannerRecyclerViewExample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/advanced/BannerRecyclerViewExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/CustomRenderingExample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/CustomRenderingExample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/CustomRenderingExample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/CustomRenderingExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/InterstitialExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/RewardedVideoExample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/RewardedVideoExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/drawable-hdpi/menu_item_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/advanced/BannerRecyclerViewExample/app/src/main/res/drawable-hdpi/menu_item_image.png
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/drawable-mdpi/menu_item_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/advanced/BannerRecyclerViewExample/app/src/main/res/drawable-mdpi/menu_item_image.png
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/admanager/CustomRenderingExample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/drawable-xhdpi/menu_item_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/advanced/BannerRecyclerViewExample/app/src/main/res/drawable-xhdpi/menu_item_image.png
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/drawable-xxhdpi/menu_item_image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googlearchive/android-ads/master/advanced/BannerRecyclerViewExample/app/src/main/res/drawable-xxhdpi/menu_item_image.png
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 8dp
4 |
5 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Banner RecyclerView Example
3 | ca-app-pub-3940256099942544/1072772517
4 |
5 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/admob/BannerExample/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Google Mobile Ads SDK for Android
2 |
3 | This repo has been migrated to [github.com/googleads/googleads-mobile-android-examples][1]. Please check that repo for future updates. Thank you!
4 |
5 | [1]: https://github.com/googleads/googleads-mobile-android-examples
6 |
7 |
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/admob/BannerExample/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/admob/BannerExample/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Nov 21 13:37:36 PST 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
7 |
--------------------------------------------------------------------------------
/advanced/APIDemo/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Nov 21 13:47:56 PST 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
7 |
--------------------------------------------------------------------------------
/admanager/BannerExample/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Nov 15 15:54:07 PST 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
7 |
--------------------------------------------------------------------------------
/admanager/InterstitialExample/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Nov 15 15:55:00 PST 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
7 |
--------------------------------------------------------------------------------
/admob/InterstitialExample/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Nov 21 13:42:25 PST 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
7 |
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Nov 21 13:44:20 PST 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
7 |
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Nov 21 13:46:00 PST 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
7 |
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Nov 15 15:42:21 PST 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
7 |
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Nov 15 15:50:52 PST 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
7 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Wed Nov 21 13:48:57 PST 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
7 |
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | InterstitialExample
5 | Hello world!
6 | Settings
7 | Impossible Game
8 |
9 |
10 |
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AdMob Interstitial Example
5 | Hello world!
6 | Settings
7 | Impossible Game
8 |
9 |
10 |
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | BannerExample
5 | Hello world!
6 |
7 |
8 | /6499/example/banner
9 |
10 |
11 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/values/attrs_custom_controls_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/admob/BannerExample/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/admob/BannerExample/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 | }
11 | }
12 |
13 | allprojects {
14 | repositories {
15 | jcenter()
16 | google()
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/admob/InterstitialExample/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 | }
11 | }
12 |
13 | allprojects {
14 | repositories {
15 | google()
16 | jcenter()
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 | }
11 | }
12 |
13 | allprojects {
14 | repositories {
15 | google()
16 | jcenter()
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 | }
11 | }
12 |
13 | allprojects {
14 | repositories {
15 | google()
16 | jcenter()
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 | }
11 | }
12 |
13 | allprojects {
14 | repositories {
15 | google()
16 | jcenter()
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/admob/BannerExample/app/src/main/res/menu/my.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | AdMob Rewarded Video Example
3 | Settings
4 | Impossible Game
5 | Retry
6 | Watch Video for 10 additional coins
7 | Coins: 0
8 |
9 |
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Ad Manager Rewarded Video Example
3 | Settings
4 | Impossible Game
5 | Retry
6 | Watch Video for 10 additional coins
7 | Coins: 0
8 |
9 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/admob/BannerExample/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | AdMob Banner Example
5 | Hello world!
6 | Settings
7 |
8 |
9 | ca-app-pub-3940256099942544/6300978111
10 |
11 |
12 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/layout/fragment_navigation_drawer.xml:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
8 | 240dp
9 |
10 |
--------------------------------------------------------------------------------
/admob/BannerExample/.google/packaging.yaml:
--------------------------------------------------------------------------------
1 | # GOOGLE SAMPLE PACKAGING DATA
2 | #
3 | # This file is used by Google as part of our samples packaging process.
4 | # End users may safely ignore this file. It has no relevance to other systems.
5 | ---
6 |
7 | status: PUBLISHED
8 | technologies: [Android, Google Play services, Google Mobile Ads]
9 | categories: [Monetization]
10 | languages: [Java]
11 | solutions: [Mobile]
12 | github: googlesamples/android-ads
13 | level: BEGINNER
14 | icon: icons/admob_icon.png
15 | license: apache2
16 |
--------------------------------------------------------------------------------
/advanced/APIDemo/.google/packaging.yaml:
--------------------------------------------------------------------------------
1 | # GOOGLE SAMPLE PACKAGING DATA
2 | #
3 | # This file is used by Google as part of our samples packaging process.
4 | # End users may safely ignore this file. It has no relevance to other systems.
5 | ---
6 |
7 | status: PUBLISHED
8 | technologies: [Android, Google Play services, Google Mobile Ads]
9 | categories: [Monetization]
10 | languages: [Java]
11 | solutions: [Mobile]
12 | github: googlesamples/android-ads
13 | level: INTERMEDIATE
14 | icon: icons/admob_icon.png
15 | license: apache2
16 |
--------------------------------------------------------------------------------
/admob/InterstitialExample/.google/packaging.yaml:
--------------------------------------------------------------------------------
1 | # GOOGLE SAMPLE PACKAGING DATA
2 | #
3 | # This file is used by Google as part of our samples packaging process.
4 | # End users may safely ignore this file. It has no relevance to other systems.
5 | ---
6 |
7 | status: PUBLISHED
8 | technologies: [Android, Google Play services, Google Mobile Ads]
9 | categories: [Monetization]
10 | languages: [Java]
11 | solutions: [Mobile]
12 | github: googlesamples/android-ads
13 | level: BEGINNER
14 | icon: icons/admob_icon.png
15 | license: apache2
16 |
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/.google/packaging.yaml:
--------------------------------------------------------------------------------
1 | # GOOGLE SAMPLE PACKAGING DATA
2 | #
3 | # This file is used by Google as part of our samples packaging process.
4 | # End users may safely ignore this file. It has no relevance to other systems.
5 | ---
6 |
7 | status: PUBLISHED
8 | technologies: [Android, Google Play services, Google Mobile Ads]
9 | categories: [Monetization]
10 | languages: [Java]
11 | solutions: [Mobile]
12 | github: googlesamples/android-ads
13 | level: BEGINNER
14 | icon: icons/admob_icon.png
15 | license: apache2
16 |
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/.google/packaging.yaml:
--------------------------------------------------------------------------------
1 | # GOOGLE SAMPLE PACKAGING DATA
2 | #
3 | # This file is used by Google as part of our samples packaging process.
4 | # End users may safely ignore this file. It has no relevance to other systems.
5 | ---
6 |
7 | status: PUBLISHED
8 | technologies: [Android, Google Play services, Google Mobile Ads]
9 | categories: [Monetization]
10 | languages: [Java]
11 | solutions: [Mobile]
12 | github: googlesamples/android-ads
13 | level: BEGINNER
14 | icon: icons/admob_icon.png
15 | license: apache2
16 |
--------------------------------------------------------------------------------
/admanager/BannerExample/.google/packaging.yaml:
--------------------------------------------------------------------------------
1 | # GOOGLE SAMPLE PACKAGING DATA
2 | #
3 | # This file is used by Google as part of our samples packaging process.
4 | # End users may safely ignore this file. It has no relevance to other systems.
5 | ---
6 |
7 | status: PUBLISHED
8 | technologies: [Android, Google Play services, Google Mobile Ads]
9 | categories: [Monetization]
10 | languages: [Java]
11 | solutions: [Mobile]
12 | github: googlesamples/android-ads
13 | level: BEGINNER
14 | icon: icons/doubleclick_icon.png
15 | license: apache2
16 |
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/.google/packaging.yaml:
--------------------------------------------------------------------------------
1 | # GOOGLE SAMPLE PACKAGING DATA
2 | #
3 | # This file is used by Google as part of our samples packaging process.
4 | # End users may safely ignore this file. It has no relevance to other systems.
5 | ---
6 |
7 | status: PUBLISHED
8 | technologies: [Android, Google Play services, Google Mobile Ads]
9 | categories: [Monetization]
10 | languages: [Java]
11 | solutions: [Mobile]
12 | github: googlesamples/android-ads
13 | level: BEGINNER
14 | icon: icons/doubleclick_icon.png
15 | license: apache2
16 |
--------------------------------------------------------------------------------
/admanager/InterstitialExample/.google/packaging.yaml:
--------------------------------------------------------------------------------
1 | # GOOGLE SAMPLE PACKAGING DATA
2 | #
3 | # This file is used by Google as part of our samples packaging process.
4 | # End users may safely ignore this file. It has no relevance to other systems.
5 | ---
6 |
7 | status: PUBLISHED
8 | technologies: [Android, Google Play services, Google Mobile Ads]
9 | categories: [Monetization]
10 | languages: [Java]
11 | solutions: [Mobile]
12 | github: googlesamples/android-ads
13 | level: BEGINNER
14 | icon: icons/doubleclick_icon.png
15 | license: apache2
16 |
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/.google/packaging.yaml:
--------------------------------------------------------------------------------
1 | # GOOGLE SAMPLE PACKAGING DATA
2 | #
3 | # This file is used by Google as part of our samples packaging process.
4 | # End users may safely ignore this file. It has no relevance to other systems.
5 | ---
6 |
7 | status: PUBLISHED
8 | technologies: [Android, Google Play services, Google Mobile Ads]
9 | categories: [Monetization]
10 | languages: [Java]
11 | solutions: [Mobile]
12 | github: googlesamples/android-ads
13 | level: BEGINNER
14 | icon: icons/doubleclick_icon.png
15 | license: apache2
16 |
--------------------------------------------------------------------------------
/advanced/APIDemo/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 |
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | allprojects {
17 | repositories {
18 | google()
19 | jcenter()
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/.google/packaging.yaml:
--------------------------------------------------------------------------------
1 | # GOOGLE SAMPLE PACKAGING DATA
2 | #
3 | # This file is used by Google as part of our samples packaging process.
4 | # End users may safely ignore this file. It has no relevance to other systems.
5 | ---
6 |
7 | status: PUBLISHED
8 | technologies: [Android, Google Play services, Google Mobile Ads]
9 | categories: [Monetization]
10 | languages: [Java]
11 | solutions: [Mobile]
12 | github: googlesamples/android-ads
13 | level: INTERMEDIATE
14 | icon: icons/admob_icon.png
15 | license: apache2
16 |
--------------------------------------------------------------------------------
/admanager/BannerExample/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 |
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | allprojects {
17 | repositories {
18 | google()
19 | jcenter()
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/admanager/InterstitialExample/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 |
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | allprojects {
17 | repositories {
18 | google()
19 | jcenter()
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 |
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | allprojects {
17 | repositories {
18 | google()
19 | jcenter()
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/README.google:
--------------------------------------------------------------------------------
1 | The files in this directory are metadata and additional documentation to be
2 | included when the examples are posted to the Google Samples repository for use
3 | in Android Studio's "Import code sample" feature.
4 |
5 | Our moe configuration will ignore these files when deploying to the Google Ads
6 | Github repo. When deploying to the Google Samples Github repo, it will move the
7 | files into their proper locations and rename them to have their proper names.
8 |
9 | Google Ads Repo:
10 | https://github.com/googleads/googleads-mobile-android-examples
11 |
12 | Google Samples Repo:
13 | https://github.com/googlesamples/android-ads
14 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 |
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | allprojects {
17 | repositories {
18 | google()
19 | jcenter()
20 | }
21 | }
22 |
23 | task clean(type: Delete) {
24 | delete rootProject.buildDir
25 | }
26 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 28
5 | buildToolsVersion '28.0.3'
6 | defaultConfig {
7 | applicationId "com.google.android.gms.example.apidemo"
8 | minSdkVersion 15
9 | targetSdkVersion 28
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation 'androidx.appcompat:appcompat:1.0.2'
23 | implementation 'com.google.android.gms:play-services-ads:18.1.1'
24 | }
25 |
--------------------------------------------------------------------------------
/admob/BannerExample/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 28
5 | buildToolsVersion '28.0.3'
6 | defaultConfig {
7 | applicationId "com.google.android.gms.example.bannerexample"
8 | minSdkVersion 15
9 | targetSdkVersion 28
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation 'androidx.appcompat:appcompat:1.0.2'
23 | implementation 'com.google.android.gms:play-services-ads:18.1.1'
24 | }
25 |
--------------------------------------------------------------------------------
/admanager/BannerExample/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 28
5 | buildToolsVersion '28.0.3'
6 | defaultConfig {
7 | applicationId "com.google.android.gms.example.bannerexample"
8 | minSdkVersion 15
9 | targetSdkVersion 28
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation 'androidx.appcompat:appcompat:1.0.2'
23 | implementation 'com.google.android.gms:play-services-ads:18.1.1'
24 | }
25 |
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in ${ANDROID_SDK_HOME}/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in ${ANDROID_SDK_HOME}/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 28
5 | buildToolsVersion '28.0.3'
6 | defaultConfig {
7 | applicationId "com.google.example.gms.nativeadvancedexample"
8 | minSdkVersion 15
9 | targetSdkVersion 28
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation 'androidx.appcompat:appcompat:1.0.2'
23 | implementation 'com.google.android.gms:play-services-ads:18.1.1'
24 | }
25 |
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 28
5 | buildToolsVersion '28.0.3'
6 | defaultConfig {
7 | applicationId "com.google.example.gms.customrenderingexample"
8 | minSdkVersion 15
9 | targetSdkVersion 28
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation 'androidx.appcompat:appcompat:1.0.2'
23 | implementation 'com.google.android.gms:play-services-ads:18.1.1'
24 | }
25 |
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 28
5 | buildToolsVersion '28.0.3'
6 | defaultConfig {
7 | applicationId "com.google.android.gms.example.interstitialexample"
8 | minSdkVersion 15
9 | targetSdkVersion 28
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation 'androidx.appcompat:appcompat:1.0.2'
23 | implementation 'com.google.android.gms:play-services-ads:18.1.1'
24 | }
25 |
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 28
5 | buildToolsVersion '28.0.3'
6 | defaultConfig {
7 | applicationId "com.google.android.gms.example.interstitialexample"
8 | minSdkVersion 15
9 | targetSdkVersion 28
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation 'androidx.appcompat:appcompat:1.0.2'
23 | implementation 'com.google.android.gms:play-services-ads:18.1.1'
24 | }
25 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/layout/fragment_main.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 28
5 | buildToolsVersion '28.0.3'
6 | defaultConfig {
7 | applicationId "com.google.ads.rewardedvideoexample"
8 | minSdkVersion 15
9 | targetSdkVersion 28
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation 'androidx.appcompat:appcompat:1.0.2'
23 | implementation 'com.google.android.gms:play-services-ads:18.1.1'
24 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
25 | }
26 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/layout/banner_ad_container.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 28
5 | buildToolsVersion '28.0.3'
6 | defaultConfig {
7 | applicationId "com.google.ads.rewardedvideoexample"
8 | minSdkVersion 15
9 | targetSdkVersion 28
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation 'androidx.appcompat:appcompat:1.0.2'
23 | implementation 'com.google.android.gms:play-services-ads:18.1.1'
24 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
25 | }
26 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 28
5 | buildToolsVersion '28.0.3'
6 | defaultConfig {
7 | applicationId "com.google.android.gms.example.bannerrecyclerviewexample"
8 | minSdkVersion 15
9 | targetSdkVersion 28
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation 'androidx.appcompat:appcompat:1.0.2'
23 | implementation 'androidx.cardview:cardview:1.0.0'
24 | implementation 'androidx.recyclerview:recyclerview:1.0.0'
25 | implementation 'com.google.android.gms:play-services-ads:18.1.1'
26 | }
27 |
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
10 |
11 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
10 |
11 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/advanced/APIDemo/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 | android.enableJetifier=true
20 | android.useAndroidX=true
21 |
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
13 |
16 |
17 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
10 |
11 |
12 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/admob/BannerExample/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
10 |
11 |
12 |
15 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
11 |
12 |
15 |
16 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
10 |
11 |
12 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
11 |
12 |
13 |
16 |
17 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
11 |
12 |
13 |
16 |
17 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/layout/fragment_admob_ad_listener.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
16 |
17 |
25 |
26 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/layout/fragment_dfp_app_events.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
16 |
17 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
11 |
12 |
13 |
16 |
17 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/admob/BannerExample/app/src/main/res/layout/activity_my.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
17 |
18 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/res/layout/activity_my.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
17 |
18 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2015 Google, Inc.
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # Add project specific ProGuard rules here.
17 | # You can edit the include path and order by changing the proguardFiles
18 | # directive in build.gradle.
19 | #
20 | # For more details, see
21 | # http://developer.android.com/guide/developing/tools/proguard.html
22 |
23 | # Add any project specific keep options here:
24 |
25 | # If your project uses WebView with JS, uncomment the following
26 | # and specify the fully qualified class name to the JavaScript interface
27 | # class:
28 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
29 | # public *;
30 | #}
31 |
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2015 Google, Inc.
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # Add project specific ProGuard rules here.
17 | # You can edit the include path and order by changing the proguardFiles
18 | # directive in build.gradle.
19 | #
20 | # For more details, see
21 | # http://developer.android.com/guide/developing/tools/proguard.html
22 |
23 | # Add any project specific keep options here:
24 |
25 | # If your project uses WebView with JS, uncomment the following
26 | # and specify the fully qualified class name to the JavaScript interface
27 | # class:
28 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
29 | # public *;
30 | #}
31 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/java/com/google/android/gms/example/bannerrecyclerviewexample/MenuItem.java:
--------------------------------------------------------------------------------
1 | package com.google.android.gms.example.bannerrecyclerviewexample;
2 |
3 | /**
4 | * The {@link MenuItem} class.
5 | *
Defines the attributes for a restaurant menu item.
6 | */
7 | class MenuItem {
8 |
9 | private final String name;
10 | private final String description;
11 | private final String price;
12 | private final String category;
13 | private final String imageName;
14 |
15 | public MenuItem(String name, String description, String price, String category,
16 | String imageName) {
17 | this.name = name;
18 | this.description = description;
19 | this.price = price;
20 | this.category = category;
21 | this.imageName = imageName;
22 | }
23 |
24 | public String getName() {
25 | return name;
26 | }
27 |
28 | public String getDescription() {
29 | return description;
30 | }
31 |
32 | public String getPrice() {
33 | return price;
34 | }
35 |
36 | public String getCategory() {
37 | return category;
38 | }
39 |
40 | public String getImageName() {
41 | return imageName;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2015 Google, Inc.
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # Add project specific ProGuard rules here.
17 | # You can edit the include path and order by changing the proguardFiles
18 | # directive in build.gradle.
19 | #
20 | # For more details, see
21 | # http://developer.android.com/guide/developing/tools/proguard.html
22 |
23 | # Add any project specific keep options here:
24 |
25 | # If your project uses WebView with JS, uncomment the following
26 | # and specify the fully qualified class name to the JavaScript interface
27 | # class:
28 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
29 | # public *;
30 | #}
31 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2016 Google, Inc.
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # Add project specific ProGuard rules here.
17 | # You can edit the include path and order by changing the proguardFiles
18 | # directive in build.gradle.
19 | #
20 | # For more details, see
21 | # http://developer.android.com/guide/developing/tools/proguard.html
22 |
23 | # Add any project specific keep options here:
24 |
25 | # If your project uses WebView with JS, uncomment the following
26 | # and specify the fully qualified class name to the JavaScript interface
27 | # class:
28 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
29 | # public *;
30 | #}
31 |
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/src/main/res/layout/activity_my.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
17 |
18 |
25 |
26 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/src/main/res/layout/activity_my.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
17 |
18 |
25 |
26 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/layout/ad_simple_custom_template.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
16 |
17 |
23 |
24 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/layout/ad_simple_custom_template.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
16 |
17 |
23 |
24 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
3 |
9 |
10 |
12 |
16 |
17 |
22 |
24 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/layout/custom_video_controls.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
11 |
19 |
27 |
28 |
29 |
38 |
39 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/layout/fragment_admob_custom_mute_this_ad.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
11 |
12 |
17 |
18 |
23 |
30 |
31 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
11 |
12 |
17 |
18 |
24 |
25 |
33 |
34 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/admob/BannerExample/README.md:
--------------------------------------------------------------------------------
1 | AdMob Banner Sample
2 | ===================
3 |
4 | This sample demonstrates how to request and display an AdMob banner ad in an
5 | Android application. The app contains a single, "Hello World" activity with a
6 | banner at the bottom of its layout.
7 |
8 | Prerequisites
9 | -------------
10 |
11 | - Android API Level v14 or higher
12 | - Android Build Tools v26 or higher
13 | - Play Services Ads v11.8.0 or higher
14 |
15 | How to Build
16 | ------------
17 |
18 | This sample uses the Gradle build system. To build the project, use the
19 | "gradlew build" command.
20 |
21 | To open this project with
22 | [Android Studio](http://developer.android.com/studio/index.html), use the "Import
23 | project" choice in the welcome menu, and select the root directory of the
24 | project.
25 |
26 | Support
27 | -------
28 |
29 | You can see our [Developers' site](https://developers.google.com/mobile-ads-sdk/)
30 | for documentation on using the SDK, and join the developer community on
31 | [our forum](https://groups.google.com/forum/#!forum/google-admob-ads-sdk).
32 |
33 | License
34 | -------
35 |
36 | Copyright 2013 Google Inc.
37 |
38 | Licensed to the Apache Software Foundation (ASF) under one or more contributor
39 | license agreements. See the NOTICE file distributed with this work for
40 | additional information regarding copyright ownership. The ASF licenses this
41 | file to you under the Apache License, Version 2.0 (the "License"); you may not
42 | use this file except in compliance with the License. You may obtain a copy of
43 | the License at
44 |
45 | http://www.apache.org/licenses/LICENSE-2.0
46 |
47 | Unless required by applicable law or agreed to in writing, software
48 | distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
49 | WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
50 | License for the specific language governing permissions and limitations under
51 | the License.
52 |
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/README.md:
--------------------------------------------------------------------------------
1 | AdMob Rewarded Video Sample
2 | ===================================
3 |
4 | This sample demonstrates how to request and display a rewarded video ad from
5 | AdMob in an Android application. It uses a countdown timer to simulate
6 | a game and rewards 'Coins' for watching the video ad.
7 |
8 | Prerequisites
9 | -------------
10 |
11 | - Android API Level v14 or higher
12 | - Android Build Tools v26 or higher
13 |
14 | How to Build
15 | ------------
16 |
17 | This sample uses the Gradle build system. To build the project, use the
18 | "gradlew build" command.
19 |
20 | To open this project with
21 | [Android Studio](http://developer.android.com/studio/index.html), use the "Import
22 | project" choice in the welcome menu, and select the root directory of the
23 | project.
24 |
25 | Support
26 | -------
27 |
28 | You can see our [Developers' site](https://developers.google.com/mobile-ads-sdk/)
29 | for documentation on using the SDK, and join the developer community on
30 | [our forum](https://groups.google.com/forum/#!forum/google-admob-ads-sdk).
31 |
32 | License
33 | -------
34 |
35 | Copyright 2015 Google Inc.
36 |
37 | Licensed to the Apache Software Foundation (ASF) under one or more contributor
38 | license agreements. See the NOTICE file distributed with this work for
39 | additional information regarding copyright ownership. The ASF licenses this
40 | file to you under the Apache License, Version 2.0 (the "License"); you may not
41 | use this file except in compliance with the License. You may obtain a copy of
42 | the License at
43 |
44 | http://www.apache.org/licenses/LICENSE-2.0
45 |
46 | Unless required by applicable law or agreed to in writing, software
47 | distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
48 | WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
49 | License for the specific language governing permissions and limitations under
50 | the License.
51 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/java/com/google/android/gms/example/apidemo/DatePickerFragment.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2015 Google, Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.google.android.gms.example.apidemo;
17 |
18 | import android.app.DatePickerDialog;
19 | import android.app.Dialog;
20 | import android.os.Bundle;
21 | import androidx.annotation.NonNull;
22 | import androidx.fragment.app.DialogFragment;
23 |
24 | import java.util.Calendar;
25 |
26 | /**
27 | * The {@link DatePickerFragment} displays a simple date picker for use in other fragments and
28 | * activities.
29 | */
30 | public class DatePickerFragment extends DialogFragment {
31 |
32 | private DatePickerDialog.OnDateSetListener onDateSetListener;
33 |
34 | public DatePickerFragment() {
35 | }
36 |
37 | public void setOnDateSetListener(DatePickerDialog.OnDateSetListener listener) {
38 | onDateSetListener = listener;
39 | }
40 |
41 | @NonNull
42 | @Override
43 | public Dialog onCreateDialog(Bundle savedInstanceState) {
44 | final Calendar calendar = Calendar.getInstance();
45 |
46 | int year = calendar.get(Calendar.YEAR);
47 | int month = calendar.get(Calendar.MONTH);
48 | int day = calendar.get(Calendar.DAY_OF_MONTH);
49 |
50 | return new DatePickerDialog(getActivity(), onDateSetListener, year, month, day);
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/admanager/BannerExample/README.md:
--------------------------------------------------------------------------------
1 | Google Ad Manager Banner Sample
2 | =========================
3 |
4 | This sample demonstrates how to request and display an Ad Manager
5 | banner ad in an Android application. The app contains a single, "Hello World"
6 | activity with a banner at the bottom of its layout.
7 |
8 | Prerequisites
9 | -------------
10 |
11 | - Android API Level v14 or higher
12 | - Android Build Tools v26 or higher
13 | - Play Services Ads v11.8.0 or higher
14 |
15 | How to Build
16 | ------------
17 |
18 | This sample uses the Gradle build system. To build the project, use the
19 | "gradlew build" command.
20 |
21 | To open this project with
22 | [Android Studio](http://developer.android.com/studio/index.html), use the "Import
23 | project" choice in the welcome menu, and select the root directory of the
24 | project.
25 |
26 | Support
27 | -------
28 |
29 | You can see our [Developers' site](https://developers.google.com/mobile-ads-sdk/)
30 | for documentation on using the SDK, and join the developer community on
31 | [our forum](https://groups.google.com/forum/#!forum/google-admob-ads-sdk).
32 |
33 | License
34 | -------
35 |
36 | Copyright 2013 Google Inc.
37 |
38 | Licensed to the Apache Software Foundation (ASF) under one or more contributor
39 | license agreements. See the NOTICE file distributed with this work for
40 | additional information regarding copyright ownership. The ASF licenses this
41 | file to you under the Apache License, Version 2.0 (the "License"); you may not
42 | use this file except in compliance with the License. You may obtain a copy of
43 | the License at
44 |
45 | http://www.apache.org/licenses/LICENSE-2.0
46 |
47 | Unless required by applicable law or agreed to in writing, software
48 | distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
49 | WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
50 | License for the specific language governing permissions and limitations under
51 | the License.
52 |
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/README.md:
--------------------------------------------------------------------------------
1 | Google Ad Manager Rewarded Video Sample
2 | ===================================
3 |
4 | This sample demonstrates how to request and display a rewarded video ad from Ad Manager in an Android application. It uses a countdown timer to simulate
5 | a game and rewards 'Coins' for watching the video ad.
6 |
7 | Prerequisites
8 | -------------
9 |
10 | - Android API Level v14 or higher
11 | - Android Build Tools v26 or higher
12 | - Play Services Ads v11.8.0 or higher
13 |
14 | How to Build
15 | ------------
16 |
17 | This sample uses the Gradle build system. To build the project, use the
18 | "gradlew build" command.
19 |
20 | To open this project with
21 | [Android Studio](http://developer.android.com/studio/index.html), use the "Import
22 | project" choice in the welcome menu, and select the root directory of the
23 | project.
24 |
25 | Support
26 | -------
27 |
28 | You can see our [Developers' site](https://developers.google.com/mobile-ads-sdk/)
29 | for documentation on using the SDK, and join the developer community on
30 | [our forum](https://groups.google.com/forum/#!forum/google-admob-ads-sdk).
31 |
32 | License
33 | -------
34 |
35 | Copyright 2015 Google Inc.
36 |
37 | Licensed to the Apache Software Foundation (ASF) under one or more contributor
38 | license agreements. See the NOTICE file distributed with this work for
39 | additional information regarding copyright ownership. The ASF licenses this
40 | file to you under the Apache License, Version 2.0 (the "License"); you may not
41 | use this file except in compliance with the License. You may obtain a copy of
42 | the License at
43 |
44 | http://www.apache.org/licenses/LICENSE-2.0
45 |
46 | Unless required by applicable law or agreed to in writing, software
47 | distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
48 | WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
49 | License for the specific language governing permissions and limitations under
50 | the License.
51 |
--------------------------------------------------------------------------------
/advanced/APIDemo/README.md:
--------------------------------------------------------------------------------
1 | Advanced API Demos for Android
2 | ==============================
3 |
4 | This is an advanced example application that covers a number of features in
5 | the AdMob and DoubleClick For Publishers APIs. It uses methods provided by the
6 | Mobile Ads SDK for targeting, sizing, exclusions, custom events, and more.
7 |
8 | Prerequisites
9 | -------------
10 |
11 | - Android API Level v14 or higher
12 | - Android Build Tools v26 or higher
13 | - Play Services Ads v11.8.0 or higher
14 |
15 | How to Build
16 | ------------
17 |
18 | This sample uses the Gradle build system. To build the project, use the
19 | "gradlew build" command.
20 |
21 | To open this project with
22 | [Android Studio](http://developer.android.com/studio/index.html), use the "Import
23 | project" choice in the welcome menu, and select the root directory of the
24 | project.
25 |
26 | Support
27 | -------
28 |
29 | You can see our [Developers' site](https://developers.google.com/mobile-ads-sdk/)
30 | for documentation on using the SDK, and join the developer community on
31 | [our forum](https://groups.google.com/forum/#!forum/google-admob-ads-sdk).
32 |
33 | License
34 | -------
35 |
36 | Copyright 2015 Google Inc.
37 |
38 | Licensed to the Apache Software Foundation (ASF) under one or more contributor
39 | license agreements. See the NOTICE file distributed with this work for
40 | additional information regarding copyright ownership. The ASF licenses this
41 | file to you under the Apache License, Version 2.0 (the "License"); you may not
42 | use this file except in compliance with the License. You may obtain a copy of
43 | the License at
44 |
45 | http://www.apache.org/licenses/LICENSE-2.0
46 |
47 | Unless required by applicable law or agreed to in writing, software
48 | distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
49 | WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
50 | License for the specific language governing permissions and limitations under
51 | the License.
52 |
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/README.md:
--------------------------------------------------------------------------------
1 | AdMob Native Advanced Sample
2 | ============================
3 |
4 | This sample demonstrates how to request and display an ad from AdMob Native Ads
5 | Advanced in an Android application. The app displays an ad at the top of its
6 | activity, and offers a few checkboxes and a button you can use to request
7 | different native ad formats.
8 |
9 | Prerequisites
10 | -------------
11 |
12 | - Android API Level v14 or higher
13 | - Android Build Tools v26 or higher
14 | - Play Services Ads v11.8.0 or higher
15 |
16 | How to Build
17 | ------------
18 |
19 | This sample uses the Gradle build system. To build the project, use the
20 | "gradlew build" command.
21 |
22 | To open this project with
23 | [Android Studio](http://developer.android.com/studio/index.html), use the "Import
24 | project" choice in the welcome menu, and select the root directory of the
25 | project.
26 |
27 | Support
28 | -------
29 |
30 | You can see our [Developers' site](https://developers.google.com/mobile-ads-sdk/)
31 | for documentation on using the SDK, and join the developer community on
32 | [our forum](https://groups.google.com/forum/#!forum/google-admob-ads-sdk).
33 |
34 | License
35 | -------
36 |
37 | Copyright 2015 Google Inc.
38 |
39 | Licensed to the Apache Software Foundation (ASF) under one or more contributor
40 | license agreements. See the NOTICE file distributed with this work for
41 | additional information regarding copyright ownership. The ASF licenses this
42 | file to you under the Apache License, Version 2.0 (the "License"); you may not
43 | use this file except in compliance with the License. You may obtain a copy of
44 | the License at
45 |
46 | http://www.apache.org/licenses/LICENSE-2.0
47 |
48 | Unless required by applicable law or agreed to in writing, software
49 | distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
50 | WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
51 | License for the specific language governing permissions and limitations under
52 | the License.
53 |
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/README.md:
--------------------------------------------------------------------------------
1 | Google Ad Manager Custom Rendering Sample
2 | ===================================
3 |
4 | This sample demonstrates how to request and display an ad from Ad Manager Custom Rendering in an Android application. The app displays an ad
5 | at the top of its activity, and offers a few checkboxes and a button you can use
6 | to request different native ad formats.
7 |
8 | Prerequisites
9 | -------------
10 |
11 | - Android API Level v14 or higher
12 | - Android Build Tools v26 or higher
13 | - Play Services Ads v11.8.0 or higher
14 |
15 | How to Build
16 | ------------
17 |
18 | This sample uses the Gradle build system. To build the project, use the
19 | "gradlew build" command.
20 |
21 | To open this project with
22 | [Android Studio](http://developer.android.com/studio/index.html), use the "Import
23 | project" choice in the welcome menu, and select the root directory of the
24 | project.
25 |
26 | Support
27 | -------
28 |
29 | You can see our [Developers' site](https://developers.google.com/mobile-ads-sdk/)
30 | for documentation on using the SDK, and join the developer community on
31 | [our forum](https://groups.google.com/forum/#!forum/google-admob-ads-sdk).
32 |
33 | License
34 | -------
35 |
36 | Copyright 2015 Google Inc.
37 |
38 | Licensed to the Apache Software Foundation (ASF) under one or more contributor
39 | license agreements. See the NOTICE file distributed with this work for
40 | additional information regarding copyright ownership. The ASF licenses this
41 | file to you under the Apache License, Version 2.0 (the "License"); you may not
42 | use this file except in compliance with the License. You may obtain a copy of
43 | the License at
44 |
45 | http://www.apache.org/licenses/LICENSE-2.0
46 |
47 | Unless required by applicable law or agreed to in writing, software
48 | distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
49 | WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
50 | License for the specific language governing permissions and limitations under
51 | the License.
52 |
--------------------------------------------------------------------------------
/admob/InterstitialExample/README.md:
--------------------------------------------------------------------------------
1 | AdMob Interstitial Sample
2 | =========================
3 |
4 | This sample demonstrates how to request and display an AdMob interstitial ad
5 | in an Android application. The code illustrates how to instantiate an
6 | InterstitialAd object, preload an interstitial, and then display it.
7 |
8 | The app's UI contains a single activity with a countdown timer. When the timer
9 | reaches zero, the user can tap a "retry" button to display an interstitial and
10 | begin the countdown over again.
11 |
12 | Prerequisites
13 | -------------
14 |
15 | - Android API Level v14 or higher
16 | - Android Build Tools v26 or higher
17 | - Play Services Ads v11.8.0 or higher
18 |
19 | How to Build
20 | ------------
21 |
22 | This sample uses the Gradle build system. To build the project, use the
23 | "gradlew build" command.
24 |
25 | To open this project with
26 | [Android Studio](http://developer.android.com/studio/index.html), use the "Import
27 | project" choice in the welcome menu, and select the root directory of the
28 | project.
29 |
30 | Support
31 | -------
32 |
33 | You can see our [Developers' site](https://developers.google.com/mobile-ads-sdk/)
34 | for documentation on using the SDK, and join the developer community on
35 | [our forum](https://groups.google.com/forum/#!forum/google-admob-ads-sdk).
36 |
37 | License
38 | -------
39 |
40 | Copyright 2013 Google Inc.
41 |
42 | Licensed to the Apache Software Foundation (ASF) under one or more contributor
43 | license agreements. See the NOTICE file distributed with this work for
44 | additional information regarding copyright ownership. The ASF licenses this
45 | file to you under the Apache License, Version 2.0 (the "License"); you may not
46 | use this file except in compliance with the License. You may obtain a copy of
47 | the License at
48 |
49 | http://www.apache.org/licenses/LICENSE-2.0
50 |
51 | Unless required by applicable law or agreed to in writing, software
52 | distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
53 | WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
54 | License for the specific language governing permissions and limitations under
55 | the License.
56 |
--------------------------------------------------------------------------------
/admanager/InterstitialExample/README.md:
--------------------------------------------------------------------------------
1 | Google Ad Manager Interstitial Sample
2 | ===============================
3 |
4 | This sample demonstrates how to request and display an Ad Manager interstitial ad in an Android application. The code illustrates how
5 | to instantiate a PublisherInterstitialAd object, preload an interstitial, and
6 | then display it.
7 |
8 | The app's UI contains a single activity with a countdown timer. When the timer
9 | reaches zero, the user can tap a "retry" button to display an interstitial and
10 | begin the countdown over again.
11 |
12 | Prerequisites
13 | -------------
14 |
15 | - Android API Level v14 or higher
16 | - Android Build Tools v26 or higher
17 | - Play Services Ads v11.8.0 or higher
18 |
19 | How to Build
20 | ------------
21 |
22 | This sample uses the Gradle build system. To build the project, use the
23 | "gradlew build" command.
24 |
25 | To open this project with
26 | [Android Studio](http://developer.android.com/studio/index.html), use the "Import
27 | project" choice in the welcome menu, and select the root directory of the
28 | project.
29 |
30 | Support
31 | -------
32 |
33 | You can see our [Developers' site](https://developers.google.com/mobile-ads-sdk/)
34 | for documentation on using the SDK, and join the developer community on
35 | [our forum](https://groups.google.com/forum/#!forum/google-admob-ads-sdk).
36 |
37 | License
38 | -------
39 |
40 | Copyright 2013 Google Inc.
41 |
42 | Licensed to the Apache Software Foundation (ASF) under one or more contributor
43 | license agreements. See the NOTICE file distributed with this work for
44 | additional information regarding copyright ownership. The ASF licenses this
45 | file to you under the Apache License, Version 2.0 (the "License"); you may not
46 | use this file except in compliance with the License. You may obtain a copy of
47 | the License at
48 |
49 | http://www.apache.org/licenses/LICENSE-2.0
50 |
51 | Unless required by applicable law or agreed to in writing, software
52 | distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
53 | WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
54 | License for the specific language governing permissions and limitations under
55 | the License.
56 |
--------------------------------------------------------------------------------
/admanager/BannerExample/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2013 Google, Inc.
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # Add project specific ProGuard rules here.
17 | # You can edit the include path and order by changing the proguardFiles
18 | # directive in build.gradle.
19 | #
20 | # For more details, see
21 | # http://developer.android.com/guide/developing/tools/proguard.html
22 |
23 | # Add any project specific keep options here:
24 |
25 | # If your project uses WebView with JS, uncomment the following
26 | # and specify the fully qualified class name to the JavaScript interface
27 | # class:
28 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
29 | # public *;
30 | #}
31 |
32 | # The following rules are used to strip any non essential Google Play Services classes and method.
33 |
34 | # For Google Play Services
35 | -keep public class com.google.android.gms.ads.**{
36 | public *;
37 | }
38 |
39 | # For old ads classes
40 | -keep public class com.google.ads.**{
41 | public *;
42 | }
43 |
44 | # For mediation
45 | -keepattributes *Annotation*
46 |
47 | # Other required classes for Google Play Services
48 | # Read more at http://developer.android.com/google/play-services/setup.html
49 | -keep class * extends java.util.ListResourceBundle {
50 | protected Object[][] getContents();
51 | }
52 |
53 | -keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
54 | public static final *** NULL;
55 | }
56 |
57 | -keepnames @com.google.android.gms.common.annotation.KeepName class *
58 | -keepclassmembernames class * {
59 | @com.google.android.gms.common.annotation.KeepName *;
60 | }
61 |
62 | -keepnames class * implements android.os.Parcelable {
63 | public static final ** CREATOR;
64 | }
65 |
--------------------------------------------------------------------------------
/admob/BannerExample/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2013 Google, Inc.
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # Add project specific ProGuard rules here.
17 | # You can edit the include path and order by changing the proguardFiles
18 | # directive in build.gradle.
19 | #
20 | # For more details, see
21 | # http://developer.android.com/guide/developing/tools/proguard.html
22 |
23 | # Add any project specific keep options here:
24 |
25 | # If your project uses WebView with JS, uncomment the following
26 | # and specify the fully qualified class name to the JavaScript interface
27 | # class:
28 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
29 | # public *;
30 | #}
31 |
32 | # The following rules are used to strip any non essential Google Play Services classes and method.
33 |
34 | # For Google Play Services
35 | -keep public class com.google.android.gms.ads.**{
36 | public *;
37 | }
38 |
39 | # For old ads classes
40 | -keep public class com.google.ads.**{
41 | public *;
42 | }
43 |
44 | # For mediation
45 | -keepattributes *Annotation*
46 |
47 | # Other required classes for Google Play Services
48 | # Read more at http://developer.android.com/google/play-services/setup.html
49 | -keep class * extends java.util.ListResourceBundle {
50 | protected Object[][] getContents();
51 | }
52 |
53 | -keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
54 | public static final *** NULL;
55 | }
56 |
57 | -keepnames @com.google.android.gms.common.annotation.KeepName class *
58 | -keepclassmembernames class * {
59 | @com.google.android.gms.common.annotation.KeepName *;
60 | }
61 |
62 | -keepnames class * implements android.os.Parcelable {
63 | public static final ** CREATOR;
64 | }
65 |
--------------------------------------------------------------------------------
/admob/InterstitialExample/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2013 Google, Inc.
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # Add project specific ProGuard rules here.
17 | # You can edit the include path and order by changing the proguardFiles
18 | # directive in build.gradle.
19 | #
20 | # For more details, see
21 | # http://developer.android.com/guide/developing/tools/proguard.html
22 |
23 | # Add any project specific keep options here:
24 |
25 | # If your project uses WebView with JS, uncomment the following
26 | # and specify the fully qualified class name to the JavaScript interface
27 | # class:
28 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
29 | # public *;
30 | #}
31 |
32 | # The following rules are used to strip any non essential Google Play Services classes and method.
33 |
34 | # For Google Play Services
35 | -keep public class com.google.android.gms.ads.**{
36 | public *;
37 | }
38 |
39 | # For old ads classes
40 | -keep public class com.google.ads.**{
41 | public *;
42 | }
43 |
44 | # For mediation
45 | -keepattributes *Annotation*
46 |
47 | # Other required classes for Google Play Services
48 | # Read more at http://developer.android.com/google/play-services/setup.html
49 | -keep class * extends java.util.ListResourceBundle {
50 | protected Object[][] getContents();
51 | }
52 |
53 | -keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
54 | public static final *** NULL;
55 | }
56 |
57 | -keepnames @com.google.android.gms.common.annotation.KeepName class *
58 | -keepclassmembernames class * {
59 | @com.google.android.gms.common.annotation.KeepName *;
60 | }
61 |
62 | -keepnames class * implements android.os.Parcelable {
63 | public static final ** CREATOR;
64 | }
65 |
--------------------------------------------------------------------------------
/admanager/InterstitialExample/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2013 Google, Inc.
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 |
16 | # Add project specific ProGuard rules here.
17 | # You can edit the include path and order by changing the proguardFiles
18 | # directive in build.gradle.
19 | #
20 | # For more details, see
21 | # http://developer.android.com/guide/developing/tools/proguard.html
22 |
23 | # Add any project specific keep options here:
24 |
25 | # If your project uses WebView with JS, uncomment the following
26 | # and specify the fully qualified class name to the JavaScript interface
27 | # class:
28 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
29 | # public *;
30 | #}
31 |
32 | # The following rules are used to strip any non essential Google Play Services classes and method.
33 |
34 | # For Google Play Services
35 | -keep public class com.google.android.gms.ads.**{
36 | public *;
37 | }
38 |
39 | # For old ads classes
40 | -keep public class com.google.ads.**{
41 | public *;
42 | }
43 |
44 | # For mediation
45 | -keepattributes *Annotation*
46 |
47 | # Other required classes for Google Play Services
48 | # Read more at http://developer.android.com/google/play-services/setup.html
49 | -keep class * extends java.util.ListResourceBundle {
50 | protected Object[][] getContents();
51 | }
52 |
53 | -keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
54 | public static final *** NULL;
55 | }
56 |
57 | -keepnames @com.google.android.gms.common.annotation.KeepName class *
58 | -keepclassmembernames class * {
59 | @com.google.android.gms.common.annotation.KeepName *;
60 | }
61 |
62 | -keepnames class * implements android.os.Parcelable {
63 | public static final ** CREATOR;
64 | }
65 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/README.md:
--------------------------------------------------------------------------------
1 | Banner RecyclerView Sample
2 | ============================================
3 |
4 | This sample demonstrates how to request and display ads from AdMob Banner ads in an
5 | Android application using the RecyclerView widget.
6 |
7 | The RecyclerView widget is a more advanced and flexible version of ListView.
8 | This widget helps simplify the display and handling of large data sets by
9 | allowing the layout manager to determine when to reuse (recycle) item views that
10 | are no longer visible to the user. Recycling views improves performance by
11 | avoiding the creation of unnecessary views or performing expensive
12 | findViewByID() lookups.
13 |
14 | Prerequisites
15 | -------------
16 |
17 | - Android API Level v14 or higher
18 | - Android Build Tools v25 or higher
19 | - Play Services Ads v11.8.0 or higher
20 |
21 | How to Build
22 | ------------
23 |
24 | This sample uses the Gradle build system. To build the project, use the
25 | "gradlew build" command.
26 |
27 | To open this project with
28 | [Android Studio](http://developer.android.com/sdk/index.html), use the "Import
29 | project" choice in the welcome menu, and select the root directory of the
30 | project.
31 |
32 | Support
33 | -------
34 |
35 | You can find more information about Banner ads at our
36 | [Developer Site](https://developers.google.com/mobile-ads-sdk/). You can also join the
37 | developer community on
38 | [our forum](https://groups.google.com/forum/#!forum/google-admob-ads-sdk).
39 |
40 | License
41 | -------
42 |
43 | Copyright 2016 Google Inc.
44 |
45 | Licensed to the Apache Software Foundation (ASF) under one or more contributor
46 | license agreements. See the NOTICE file distributed with this work for
47 | additional information regarding copyright ownership. The ASF licenses this
48 | file to you under the Apache License, Version 2.0 (the "License"); you may not
49 | use this file except in compliance with the License. You may obtain a copy of
50 | the License at
51 |
52 | http://www.apache.org/licenses/LICENSE-2.0
53 |
54 | Unless required by applicable law or agreed to in writing, software
55 | distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
56 | WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
57 | License for the specific language governing permissions and limitations under
58 | the License.
59 |
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
11 |
12 |
17 |
18 |
25 |
26 |
32 |
33 |
39 |
40 |
48 |
49 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/advanced/APIDemo/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/admob/BannerExample/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/admanager/BannerExample/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/admob/InterstitialExample/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/admanager/BannerExample/app/src/main/java/com/google/android/gms/example/bannerexample/MyActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 Google, Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.google.android.gms.example.bannerexample;
17 |
18 | import android.os.Bundle;
19 | import androidx.appcompat.app.AppCompatActivity;
20 | import com.google.android.gms.ads.doubleclick.PublisherAdRequest;
21 | import com.google.android.gms.ads.doubleclick.PublisherAdView;
22 |
23 | /**
24 | * Main Activity. Inflates main activity xml and child fragments.
25 | */
26 | public class MyActivity extends AppCompatActivity {
27 |
28 | private PublisherAdView adView;
29 |
30 | @Override
31 | protected void onCreate(Bundle savedInstanceState) {
32 | super.onCreate(savedInstanceState);
33 | setContentView(R.layout.activity_my);
34 |
35 | // Gets the ad view defined in layout/ad_fragment.xml with ad unit ID set in
36 | // values/strings.xml.
37 | adView = findViewById(R.id.ad_view);
38 |
39 | // Create an ad request. Check logcat output for the hashed device ID to
40 | // get test ads on a physical device. e.g.
41 | // "Use AdRequest.Builder.addTestDevice("ABCDEF012345") to get test ads on this device."
42 | PublisherAdRequest adRequest = new PublisherAdRequest.Builder().build();
43 |
44 | // Start loading the ad in the background.
45 | adView.loadAd(adRequest);
46 | }
47 |
48 | /** Called when leaving the activity */
49 | @Override
50 | public void onPause() {
51 | if (adView != null) {
52 | adView.pause();
53 | }
54 | super.onPause();
55 | }
56 |
57 | /** Called when returning to the activity */
58 | @Override
59 | public void onResume() {
60 | super.onResume();
61 | if (adView != null) {
62 | adView.resume();
63 | }
64 | }
65 |
66 | /** Called before the activity is destroyed */
67 | @Override
68 | public void onDestroy() {
69 | if (adView != null) {
70 | adView.destroy();
71 | }
72 | super.onDestroy();
73 | }
74 | }
75 |
--------------------------------------------------------------------------------
/admanager/InterstitialExample/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/admanager/CustomRenderingExample/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/layout/fragment_admob_banner_sizes.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
17 |
18 |
29 |
30 |
36 |
37 |
42 |
43 |
50 |
51 |
52 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/admob/NativeAdvancedExample/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/advanced/BannerRecyclerViewExample/app/src/main/res/layout/menu_item_container.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
15 |
16 |
23 |
24 |
32 |
33 |
40 |
41 |
48 |
49 |
57 |
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/layout/fragment_dfp_custom_targeting.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
17 |
18 |
29 |
30 |
36 |
37 |
42 |
43 |
50 |
51 |
52 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/advanced/APIDemo/app/src/main/res/layout/fragment_dfp_ppid.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
18 |
19 |
30 |
31 |
37 |
38 |
44 |
45 |
52 |
53 |
54 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/admob/RewardedVideoExample/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
19 |
20 |
30 |
31 |
40 |
41 |
50 |
51 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/admanager/RewardedVideoExample/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
19 |
20 |
30 |
31 |
40 |
41 |
50 |
51 |
61 |
62 |
63 |
--------------------------------------------------------------------------------