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
[TIMOB-24473] Android: Maintain API parity with iOS #66
Conversation
@garymathews Is this ready to merge? I wanted to take a look if https://jira.appcelerator.org/browse/TIMOB-24550 is easy to implement. |
@hansemannn Already part of this PR, set adType to |
android/src/ti/admob/View.java
Outdated
prop_adSize = AdSize.BANNER; | ||
break; | ||
case AdmobModule.AD_TYPE_INTERSTITIAL: | ||
prop_adSize = AdSize.FLUID; |
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.
Can you check with https://github.com/appcelerator-modules/ti.admob/pull/69/files and close mine instead? Wondering because I used an com.google.android.gms.ads.InterstitialAd
instance, you specified a FLUID
size.
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.
Android doesn't have that: https://developers.google.com/android/reference/com/google/android/gms/ads/AdSize
AdSize.FLUID
was the closest I could get
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.
From what I understood, InterstitialAd
is no size but a whole different type of ad. The above is the package-resolved class-name.
any news about this merge? |
Hello, Thank you |
On Android you can use this: https://github.com/Astrovic/titanium-admob/ |
@Astrovic thank you. |
@ypbnv your push is a wonderfull news! I cannot wait to make test with this update! :) :D |
Remove some duplications.
I have reworked the support for Interstitial ads a little bit - now it is a separate proxy with its own methods and shares events with the AdView. You can check out the documentation and the sample app. The parity part of the PR is unchanged. PS. The module version also got bumped to 4.4.0. @garymathews If you can review the changes it will be awesome. |
CR: PASS |
FYI I received the following error when attempting to run Android interstitial on an older project that didn't have run on main in thread enabled.
Fix is to set this in tiapp.xml: Tested on 7.4.1.GA |
@adampax Thank you for the feedback! You can check the status of the fix here: |
You're welcome, and thanks @ypbnv for adding the android interstitials 👍 |
[TIMOB-24473] Android: Maintain API parity with iOS
testing
andpublisherId
adUnitId
andadType
processProperties
4.1.0
TEST CASE
JIRA Ticket