appodeal / Appodeal-Flutter-Plugin

Official Flutter Plugin that adds Appodeal SDK support to your Flutter application.
https://pub.dev/packages/stack_appodeal_flutter
Apache License 2.0
20 stars 3 forks source link

How to know banner size? #9

Open mrgzi opened 2 years ago

mrgzi commented 2 years ago

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 commented 2 years ago

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

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 commented 2 years ago

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).