Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Admob ads in iOS not respecting setAlignment in some cases. — Gideros Forum

Admob ads in iOS not respecting setAlignment in some cases.

AniketAniket Member
edited July 2014 in Bugs and issues
I have an ad implementation using the Gideros ad interface that is set to appear at the "center bottom" alignment.
It is hidden in the main screen and shown again in the inner screen.
This works correctly on android tablets but on android phones and iPads, it appears at the top left initially. When it is hidden and recreated, it correctly appears at the bottom.

Is there something that explains this? What have I done wrong? The code is nearly identical to the code in the example provided in the ads-interface, except I assign my listeners before I show the ad and set the alignment.

Comments

  • tkhnomantkhnoman Member
    Accepted Answer
    Yes, this is indeed a new problem because of Admob updating the SDK.

    Please only do setAlignment on Event.AD_RECEIVED and Event.AD_DISPLAYED

    Likes: Aniket

    +1 -1 (+1 / -0 )Share on Facebook
  • AniketAniket Member
    Thanks! That works great.
  • AniketAniket Member
    Yes, this is indeed a new problem because of Admob updating the SDK.

    Please only do setAlignment on Event.AD_RECEIVED and Event.AD_DISPLAYED
    This does not work when using the iAd provider
  • tkhnomantkhnoman Member
    edited July 2014
    I don't know what is wrong myself, so i'm using require "iad", instead of Ads Interface.
    But lately i drop the iAd, so i'm not sure if there is improvement in it or not.
    Let's just mention @ar2rsawseen

    The same with in-App purchase, i don't know why but iab have a weird bug for iOS, so i'm using storekit instead.

    Edit : Not forget to mention, the last update kind of different with before, so please use setAlignment also after "showAd".
  • ar2rsawseenar2rsawseen Maintainer
    Yes, sorry I know lots of stuff need to be fixed and done.
    But most probably I will only be able to do alot of that, after coming up about what approach to use after Gideros Open sourcing, cause also lots of stuff I need to do on the side not related to Gideros now
  • yubaroyubaro Member
    edited October 2014
    Hi, I'm testing in the simulator.

    It works perfect in the simulator with ios 7.1, setAlignment in center and bottom(Admob and Iad)

    With ios8 not working properly, not displayed on the screen(Admob and Iad)

    @ar2rsawseen, any way to correct this?

    And with Chartboost and Heyzap this error:
    chartboost-error.jpg
    897 x 396 - 53K
    heyzap-error.jpg
    900 x 401 - 59K
Sign In or Register to comment.