Skip to content

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

Merged
merged 12 commits into from
Sep 21, 2021

Conversation

DellaBitta
Copy link
Contributor

@DellaBitta DellaBitta commented Aug 27, 2021

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.

@google-cla google-cla bot added the cla: yes label Aug 27, 2021
DellaBitta and others added 5 commits September 2, 2021 13:11
* 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
@DellaBitta DellaBitta marked this pull request as ready for review September 4, 2021 21:23
@firebase firebase deleted a comment from Atom14011985 Sep 6, 2021
@firebase firebase deleted a comment from Atom14011985 Sep 6, 2021
@firebase firebase deleted a comment from Atom14011985 Sep 6, 2021
if (initialized_) {
CompleteFuture(kAdMobErrorAlreadyInitialized, "Ad is already initialized.",
callback_data->future_handle, callback_data->future_data);
return GetLastResult(kBannerViewFnInitialize);
Copy link
Contributor

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.

Copy link
Contributor Author

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.");
Copy link
Contributor

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

Copy link
Contributor Author

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.

@DellaBitta DellaBitta merged commit e365f4f into feature/admob_2021 Sep 21, 2021
@github-actions github-actions bot added the tests: in-progress This PR's integration tests are in progress. label Sep 21, 2021
@github-actions
Copy link

github-actions bot commented Sep 21, 2021

❌  Integration test FAILED

Requested by @DellaBitta on commit e365f4f
Last updated: Tue Sep 21 13:13 PDT 2021
View integration test log & download artifacts

Failures Configs
admob [TEST] [ERROR] [Android] [All os] [android_target]
[TEST] [ERROR] [Android] [macos] [emulator_target]
database [TEST] [ERROR] [Android] [macos] [android_target]
messaging [TEST] [ERROR] [Android] [All os] [android_target]

Add flaky tests to go/fpl-cpp-flake-tracker

@DellaBitta DellaBitta deleted the feature/admob_2021_baseline branch September 21, 2021 17:37
@github-actions github-actions bot added the tests: failed This PR's integration tests failed. label Sep 21, 2021
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Sep 21, 2021
@firebase firebase locked and limited conversation to collaborators Oct 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes tests: failed This PR's integration tests failed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants