AdMob ads.height() returns 0 on Build 2015.2545

Hi guys,

I am getting ads.height = 0 value when using AdMob on build 2015.2545 (latest build).

It was working fine in previous build (e.g. 2015.2528)

I tested it on Android device, and ads.height is OK. The problem only seems to appear on Apple.

Anyone facing this issue ?

Thanks

Hi @yosu,

We tested this on an iPad Air and the height is returned correctly (not 0). Also, it’s not a “latest build issue” because AdMob is a plugin, which is not dependent on the latest build.

I urge you to carefully check your code and ensure that you didn’t change even the slightest thing between the earlier test and the more recent test.

Take care,

Brent

Dear Brent,

Thanks for the input. My adMob code is kinda ‘static’, as it is stable and not touched for the past few months.

After drilling down more, I manage to pin the problem. It is actually when I call the new ‘notifications.registerForPushNotifications()’ which is part of the new push-notification plugin “plugin.notifications”

When I do not call this ‘notifications.registerForPushNotifications()’, the ads.height returns the correct issue. I don’t see how the notification and adMob is linked, but it seems to be happening.

Hi @yosu,

Thanks for exploring this. Can I ask you to follow the standard bug report process so we can track and prioritize this? Otherwise this may get lost in the shuffle of communication amongst the team.

Thanks,

Brent

Hi Brent,

Ok. Bug has been submitted (Case #38563).

Thanks

Hi @yosu,

The engineers have confirmed this bug report and have flagged it for a fix.

Thanks,

Brent

And it should be fixed.  Since it’s a plugin, you should be able to rebuild your app to pick up the changes.

Rob

Hi @yosu,

We tested this on an iPad Air and the height is returned correctly (not 0). Also, it’s not a “latest build issue” because AdMob is a plugin, which is not dependent on the latest build.

I urge you to carefully check your code and ensure that you didn’t change even the slightest thing between the earlier test and the more recent test.

Take care,

Brent

Dear Brent,

Thanks for the input. My adMob code is kinda ‘static’, as it is stable and not touched for the past few months.

After drilling down more, I manage to pin the problem. It is actually when I call the new ‘notifications.registerForPushNotifications()’ which is part of the new push-notification plugin “plugin.notifications”

When I do not call this ‘notifications.registerForPushNotifications()’, the ads.height returns the correct issue. I don’t see how the notification and adMob is linked, but it seems to be happening.

Hi @yosu,

Thanks for exploring this. Can I ask you to follow the standard bug report process so we can track and prioritize this? Otherwise this may get lost in the shuffle of communication amongst the team.

Thanks,

Brent

Hi Brent,

Ok. Bug has been submitted (Case #38563).

Thanks

Hi @yosu,

The engineers have confirmed this bug report and have flagged it for a fix.

Thanks,

Brent

And it should be fixed.  Since it’s a plugin, you should be able to rebuild your app to pick up the changes.

Rob

Hi All,

I always get 0 from ads.height both iOS and Android.( 2015.2659)

Let me know if you can get correct height.

I’m very struggling with this issue…

Thanks.

You can only get the height after calling ads.show().

Hi All,

I always get 0 from ads.height both iOS and Android.( 2015.2659)

Let me know if you can get correct height.

I’m very struggling with this issue…

Thanks.

You can only get the height after calling ads.show().