From 291e50479ad12ade313ebfa86d47cb9af4d8cc57 Mon Sep 17 00:00:00 2001 From: Mikenso Date: Sun, 12 Dec 2021 21:02:08 +0700 Subject: [PATCH] feat(android, sdks)!: update to the latest v20 android admob sdk (#32) * Add onAdClicked() and Event opened * Add fullScreenContentCallback for rewarded ad * Up compile sdk version for example * Lint fixes * Move setting test ids to ReactNativeGoogleAdsModule * Remove smart banner * Remove AdEvent left application BREAKING CHANGES: Please refer to upstream guides for suggestions on new usage. https://developers.google.com/admob/ios/migration and https://developers.google.com/admob/android/migration - compileSdkVersion now 31, change your app android build.gradle to 31 if you have not already. Note that JDK11 is required for stable compilation on compileSdkVersion 31, JDK8 has internal compiler errors with SDK31 - onAdLeftApplication removed from the underlying SDK, use react-native built in AppState to determine app went to background - Smart banner ads removed; use adaptive banner ads. Set height/width explicitly taking into account device size --- android/build.gradle | 2 +- ...actNativeGoogleAdsBannerAdViewManager.java | 22 +--- .../googleads/ReactNativeGoogleAdsCommon.java | 17 --- .../googleads/ReactNativeGoogleAdsEvent.java | 1 - ...eactNativeGoogleAdsInterstitialModule.java | 82 ++++++------ .../googleads/ReactNativeGoogleAdsModule.java | 22 ++++ .../ReactNativeGoogleAdsRewardedModule.java | 120 +++++++++--------- example/android/build.gradle | 2 +- ios/RNGoogleAds/RNGoogleAdsCommon.h | 1 - ios/RNGoogleAds/RNGoogleAdsCommon.m | 1 - lib/AdEventType.js | 1 - lib/index.d.ts | 13 -- type-test.ts | 3 - 13 files changed, 135 insertions(+), 152 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 777a74cd..c24e0119 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -88,7 +88,7 @@ repositories { } dependencies { - implementation("com.google.android.gms:play-services-ads:19.8.0") { force = true; } + implementation("com.google.android.gms:play-services-ads:20.5.0") { force = true; } implementation "com.google.android.ads.consent:consent-library:${ReactNative.ext.getVersion("ads", "consent")}" } diff --git a/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsBannerAdViewManager.java b/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsBannerAdViewManager.java index 3cf9bdfb..8363084d 100644 --- a/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsBannerAdViewManager.java +++ b/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsBannerAdViewManager.java @@ -17,6 +17,7 @@ * */ +import androidx.annotation.NonNull; import com.facebook.react.bridge.Arguments; import com.facebook.react.bridge.ReadableMap; import com.facebook.react.bridge.WritableMap; @@ -31,6 +32,7 @@ import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdSize; import com.google.android.gms.ads.AdView; +import com.google.android.gms.ads.LoadAdError; import java.util.Map; import javax.annotation.Nonnull; @@ -40,7 +42,6 @@ public class ReactNativeGoogleAdsBannerAdViewManager extends SimpleViewManager devices = - Objects.requireNonNull(adRequestOptions.getArray("testDevices")).toArrayList(); - - for (Object device : devices) { - String id = (String) device; - - if (id.equals("EMULATOR")) { - builder.addTestDevice(AdRequest.DEVICE_ID_EMULATOR); - } else { - builder.addTestDevice(id); - } - } - } - if (adRequestOptions.hasKey("contentUrl")) { builder.setContentUrl(Objects.requireNonNull(adRequestOptions.getString("contentUrl"))); } diff --git a/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsEvent.java b/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsEvent.java index c574f81b..2f61c887 100644 --- a/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsEvent.java +++ b/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsEvent.java @@ -29,7 +29,6 @@ public class ReactNativeGoogleAdsEvent implements NativeEvent { public static final String GOOGLE_ADS_EVENT_ERROR = "error"; public static final String GOOGLE_ADS_EVENT_OPENED = "opened"; public static final String GOOGLE_ADS_EVENT_CLICKED = "clicked"; - public static final String GOOGLE_ADS_EVENT_LEFT_APPLICATION = "left_application"; public static final String GOOGLE_ADS_EVENT_CLOSED = "closed"; public static final String GOOGLE_ADS_EVENT_REWARDED_LOADED = "rewarded_loaded"; diff --git a/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsInterstitialModule.java b/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsInterstitialModule.java index da987392..de934e25 100644 --- a/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsInterstitialModule.java +++ b/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsInterstitialModule.java @@ -17,26 +17,29 @@ * */ -import static io.invertase.googleads.ReactNativeGoogleAdsCommon.buildAdRequest; import static io.invertase.googleads.ReactNativeGoogleAdsCommon.getCodeAndMessageFromAdErrorCode; import static io.invertase.googleads.ReactNativeGoogleAdsCommon.sendAdEvent; import static io.invertase.googleads.ReactNativeGoogleAdsEvent.GOOGLE_ADS_EVENT_CLICKED; import static io.invertase.googleads.ReactNativeGoogleAdsEvent.GOOGLE_ADS_EVENT_CLOSED; import static io.invertase.googleads.ReactNativeGoogleAdsEvent.GOOGLE_ADS_EVENT_ERROR; -import static io.invertase.googleads.ReactNativeGoogleAdsEvent.GOOGLE_ADS_EVENT_LEFT_APPLICATION; +import static io.invertase.googleads.ReactNativeGoogleAdsEvent.GOOGLE_ADS_EVENT_INTERSTITIAL; import static io.invertase.googleads.ReactNativeGoogleAdsEvent.GOOGLE_ADS_EVENT_LOADED; import static io.invertase.googleads.ReactNativeGoogleAdsEvent.GOOGLE_ADS_EVENT_OPENED; import android.app.Activity; import android.util.SparseArray; +import androidx.annotation.NonNull; import com.facebook.react.bridge.Arguments; import com.facebook.react.bridge.Promise; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactMethod; import com.facebook.react.bridge.ReadableMap; import com.facebook.react.bridge.WritableMap; -import com.google.android.gms.ads.AdListener; -import com.google.android.gms.ads.InterstitialAd; +import com.google.android.gms.ads.AdRequest; +import com.google.android.gms.ads.FullScreenContentCallback; +import com.google.android.gms.ads.LoadAdError; +import com.google.android.gms.ads.interstitial.InterstitialAd; +import com.google.android.gms.ads.interstitial.InterstitialAdLoadCallback; import io.invertase.googleads.common.ReactNativeModule; import javax.annotation.Nullable; @@ -50,8 +53,7 @@ public ReactNativeGoogleAdsInterstitialModule(ReactApplicationContext reactConte private void sendInterstitialEvent( String type, int requestId, String adUnitId, @Nullable WritableMap error) { - sendAdEvent( - ReactNativeGoogleAdsEvent.GOOGLE_ADS_EVENT_INTERSTITIAL, requestId, type, adUnitId, error); + sendAdEvent(GOOGLE_ADS_EVENT_INTERSTITIAL, requestId, type, adUnitId, error); } @ReactMethod @@ -67,51 +69,51 @@ public void interstitialLoad(int requestId, String adUnitId, ReadableMap adReque } currentActivity.runOnUiThread( () -> { - InterstitialAd interstitialAd = new InterstitialAd(currentActivity); - interstitialAd.setAdUnitId(adUnitId); + AdRequest.Builder adRequestBuilder = new AdRequest.Builder(); + AdRequest adRequest = adRequestBuilder.build(); - // Apply AdRequest builder - interstitialAd.loadAd(buildAdRequest(adRequestOptions)); + InterstitialAdLoadCallback interstitialAdLoadCallback = + new InterstitialAdLoadCallback() { - interstitialAd.setAdListener( - new AdListener() { @Override - public void onAdLoaded() { + public void onAdLoaded(@NonNull InterstitialAd interstitialAd) { + + interstitialAd.setFullScreenContentCallback( + new FullScreenContentCallback() { + @Override + public void onAdDismissedFullScreenContent() { + sendInterstitialEvent(GOOGLE_ADS_EVENT_CLOSED, requestId, adUnitId, null); + interstitialAdArray.put(requestId, null); + } + + @Override + public void onAdClicked() { + sendInterstitialEvent( + GOOGLE_ADS_EVENT_CLICKED, requestId, adUnitId, null); + } + + @Override + public void onAdShowedFullScreenContent() { + sendInterstitialEvent(GOOGLE_ADS_EVENT_OPENED, requestId, adUnitId, null); + } + }); + + interstitialAdArray.put(requestId, interstitialAd); sendInterstitialEvent(GOOGLE_ADS_EVENT_LOADED, requestId, adUnitId, null); } @Override - public void onAdFailedToLoad(int errorCode) { + public void onAdFailedToLoad(@NonNull LoadAdError loadAdError) { WritableMap error = Arguments.createMap(); + int errorCode = loadAdError.getCode(); String[] codeAndMessage = getCodeAndMessageFromAdErrorCode(errorCode); error.putString("code", codeAndMessage[0]); error.putString("message", codeAndMessage[1]); sendInterstitialEvent(GOOGLE_ADS_EVENT_ERROR, requestId, adUnitId, error); } + }; - @Override - public void onAdOpened() { - sendInterstitialEvent(GOOGLE_ADS_EVENT_OPENED, requestId, adUnitId, null); - } - - @Override - public void onAdClicked() { - sendInterstitialEvent(GOOGLE_ADS_EVENT_CLICKED, requestId, adUnitId, null); - } - - @Override - public void onAdLeftApplication() { - sendInterstitialEvent( - GOOGLE_ADS_EVENT_LEFT_APPLICATION, requestId, adUnitId, null); - } - - @Override - public void onAdClosed() { - sendInterstitialEvent(GOOGLE_ADS_EVENT_CLOSED, requestId, adUnitId, null); - } - }); - - interstitialAdArray.put(requestId, interstitialAd); + InterstitialAd.load(currentActivity, adUnitId, adRequest, interstitialAdLoadCallback); }); } @@ -142,8 +144,10 @@ public void interstitialShow(int requestId, ReadableMap showOptions, Promise pro interstitialAd.setImmersiveMode(false); } - if (interstitialAd.isLoaded()) { - interstitialAd.show(); + String a = String.valueOf(requestId); + + if (interstitialAd != null) { + interstitialAd.show(getCurrentActivity()); promise.resolve(null); } else { rejectPromiseWithCodeAndMessage( diff --git a/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsModule.java b/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsModule.java index 79758afd..99d461f2 100644 --- a/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsModule.java +++ b/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsModule.java @@ -21,9 +21,12 @@ import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactMethod; import com.facebook.react.bridge.ReadableMap; +import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.MobileAds; import com.google.android.gms.ads.RequestConfiguration; import io.invertase.googleads.common.ReactNativeModule; +import java.util.ArrayList; +import java.util.List; import java.util.Objects; public class ReactNativeGoogleAdsModule extends ReactNativeModule { @@ -36,6 +39,25 @@ public class ReactNativeGoogleAdsModule extends ReactNativeModule { private RequestConfiguration buildRequestConfiguration(ReadableMap requestConfiguration) { RequestConfiguration.Builder builder = new RequestConfiguration.Builder(); + if (requestConfiguration.hasKey("testDeviceIdentifiers")) { + ArrayList devices = + Objects.requireNonNull(requestConfiguration.getArray("testDeviceIdentifiers")) + .toArrayList(); + + List testDeviceIds = new ArrayList<>(); + + for (Object device : devices) { + String id = (String) device; + + if (id.equals("EMULATOR")) { + testDeviceIds.add(AdRequest.DEVICE_ID_EMULATOR); + } else { + testDeviceIds.add(id); + } + } + builder.setTestDeviceIds(testDeviceIds); + } + if (requestConfiguration.hasKey("maxAdContentRating")) { String rating = requestConfiguration.getString("maxAdContentRating"); diff --git a/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsRewardedModule.java b/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsRewardedModule.java index 2f0694bc..2e9d1a12 100644 --- a/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsRewardedModule.java +++ b/android/src/main/java/io/invertase/googleads/ReactNativeGoogleAdsRewardedModule.java @@ -1,6 +1,5 @@ package io.invertase.googleads; -import static io.invertase.googleads.ReactNativeGoogleAdsCommon.buildAdRequest; import static io.invertase.googleads.ReactNativeGoogleAdsCommon.getCodeAndMessageFromAdErrorCode; import static io.invertase.googleads.ReactNativeGoogleAdsCommon.sendAdEvent; import static io.invertase.googleads.ReactNativeGoogleAdsEvent.GOOGLE_ADS_EVENT_CLOSED; @@ -19,9 +18,12 @@ import com.facebook.react.bridge.ReactMethod; import com.facebook.react.bridge.ReadableMap; import com.facebook.react.bridge.WritableMap; +import com.google.android.gms.ads.AdRequest; +import com.google.android.gms.ads.FullScreenContentCallback; +import com.google.android.gms.ads.LoadAdError; +import com.google.android.gms.ads.OnUserEarnedRewardListener; import com.google.android.gms.ads.rewarded.RewardItem; import com.google.android.gms.ads.rewarded.RewardedAd; -import com.google.android.gms.ads.rewarded.RewardedAdCallback; import com.google.android.gms.ads.rewarded.RewardedAdLoadCallback; import com.google.android.gms.ads.rewarded.ServerSideVerificationOptions; import io.invertase.googleads.common.ReactNativeModule; @@ -62,52 +64,72 @@ public void rewardedLoad(int requestId, String adUnitId, ReadableMap adRequestOp } activity.runOnUiThread( () -> { - RewardedAd rewardedAd = new RewardedAd(activity, adUnitId); + AdRequest adRequest = new AdRequest.Builder().build(); - RewardedAdLoadCallback adLoadCallback = + RewardedAdLoadCallback rewardedAdLoadCallback = new RewardedAdLoadCallback() { @Override - public void onRewardedAdLoaded() { - RewardItem rewardItem = rewardedAd.getRewardItem(); - WritableMap data = Arguments.createMap(); - data.putString("type", rewardItem.getType()); - data.putInt("amount", rewardItem.getAmount()); - sendRewardedEvent( - GOOGLE_ADS_EVENT_REWARDED_LOADED, requestId, adUnitId, null, data); - } - - @Override - public void onRewardedAdFailedToLoad(int errorCode) { + public void onAdFailedToLoad(@NonNull LoadAdError loadAdError) { WritableMap error = Arguments.createMap(); + int errorCode = loadAdError.getCode(); String[] codeAndMessage = getCodeAndMessageFromAdErrorCode(errorCode); error.putString("code", codeAndMessage[0]); error.putString("message", codeAndMessage[1]); sendRewardedEvent(GOOGLE_ADS_EVENT_ERROR, requestId, adUnitId, error, null); } - }; - if (adRequestOptions.hasKey("serverSideVerificationOptions")) { - ReadableMap serverSideVerificationOptions = - adRequestOptions.getMap("serverSideVerificationOptions"); + @Override + public void onAdLoaded(@NonNull RewardedAd rewardedAd) { + RewardItem rewardItem = rewardedAd.getRewardItem(); + WritableMap data = Arguments.createMap(); + data.putString("type", rewardItem.getType()); + data.putInt("amount", rewardItem.getAmount()); - if (serverSideVerificationOptions != null) { - ServerSideVerificationOptions.Builder options = - new ServerSideVerificationOptions.Builder(); + if (adRequestOptions.hasKey("serverSideVerificationOptions")) { + ReadableMap serverSideVerificationOptions = + adRequestOptions.getMap("serverSideVerificationOptions"); - if (serverSideVerificationOptions.hasKey("userId")) { - options.setUserId(serverSideVerificationOptions.getString("userId")); - } + if (serverSideVerificationOptions != null) { + ServerSideVerificationOptions.Builder options = + new ServerSideVerificationOptions.Builder(); - if (serverSideVerificationOptions.hasKey("customData")) { - options.setCustomData(serverSideVerificationOptions.getString("customData")); - } + if (serverSideVerificationOptions.hasKey("userId")) { + options.setUserId(serverSideVerificationOptions.getString("userId")); + } + + if (serverSideVerificationOptions.hasKey("customData")) { + options.setCustomData( + serverSideVerificationOptions.getString("customData")); + } - rewardedAd.setServerSideVerificationOptions(options.build()); - } - } + rewardedAd.setServerSideVerificationOptions(options.build()); + } + } + + FullScreenContentCallback fullScreenContentCallback = + new FullScreenContentCallback() { + @Override + public void onAdShowedFullScreenContent() { + sendRewardedEvent( + GOOGLE_ADS_EVENT_OPENED, requestId, adUnitId, null, null); + } + + @Override + public void onAdDismissedFullScreenContent() { + sendRewardedEvent( + GOOGLE_ADS_EVENT_CLOSED, requestId, adUnitId, null, null); + } + }; + + rewardedAd.setFullScreenContentCallback(fullScreenContentCallback); + + rewardedAdArray.put(requestId, rewardedAd); + sendRewardedEvent( + GOOGLE_ADS_EVENT_REWARDED_LOADED, requestId, adUnitId, null, data); + } + }; - rewardedAd.loadAd(buildAdRequest(adRequestOptions), adLoadCallback); - rewardedAdArray.put(requestId, rewardedAd); + RewardedAd.load(activity, adUnitId, adRequest, rewardedAdLoadCallback); }); } @@ -130,39 +152,21 @@ public void rewardedShow( if (showOptions.hasKey("immersiveModeEnabled")) { immersiveModeEnabled = showOptions.getBoolean("immersiveModeEnabled"); } + rewardedAd.setImmersiveMode(immersiveModeEnabled); - RewardedAdCallback adCallback = - new RewardedAdCallback() { - @Override - public void onRewardedAdOpened() { - sendRewardedEvent(GOOGLE_ADS_EVENT_OPENED, requestId, adUnitId, null, null); - } - - @Override - public void onRewardedAdClosed() { - sendRewardedEvent(GOOGLE_ADS_EVENT_CLOSED, requestId, adUnitId, null, null); - } - + OnUserEarnedRewardListener onUserEarnedRewardListener = + new OnUserEarnedRewardListener() { @Override - public void onUserEarnedReward(@NonNull RewardItem reward) { + public void onUserEarnedReward(@NonNull RewardItem rewardItem) { WritableMap data = Arguments.createMap(); - data.putString("type", reward.getType()); - data.putInt("amount", reward.getAmount()); + data.putString("type", rewardItem.getType()); + data.putInt("amount", rewardItem.getAmount()); sendRewardedEvent( GOOGLE_ADS_EVENT_REWARDED_EARNED_REWARD, requestId, adUnitId, null, data); } - - @Override - public void onRewardedAdFailedToShow(int errorCode) { - WritableMap error = Arguments.createMap(); - String[] codeAndMessage = getCodeAndMessageFromAdErrorCode(errorCode); - error.putString("code", codeAndMessage[0]); - error.putString("message", codeAndMessage[1]); - sendRewardedEvent(GOOGLE_ADS_EVENT_ERROR, requestId, adUnitId, error, null); - } }; - rewardedAd.show(getCurrentActivity(), adCallback, immersiveModeEnabled); + rewardedAd.show(getCurrentActivity(), onUserEarnedRewardListener); promise.resolve(null); }); } diff --git a/example/android/build.gradle b/example/android/build.gradle index 8d7d821d..8a5d9b10 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -5,7 +5,7 @@ buildscript { kotlinVersion = "1.5.30" buildToolsVersion = "30.0.2" minSdkVersion = 21 - compileSdkVersion = 30 + compileSdkVersion = 31 targetSdkVersion = 30 ndkVersion = "21.4.7075529" } diff --git a/ios/RNGoogleAds/RNGoogleAdsCommon.h b/ios/RNGoogleAds/RNGoogleAdsCommon.h index af63effe..816db982 100644 --- a/ios/RNGoogleAds/RNGoogleAdsCommon.h +++ b/ios/RNGoogleAds/RNGoogleAdsCommon.h @@ -53,7 +53,6 @@ extern NSString *const GOOGLE_ADS_EVENT_LOADED; extern NSString *const GOOGLE_ADS_EVENT_ERROR; extern NSString *const GOOGLE_ADS_EVENT_OPENED; extern NSString *const GOOGLE_ADS_EVENT_CLICKED; -extern NSString *const GOOGLE_ADS_EVENT_LEFT_APPLICATION; extern NSString *const GOOGLE_ADS_EVENT_CLOSED; extern NSString *const GOOGLE_ADS_EVENT_REWARDED_LOADED; diff --git a/ios/RNGoogleAds/RNGoogleAdsCommon.m b/ios/RNGoogleAds/RNGoogleAdsCommon.m index 65e44234..bbd4f09e 100644 --- a/ios/RNGoogleAds/RNGoogleAdsCommon.m +++ b/ios/RNGoogleAds/RNGoogleAdsCommon.m @@ -25,7 +25,6 @@ NSString *const GOOGLE_ADS_EVENT_ERROR = @"error"; NSString *const GOOGLE_ADS_EVENT_OPENED = @"opened"; NSString *const GOOGLE_ADS_EVENT_CLICKED = @"clicked"; -NSString *const GOOGLE_ADS_EVENT_LEFT_APPLICATION = @"left_application"; NSString *const GOOGLE_ADS_EVENT_CLOSED = @"closed"; NSString *const GOOGLE_ADS_EVENT_REWARDED_LOADED = @"rewarded_loaded"; NSString *const GOOGLE_ADS_EVENT_REWARDED_EARNED_REWARD = @"rewarded_earned_reward"; diff --git a/lib/AdEventType.js b/lib/AdEventType.js index c4226bc4..c16d2a05 100644 --- a/lib/AdEventType.js +++ b/lib/AdEventType.js @@ -20,6 +20,5 @@ export default { ERROR: 'error', OPENED: 'opened', CLICKED: 'clicked', - LEFT_APPLICATION: 'left_application', CLOSED: 'closed', }; diff --git a/lib/index.d.ts b/lib/index.d.ts index 824cb365..6530344e 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -122,13 +122,6 @@ export namespace GoogleAdsTypes { */ CLICKED: 'clicked'; - /** - * The user has left your application (e.g. following the ad). - * - * Be sure to pause any tasks on this event (such as music or memory intensive tasks). - */ - LEFT_APPLICATION: 'left_application'; - /** * The user closed the ad and has returned back to your application. */ @@ -215,11 +208,6 @@ export namespace GoogleAdsTypes { */ MEDIUM_RECTANGLE: 'MEDIUM_RECTANGLE'; - /** - * A dynamically sized banner that is full-width and auto-height. - */ - SMART_BANNER: 'SMART_BANNER'; - /** * A (next generation) dynamically sized banner that is full-width and auto-height. */ @@ -833,7 +821,6 @@ export namespace GoogleAdsTypes { | AdEventType['ERROR'] | AdEventType['OPENED'] | AdEventType['CLICKED'] - | AdEventType['LEFT_APPLICATION'] | AdEventType['CLOSED'] | RewardedAdEventType['LOADED'] | RewardedAdEventType['EARNED_REWARD'], diff --git a/type-test.ts b/type-test.ts index ed7eb543..ac1751c9 100644 --- a/type-test.ts +++ b/type-test.ts @@ -27,13 +27,11 @@ console.log(googleAds.MaxAdContentRating.T); console.log(googleAds.AdEventType.CLICKED); console.log(googleAds.AdEventType.CLOSED); console.log(googleAds.AdEventType.ERROR); -console.log(googleAds.AdEventType.LEFT_APPLICATION); console.log(googleAds.AdEventType.LOADED); console.log(googleAds.AdEventType.OPENED); console.log(googleAds.AdEventType.CLICKED); console.log(googleAds.AdEventType.CLOSED); console.log(googleAds.AdEventType.ERROR); -console.log(googleAds.AdEventType.LEFT_APPLICATION); console.log(googleAds.AdEventType.LOADED); console.log(googleAds.AdEventType.OPENED); @@ -125,4 +123,3 @@ console.log(googleAds.BannerAdSize.FULL_BANNER); console.log(googleAds.BannerAdSize.LARGE_BANNER); console.log(googleAds.BannerAdSize.LEADERBOARD); console.log(googleAds.BannerAdSize.MEDIUM_RECTANGLE); -console.log(googleAds.BannerAdSize.SMART_BANNER);