larpon / QtFirebase

An effort to bring Google's Firebase C++ API to Qt + QML
MIT License
284 stars 83 forks source link

How to specify banner size (or AdSize), in particular 'SMART_BANNER' ? #107

Closed ElderOrb closed 5 years ago

ElderOrb commented 5 years ago

I want banner to use most of the screen except small area at the bottom. Specifying width/height didn't help - I was getting 320x50.

larpon commented 5 years ago

@ElderOrb hey! If I understand this correctly SMART_BANNER will only adapt to screen.width and a height of any one of 32, 50, 90 - I'm not sure you can have 100% custom width x height?

ElderOrb commented 5 years ago

Oookay, let it be 90 then. How to enable SMART_BANNER for height 90? As I said specifying height didn't work for me

ElderOrb commented 5 years ago

So no solution at the moment?

larpon commented 5 years ago

No time to investigate from my side unfortunately - sorry! I'm sure it worked when I implemented it way back.

larpon commented 5 years ago

Are you setting width / height after initialization? Try having the values set when the QML element is instanciated

edips commented 5 years ago

Here is an example of banner types in cpp from QtAndroidTools project.

ElderOrb commented 5 years ago

@edips thanks, but this is purely admob-based integration, I'm more curious on how to get smart banners via firebase

larpon commented 5 years ago

It was (is still) working in the latest build of Dead Ascend