Skip to content

Commit 3f369e5

Browse files
committed
Updating samples for Studio 3.0 and SDK 11.6.0.
1 parent 06c6f7f commit 3f369e5

File tree

150 files changed

+191
-573
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+191
-573
lines changed

README.md

Lines changed: 11 additions & 11 deletions

java/admob/BannerExample/app/build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion 26
5-
buildToolsVersion "26.0.1"
6-
5+
buildToolsVersion "26.0.2"
76
defaultConfig {
87
applicationId "com.google.android.gms.example.bannerexample"
98
minSdkVersion 14
@@ -21,7 +20,5 @@ android {
2120

2221
dependencies {
2322
compile 'com.android.support:appcompat-v7:26.1.0'
24-
compile 'com.google.firebase:firebase-ads:11.4.0'
23+
compile 'com.google.android.gms:play-services-ads:11.6.0'
2524
}
26-
27-
apply plugin: 'com.google.gms.google-services'

java/admob/BannerExample/app/google-services.json

Lines changed: 0 additions & 64 deletions
This file was deleted.
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="com.google.android.gms.example.bannerexample" >
4-
<!-- Include required permissions for Google Mobile Ads to run-->
5-
<uses-permission android:name="android.permission.INTERNET"/>
6-
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
74

85
<application
96
android:allowBackup="true"
10-
android:icon="@drawable/ic_launcher"
7+
android:icon="@mipmap/ic_launcher"
118
android:label="@string/app_name"
129
android:theme="@style/AppTheme" >
13-
<!--This meta-data tag is required to use Google Play Services.-->
14-
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/>
1510
<activity
1611
android:name=".MyActivity"
1712
android:label="@string/app_name" >
@@ -21,10 +16,6 @@
2116
<category android:name="android.intent.category.LAUNCHER" />
2217
</intent-filter>
2318
</activity>
24-
<!--Include the AdActivity configChanges and theme. -->
25-
<activity android:name="com.google.android.gms.ads.AdActivity"
26-
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
27-
android:theme="@android:style/Theme.Translucent" />
2819
</application>
2920

3021
</manifest>

java/admob/BannerExample/app/src/main/java/com/google/android/gms/example/bannerexample/MyActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected void onCreate(Bundle savedInstanceState) {
4141

4242
// Gets the ad view defined in layout/ad_fragment.xml with ad unit ID set in
4343
// values/strings.xml.
44-
mAdView = (AdView) findViewById(R.id.ad_view);
44+
mAdView = findViewById(R.id.ad_view);
4545

4646
// Create an ad request. Check your logcat output for the hashed device ID to
4747
// get test ads on a physical device. e.g.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3.09 KB

0 commit comments

Comments
 (0)