-
Notifications
You must be signed in to change notification settings - Fork 124
Initial Admob 2021 pinned to 20.1.0 #622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* removed some BannerViewHelper code, the rest requires upcoming listener revamp * added <string.h> include to banner_view_internal_android.cc
* removed nativeAdExpress and rewardedVideo iOS impls * removed extra comma in admob testapp project
if (initialized_) { | ||
CompleteFuture(kAdMobErrorAlreadyInitialized, "Ad is already initialized.", | ||
callback_data->future_handle, callback_data->future_data); | ||
return GetLastResult(kBannerViewFnInitialize); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this pattern introduces a race condition that we should try to avoid in new code. See b/110082243 and cl/217546936 for details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe I fixed this. Please take a look.
if(initialized_) { | ||
future_data_.future_impl.Complete(callback_data->future_handle, | ||
kAdMobErrorAlreadyInitialized, | ||
"Ad is already initialized."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: AdMob is already initialized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case it's the ad that's already initialized, not admob.
❌ Integration test FAILEDRequested by @DellaBitta on commit e365f4f
Add flaky tests to go/fpl-cpp-flake-tracker |
Create a baseline branch of Admob's 2021 development.
This change removes features that are no longer present in admob: RewardedAds, NativeExpressAds, etc. Additionally some work has been done to reduce the need for BannerViewHelper. Further work will be done here, and in the InterstiailAdHelper, when we rework the listener architecture.