-
Notifications
You must be signed in to change notification settings - Fork 3
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
[HB-6599] Adds a MoveTo
Internal API Call to Sync UnityBannerAd
GameObject
Position with Native View
#186
Merged
kushG
merged 2 commits into
release/4.6.0
from
HB-6599-unity-4-6-0-i-os-android-adaptive-banner-unable-to-scroll-screen-for-1-2-1-3-and-1-4-banner-sizes
Oct 11, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SCastanedaMunoz
approved these changes
Oct 11, 2023
kushG
deleted the
HB-6599-unity-4-6-0-i-os-android-adaptive-banner-unable-to-scroll-screen-for-1-2-1-3-and-1-4-banner-sizes
branch
October 11, 2023 18:35
SCastanedaMunoz
changed the title
[HB-6599] Adds a
[HB-6599] Adds a Oct 12, 2023
MoveTo
internal API call to sync UnityBannerAd Gameobject position with Native ViewMoveTo
Internal API Call to Sync UnityBannerAd
GameObject
Position with Native View
SCastanedaMunoz
added
bugfix
Something has been fixed
enhancement
New feature or request
labels
Oct 12, 2023
kushG
added a commit
that referenced
this pull request
Oct 12, 2023
* Added Missing Meta Files (#172) * [HB-6516] Create a Separate Size Object for Newer Banner API Instead of Updating the Size from Deprecated API (#173) * rename ChartboostMediationBannerAdSize to ChartboostMediationBannerSize * base file didn't get pushed * missing android update for sizeType enum of ChartboostMediationBannerSize (#174) * Updating Dependencies and Package Information (#175) * Remove UnityBannerAd Creation Option from Chartboost Mediation MenuItem (#176) * Fix For Load With (X, Y) on Unsupported BannerView (#177) * [HB-6453] Mark `ChartboostMediationBannerAd` API as Deprecated (#178) * [HB-6572] Always Keep the BannerAd within the Safe Area (#179) * [HB- 6580] Fix Resize when `ChartboostMediationBannerView` API is in Use (#180) * Logger.LogError should use Debug.LogError (#181) * Trigger DidStart on ChartboostMediationUnsupported (#182) * [HB-6597] Adaptive Banner Fixes (#183) * Fix for crash on ad reset (#184) Signed-off-by: kushG <[email protected]> * Update CHANGELOG.md (#185) Signed-off-by: kushG <[email protected]> * [HB-6599] Adds a `MoveTo` internal API call to sync UnityBannerAd Gameobject position with Native View (#186) * moveTo added, canvas replaced with parent transform during unitybannerAd create * demo fix * [HB-5971]Update the Readme with Instructions and Sample code for Using the Adaptive Banner 3D game object (#187) * IChartboostMediationBannerView.cs updated * all the remaining documentation * Update loading-ads.md Signed-off-by: kushG <[email protected]> --------- Signed-off-by: kushG <[email protected]> * minor fix with canvas scale Signed-off-by: kushG <[email protected]> * [HB-5971] Update loading-ads.md to Include More Details On Adaptive Banners (#188) * Update loading-ads.md Signed-off-by: kushG <[email protected]> * fixed links Signed-off-by: kushG <[email protected]> * Update loading-ads.md Signed-off-by: kushG <[email protected]> * Update loading-ads.md Signed-off-by: kushG <[email protected]> --------- Signed-off-by: kushG <[email protected]> --------- Signed-off-by: kushG <[email protected]> Co-authored-by: Santiago Castaneda Munoz <[email protected]>
kushG
added a commit
that referenced
this pull request
Oct 12, 2023
* ios updated to use adaptive banners * WIP banner work for 5.0 * Fixed banner load working on ios * android updates * android updates * more android update * banner keywords iOS WIP * ios keywords fix * renaming variables * android updates * working android code for fixed banners * keeping old API unchanged * code for onAdRefreshed added * AdWrapper fix for deprecated APIs * android bridge updates * removing unwanted files from git * destroy added * size name made get only * working gameobject code for android for fixed banners * creator added * working android and ios e2e * onAdViewAdded added on android * minor changes * UnityBannerAdSize added * Editor code added * keys commit removed * added missing files * [HB-6464] Updating EDM to version 1.2.177 (#169) * added missing files * Banner drag fix * Update com.chartboost.mediation/Runtime/Platforms/IOS/ChartboostMediationIOS.Callbacks.cs Co-authored-by: Kendall <[email protected]> Signed-off-by: kushG <[email protected]> * default case added in size names for ios * using screen width for adaptive banners width * WrapperStore added in iOS * Update build.gradle Signed-off-by: kushG <[email protected]> * fix for horizontal and vertical alignment on android * Apply suggestions from code review Co-authored-by: Ray Graham <[email protected]> Signed-off-by: kushG <[email protected]> * formatting updates, minor changes based on review comments * more formatting changes * testing line end commit * Extra blank lines at the end of file on android code in Rider * Update com.chartboost.mediation/Runtime/AdFormats/Banner/Unity/ChartboostMediationUnityBannerAd.Creator.cs Co-authored-by: Santiago Castaneda Munoz <[email protected]> Signed-off-by: kushG <[email protected]> * Apply suggestions from code review Co-authored-by: Santiago Castaneda Munoz <[email protected]> Signed-off-by: kushG <[email protected]> * few more updated based on review comments * not destroying bannerAd in demo's OnDestroy * Fixes missing/extra EOL * removed double code of setting banner ad to visible * minor fix in gameobject naming * finding canvas made better * WillAppear changed to DidLoad * [HB-6495] Refactor ChartboostMediationBannerAdSize to be used as Struct and use Enum for Name Field (#170) * size refactor * ChartboostMediationBannerAdSize changed from class to struct * ChartboostMediationBannerName renamed to ChartboostMediationBannerSizeType * minor rename * [HB-6514 ] Include API to Allow Resizing of Gameobject Banner Based on Adaptive Banner Size (#171) * resize API added * removed #UNITY_ANDROID * WrapperStore added in iOS * resize working on iOS * banner request container removed in iOS * android WIP * working logic for resize and drag on android * fix for horizontal and vertical alignment on android * size refactor * ChartboostMediationBannerAdSize changed from class to struct * ChartboostMediationBannerName renamed to ChartboostMediationBannerSizeType * merge fixes * minor rename * working resize and drag on android * working ios code for resize and drag * DiscardOversizedAds added * removed debug code * fixes for null/default values and removed some debug code * default state of banner drag set ot false * default state of resize set to "FitBoth" * missing EOL * autoLoadOnInit removed * default set to AllNetworkBanner in demo * renaming some enum options * disable test mode * Added Missing Meta Files (#172) * [HB-6516] Create a Separate Size Object for Newer Banner API Instead of Updating the Size from Deprecated API (#173) * rename ChartboostMediationBannerAdSize to ChartboostMediationBannerSize * base file didn't get pushed * missing android update for sizeType enum of ChartboostMediationBannerSize (#174) * Updating Dependencies and Package Information (#175) * Remove UnityBannerAd Creation Option from Chartboost Mediation MenuItem (#176) * Fix For Load With (X, Y) on Unsupported BannerView (#177) * [HB-6453] Mark `ChartboostMediationBannerAd` API as Deprecated (#178) * [HB-6572] Always Keep the BannerAd within the Safe Area (#179) * [HB- 6580] Fix Resize when `ChartboostMediationBannerView` API is in Use (#180) * Logger.LogError should use Debug.LogError (#181) * Trigger DidStart on ChartboostMediationUnsupported (#182) * [HB-6597] Adaptive Banner Fixes (#183) * Fix for crash on ad reset (#184) Signed-off-by: kushG <[email protected]> * Update CHANGELOG.md (#185) Signed-off-by: kushG <[email protected]> * [HB-6599] Adds a `MoveTo` internal API call to sync UnityBannerAd Gameobject position with Native View (#186) * moveTo added, canvas replaced with parent transform during unitybannerAd create * demo fix * [HB-5971]Update the Readme with Instructions and Sample code for Using the Adaptive Banner 3D game object (#187) * IChartboostMediationBannerView.cs updated * all the remaining documentation * Update loading-ads.md Signed-off-by: kushG <[email protected]> --------- Signed-off-by: kushG <[email protected]> * minor fix with canvas scale Signed-off-by: kushG <[email protected]> * [HB-5971] Update loading-ads.md to Include More Details On Adaptive Banners (#188) * Update loading-ads.md Signed-off-by: kushG <[email protected]> * fixed links Signed-off-by: kushG <[email protected]> * Update loading-ads.md Signed-off-by: kushG <[email protected]> * Update loading-ads.md Signed-off-by: kushG <[email protected]> --------- Signed-off-by: kushG <[email protected]> --------- Signed-off-by: kushG <[email protected]> Co-authored-by: Santiago Castaneda Munoz <[email protected]> Co-authored-by: Kendall <[email protected]> Co-authored-by: Ray Graham <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Banner ads that cover most of the screen blocks all the UI on screen. One potential solution is to make the screen scrollable which means when you scroll up/down the banner gameobject will also move up/down. However when banner gameobject is moved on screen the corresponding native view does not move. In this case we would need to call
MoveTo
to move the native view along with banner gameobject