-
Notifications
You must be signed in to change notification settings - Fork 9.8k
listener on MobileAd shouldn't be final #650
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
I signed it! |
CLAs look good, thanks! |
private void callIslAdLoaded(int id, MethodCall call, Result result) { | ||
MobileAd ad = MobileAd.getAdForId(id); | ||
if(ad == null) { | ||
result.error("no_ad_for_id", "isAdLoaded failed, no add exists for id=" + id, null); |
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: Type in message. Should be "no ad exists for id".
Maybe we could also use $id syntax for including the Ad ID in the message.
@@ -154,6 +154,15 @@ private void callShowAd(int id, MethodCall call, Result result) { | |||
result.success(Boolean.TRUE); | |||
} | |||
|
|||
private void callIslAdLoaded(int id, MethodCall call, Result result) { |
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 assume this method should be named callIsAdLoaded
instead of callIslAdLoaded
?
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.
Updated method name.
@@ -32,6 +32,6 @@ android { | |||
disable 'InvalidPackage' | |||
} | |||
dependencies { | |||
api 'com.google.firebase:firebase-ads:15.+' | |||
api 'com.google.firebase:firebase-ads:15.0.0' |
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 the version of this dependency has been bumped to 15.0.1, rebasing on master should resolve this.
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.
Used latest sdk version.
@mickykebe Really appreciate this PR, would you be able to update this PR so it can be merged in? |
Ad listeners shouldn't necessarily have to be set during Ad initialization.
* listener on MobileAd shouldn't be final * Ad listeners shouldn't necessarily have to be set during Ad initialization. * add isLoaded method to firebase_admob MobileAd checking whether ad has been loaded.
* listener on MobileAd shouldn't be final * Ad listeners shouldn't necessarily have to be set during Ad initialization. * add isLoaded method to firebase_admob MobileAd checking whether ad has been loaded.
This reverts commit 0d2385c.
* listener on MobileAd shouldn't be final * Ad listeners shouldn't necessarily have to be set during Ad initialization. * add isLoaded method to firebase_admob MobileAd checking whether ad has been loaded.
Ad listeners shouldn't necessarily have to be set during Ad initialization.