InMobi ads not showing

Hi all,

Did anyone try the new InMobi plugin?

I tried to integrate, it was initialize and loaded successfully, but nothing is shown when testing on device, and there is no error.

Anyone experience the same as me?

Any help will be appreciated.

Thanks a lot,

Mintymint

Can you try and build this sample app:

https://github.com/coronalabs/plugins-sample-inmobi

Rob

Hi Rob,

Yes, I just tried, and same thing, nothing shown up.

I already added my device to inmobi as per instruction. I am testing using iPad.

Again, there is no error in console log. Do I miss anything?

Thanks a lot,

Mintymint

Hey MightyMint.

I’ve pushed an update to this plugin.

This update will be available within 1>2 hours from the time of this post.

You just need to build your project again to get the changes. I’m not sure what your exact issue is, but this improves the plugin regardless.

Did you add your placement ids and app id as described in the docs?

Thank you

Hi Danny,

Thanks for the update.

I finally manage to make it works.

It’s just simply because normally I always organize my ads related function to separate lua files. So from my main.lua, I can just called that function to initialize the ads, but it seems I am unable to do that this time, not sure why also.

But putting the whole functions to main.lua directly works, so, that’s good enough. :slight_smile:

Thanks a lot Danny and Rob for the help and support.

Best Regards,

Mintymint

Hi,

I have another issue, now that the banner is shown, however, it seems it only works with portrait orientation.

My app is landscape and I need to use yAlign=“bottom”, but it seems like the banner only works with portrait orientation.

So the banner ads is actually shown but its out of the screen. It works fine when I test it with iPad, but it doesn’t work with iPhone.

Anyone experience the same? can we set specific position of the banner?

Any help will be appreciated.

Thanks a lot in advance,

Mintymint

Is this just in landscape mode, or when using auto orientation?

Hi Danny,

This is just in landscape more, as my app doesn’t use auto orientation.

So, these are the condition:

  1. iPad landscape (this works fine)

InMobi ads banner shown at the bottom, centre aligned

  1. iPhone landscape

InMobi ads banner doesn’t show at all, because, even the app is using landscape mode, seems like the ads treat it as portrait mode. So the ads actually appear but off the screen. So, I tried to change the yAlign=centre, and the ads appear about 1 cm from the bottom (landscape orientation), left aligned

Please kindly help and thanks a lot in advance,

Mintymint

Thanks for the additional information. This is helpful.

I’ll take a look into it and get back to you.

Cheers

Hi Danny,

Any update on this matter?

Thanks & Best Regards,

Mintymint

Sorry for the delay. Been swamped with other issues.

Going to take a look at this now.

EDIT: Just re-tested this on my iPhone (6s) and iOS sim.

Using landscape orientation, the ads show in the correct position for all supported alignments (top, center, bottom).

What sizes are you passing to load? I’m using display.actualContentWidth for width, and 50 for height.

Hi Danny,

May I know how you change the orientation? in build.settings right? Can you share it?

Are you trying the sample code from https://github.com/coronalabs/plugins-sample-inmobi right?

I tried to change the orientation, but still it was not shown. Even from the simulator I can see some of the interface is being cut.

Please kindly help.

Thanks & Best Regards,

Willy

Sorry for the delay on getting back to you.

The email notification got lost at sea it seems.
Feel free to send me a private message on the forums and I’ll respond with the sample code I tested with.

Thank you

Can you try and build this sample app:

https://github.com/coronalabs/plugins-sample-inmobi

Rob

Hi Rob,

Yes, I just tried, and same thing, nothing shown up.

I already added my device to inmobi as per instruction. I am testing using iPad.

Again, there is no error in console log. Do I miss anything?

Thanks a lot,

Mintymint

Hey MightyMint.

I’ve pushed an update to this plugin.

This update will be available within 1>2 hours from the time of this post.

You just need to build your project again to get the changes. I’m not sure what your exact issue is, but this improves the plugin regardless.

Did you add your placement ids and app id as described in the docs?

Thank you

Hi Danny,

Thanks for the update.

I finally manage to make it works.

It’s just simply because normally I always organize my ads related function to separate lua files. So from my main.lua, I can just called that function to initialize the ads, but it seems I am unable to do that this time, not sure why also.

But putting the whole functions to main.lua directly works, so, that’s good enough. :slight_smile:

Thanks a lot Danny and Rob for the help and support.

Best Regards,

Mintymint

Hi,

I have another issue, now that the banner is shown, however, it seems it only works with portrait orientation.

My app is landscape and I need to use yAlign=“bottom”, but it seems like the banner only works with portrait orientation.

So the banner ads is actually shown but its out of the screen. It works fine when I test it with iPad, but it doesn’t work with iPhone.

Anyone experience the same? can we set specific position of the banner?

Any help will be appreciated.

Thanks a lot in advance,

Mintymint

Is this just in landscape mode, or when using auto orientation?

Hi Danny,

This is just in landscape more, as my app doesn’t use auto orientation.

So, these are the condition:

  1. iPad landscape (this works fine)

InMobi ads banner shown at the bottom, centre aligned

  1. iPhone landscape

InMobi ads banner doesn’t show at all, because, even the app is using landscape mode, seems like the ads treat it as portrait mode. So the ads actually appear but off the screen. So, I tried to change the yAlign=centre, and the ads appear about 1 cm from the bottom (landscape orientation), left aligned

Please kindly help and thanks a lot in advance,

Mintymint