sdkbox::PluginAdMob::getCurrBannerHeightInPixel() not working on android

sdkbox::PluginAdMob::getCurrBannerHeightInPixel() not working on android
0.0 0

#1

Hi all,
I use SDKBOX Admob version 2.3.12.5.
sdkbox::PluginAdMob::getCurrBannerHeightInPixel() working on ios.
but not working on android.
How to get banner size in pixel?


#2

Is it the Banner Ad ready ?


#3

yes! :slight_smile: banner isAvailable and showed


#4

You need call sdkbox::PluginAdMob::getCurrBannerHeightInPixel() after banner was shown success on screen and callback to listener function of AdmobPlugin.


#5

yes! i have call:
void MyAdsListener::adViewDidReceiveAd(const std::string &name){
if(name==“home”){
if(sdkbox::PluginAdMob::isAvailable(“home”)){
sdkbox::PluginAdMob::show(“home”);
this->appDelegate->onBannerLoaded(sdkbox::PluginAdMob::getCurrBannerHeightInPixel());
}
}
}
but not working on android.(working on ios)
thank you!