Banner on top of layers and actors, and how to refresh the banner?

xwrbnxxwrbnx Member Posts: 23
edited August 2015 in Working with GS (Mac)

Hi all,

1.

Is banner triggered using ShowBanner behaviour always put on top of any layer?
It means always on top of the layers and other actors, no matter which actor call the ShowBanner, no matter in which layer the actor who Show the banner, no matter if there will be other actors spawned in front layer at any point of time during the game?
Can anybody confirm this?

2.

How do we refresh the banner to show different ads after a period of time?
Do we just simply use timer and call the show banner behaviour every certain time?
Example:
Timer: Every 40 seconds
Call ShowBanner behaviour
Is it just like that? Or do we need to destroy the previous banner first? If yes, how to do that?

Thank you in advance.

Comments

  • xwrbnxxwrbnx Member Posts: 23

    bump up...

  • BlackCloakGSBlackCloakGS Member, PRO Posts: 2,250

    1) yes

  • RabidParrotRabidParrot Formally RabidParrot. Member Posts: 956

    @xwrbnx said:
    Hi all,

    1.

    Is banner triggered using ShowBanner behaviour always put on top of any layer?
    It means always on top of the layers and other actors, no matter which actor call the ShowBanner, no matter in which layer the actor who Show the banner, no matter if there will be other actors spawned in front layer at any point of time during the game?
    Can anybody confirm this?

    2.

    How do we refresh the banner to show different ads after a period of time?
    Do we just simply use timer and call the show banner behaviour every certain time?
    Example:
    Timer: Every 40 seconds
    Call ShowBanner behaviour
    Is it just like that? Or do we need to destroy the previous banner first? If yes, how to do that?

    Thank you in advance.

    @Braydon_SFX Has a great tutorial video. You can watch it here

  • xwrbnxxwrbnx Member Posts: 23

    Thanks, @RabidParrot , I use the method in the video. However, when viewing in Android Viewer, it crash the viewer/ game in the viewer when it is time to reshow the banner.
    Testing with changing scene when there is banner also cause crash.
    It is just fine in Creator preview.

    I wonder whether it is just in viewer and not in real app later. It is very frustrating.
    Any suggestion? Thanks.

  • QASaladQASalad Inactive, Chef Emeritus Posts: 142

    For #2, the ads are controlled by the ad service. Destroying the actor won't necessarily ensure that a different ad is displayed.

  • RabidParrotRabidParrot Formally RabidParrot. Member Posts: 956

    @xwrbnx said:
    Thanks, RabidParrot , I use the method in the video. However, when viewing in Android Viewer, it crash the viewer/ game in the viewer when it is time to reshow the banner.
    Testing with changing scene when there is banner also cause crash.
    It is just fine in Creator preview.

    I wonder whether it is just in viewer and not in real app later. It is very frustrating.
    Any suggestion? Thanks.

    Try testing Ad-Hoc. I wouldn't think a couple of timers would make the viewer crash.

  • RabidParrotRabidParrot Formally RabidParrot. Member Posts: 956

    For admob I'm pretty sure you can set the refill rate.

  • QASaladQASalad Inactive, Chef Emeritus Posts: 142
    edited August 2015

    The Show Banner behavior causes the android viewer to crash.

    Bug: http://bugs.gamesalad.com/show_bug.cgi?id=1270

  • xwrbnxxwrbnx Member Posts: 23

    Hi @QASalad , thanks for the link to the bug URL. Is it in the list of fixes in the near future? Thanks.

    Regarding your earlier response "the ads are controlled by the ad service", does it mean the method referred by RabidParrot (recall the ShowBanner behaviour) is unnecessary?
    Does it mean we just need to call the ShowBanner once and we will just need to set the refresh rate in the iAds page?

    Thanks in advance.

  • QASaladQASalad Inactive, Chef Emeritus Posts: 142

    @xwrbnx said:
    Hi QASalad , thanks for the link to the bug URL. Is it in the list of fixes in the near future? Thanks.

    Regarding your earlier response "the ads are controlled by the ad service", does it mean the method referred by RabidParrot (recall the ShowBanner behaviour) is unnecessary?
    Does it mean we just need to call the ShowBanner once and we will just need to set the refresh rate in the iAds page?

    Thanks in advance.

    Yes, yes, and yes.

Sign In or Register to comment.