Skip to content
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

fluid ads dont work on Android #132

Open
MicahDavid opened this issue Jul 1, 2024 · 1 comment
Open

fluid ads dont work on Android #132

MicahDavid opened this issue Jul 1, 2024 · 1 comment

Comments

@MicahDavid
Copy link

Ad size "fluid" works on iOS, but does not work on Android.

On Android, onAdLoaded is called, but returns the following size object:

{"gadSize": {"adSize": "320x50_mb", "height": 50, "width": 320}, "isFluid": "true", "measurements": {"adHeight": 0, "adWidth": 0, "height": 0, "left": 0, "top": 0, "width": 0}, "type": "banner"}

No ad shows up for Android.

On iOS, when onAdLoaded is called for the same ad, the Fluid GADAdSize is properly returned:

{"gadSize": {"adSize": "Fluid GADAdSize: {393, 263.5625}", "height": 263.5625, "width": 393}, "isFluid": "true", "measurements": {"adHeight": 263.5625, "adWidth": 393, "height": 263.5625, "left": 0, "top": 0, "width": 393}, "target": 54813, "type": "banner"}

The ad properly shows up for iOS.

Is there a code issue here that isn't calling for the proper Fluid ad on Android, but is instead calling for the 320x50_mb ad?

@MicahDavid
Copy link
Author

It took me a while to realize I could use NativeAdsManager instead of the fluid banner. Then I can style the assets any way i look and its quite easy to set desired dimensions to images. Hope this helps someone else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant