Skip to content

Commit bd8110e

Browse files
authored
Feature/admob 2021 adview, fullscreen listeners (#713)
### Description  - iOS & Android dependencies increased to latest AdMob version to support AdClicked events.  - Implemented AdListener, FullScreenContent, and PaidEvent listeners. These listener signatures track closely with the iOS and Android counterparts so that they may easily be expanded and supported.  - Removed PresentationStateListeners. Similar functionality is now facilaited by AdListeners and FullScreenContentListeners.  - Methods for ad placement renamed from `MoveTo` to `SetPosition` to align with AdMob's iOS and Android SDKs.  - Invoking methods on BannerView and InterstitialAds now properly fail on "uninitialized" objects. Previously empty / invalid futures were returned from most methods.  - Fixed an hang on `loadAd` calls for uninitialized BannerViews and InterstialAds.  - More thorough shut down / destruction of ad objects ensure consistency and reduce potential flake.  - Integration test updates:    - New manual tests track Bounding Box, AdView, FullScreenPresentation and Paid events when clicking through ads.    - Added higher-fidelity checks of bounding box state. Bounding box change behaviors across Android and iOS are now consistent.    - Added a "stress" test of loading and releasing 10 BannerView ads and 10 Interstitial Ads in tight succession.    - `Destroy()` is now called to properly clean up BannerViews.    - Expanded coverage of error scenarios: uninitialized ads, duplicate load requests, etc.
1 parent 44e75a0 commit bd8110e

39 files changed

+2028
-1087
lines changed

Android/firebase_dependencies.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import org.gradle.util.ConfigureUtil;
1717
// A map of library to the dependencies that need to be added for it.
1818
def firebaseDependenciesMap = [
1919
'app' : ['com.google.firebase:firebase-analytics:19.0.0'],
20-
'admob' : ['com.google.firebase:firebase-ads:20.1.0',
20+
'admob' : ['com.google.firebase:firebase-ads:20.4.0',
2121
'com.google.android.gms:play-services-measurement-sdk-api:19.0.0',
2222
'com.google.android.gms:play-services-base:17.6.0'],
2323
'analytics' : ['com.google.firebase:firebase-analytics:19.0.0',

admob/admob_resources/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ android {
4646

4747
dependencies {
4848
implementation 'com.google.firebase:firebase-analytics:19.0.0'
49-
implementation 'com.google.firebase:firebase-ads:20.1.0'
49+
implementation 'com.google.firebase:firebase-ads:20.4.0'
5050
}
5151

5252
afterEvaluate {

0 commit comments

Comments
 (0)