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

How to know banner size? #9

Open
mrgzi opened this issue Apr 8, 2022 · 2 comments
Open

How to know banner size? #9

mrgzi opened this issue Apr 8, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@mrgzi
Copy link

mrgzi commented Apr 8, 2022

It will be a very big issue if I cannot get the banner size. Because my project depends on it.

Or at least can I get the find the banner on the widget tree?

@da2gl
Copy link
Collaborator

da2gl commented Apr 21, 2022

@mgazisalik Hello.
Appodeal Flutter SDK uses two type banner size (it's IAB specification):

  • 320x50 (by default)
  • 728x90 (Appodeal.setTabletBanners(true);)

you can use this knowledge in your application.

Or at least can I get the find the banner on the widget tree?

You can find banner on the widget tree if you use AdView like this and get AdView size throw addPostFrameCallback.

If you have ideas and use cases how we can improve api for using banner size, please, tell me.
Have a nice day.

@mrgzi
Copy link
Author

mrgzi commented Apr 21, 2022

thanks, I solved my own issue after talking Appodeal support team. But it would be nice if you handle that if device tablet or not.

Also, if we use Appodeal.setTabletBanners(true), when you turn the phone to the landscape, it shows a tablet banner on phone. I saw this in iPhone 13 pro max simulator and test ads from Apploving. The banner size was 728x90, but it was showing a 320x50 banner ad inside of it. I didn't use AdView. Therefore I set Appodeal.setTabletBanners(false).

@da2gl da2gl added the enhancement New feature or request label May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants