Change Ad Network ??

Hi,

Right now, I contact my Server to get a value that tells the app what AdNetwork to use
(keeps me flexible)

depending on that I call

ads.init( “inmobi”, “xxxxx” )
ads.show( “banner”, { x=0, y=430, interval=90, testMode=false } )


my problem (or bug) is now, how to REMOVE a previously inited network so i can assign a new one?

When I did once ads.init()
and call it a second time, it seems the second call just comes ignored, or do not overwrite the previous settings.

For example.

  1. ads.init( “inmobi”, “xxxxx” ); ads.show (“banner320x48”,{x=0,y=430})
    will show INMOBI ads as expected at position 430

  2. when I later call
    ads.init( “inneractive”, “xxxxx” ); ads.show (“banner”,{x=0,y=300})

it will still show InMobi Ads, just at a new Position (300)!!
HOW can change the AdNetwork while RunTime??

Thx
chris
[import]uid: 4795 topic_id: 21049 reply_id: 321049[/import]

I’m setting up something similar and am wondering the same thing. Have you tried calling ads.hide() before init-ing the new network?

If that doesn’t work then +1 for a way to switch ad networks on the fly. [import]uid: 9422 topic_id: 21049 reply_id: 83187[/import]

tried right now…

did not helped…still loading the first assigned network by ads.init()
the x,y position change as set by ads.show() but not the network…

!!!

-1 -1 -1 :frowning:

any ideas / workaround are welcomed.

chris
[import]uid: 4795 topic_id: 21049 reply_id: 83197[/import]

Ugh. Just tried it and it didn’t work for me either. Any tips for workarounds would be appreciated, but I suspect this is going to have to be another feature request. [import]uid: 9422 topic_id: 21049 reply_id: 83220[/import]

Also placed a +1 in Feature Request…
Please Ansca…. I saw your troubles with GameCenter (daily fixes)
therefore make a break in that for a day …
and give us the option to release a previously ads.init to create a new one :slight_smile:
chris

[import]uid: 4795 topic_id: 21049 reply_id: 83366[/import]

Could anyone from Ansca confirm they are into that topic and we could get soon a solution?
[import]uid: 4795 topic_id: 21049 reply_id: 83776[/import]

Hi Chris, I’m not sure if this is what you are looking for, but just in cas it does, here’s a shared code posted by deniz:

http://developer.anscamobile.com/code/ad-manager

Hope it helps.

Naomi
[import]uid: 67217 topic_id: 21049 reply_id: 83807[/import]

HI Naomi,

thanks for the link.
Also It looks like you could change the Network itself while start from the app,
but not while already running. (you could change HouseAds while running)

I guess Ansca would have to fix so we can call Ads.init several times and it does overwrite
the previous settings.

all the best
chris
[import]uid: 4795 topic_id: 21049 reply_id: 84191[/import]