inmobi, detecting the ads show

I want to ad a button to hide the ads, but i dont know how to detect that one ads is being shown.
How to know it? [import]uid: 113117 topic_id: 30522 reply_id: 330522[/import]

i am using inmobi [import]uid: 113117 topic_id: 30522 reply_id: 122274[/import]

If you want to hide ads, you just use:

ads.hide()  

You don’t need to know if there is an inMobi ad showing or not.
[import]uid: 94868 topic_id: 30522 reply_id: 122288[/import]

I need to know it…because the ad hide interface. [import]uid: 113117 topic_id: 30522 reply_id: 122289[/import]

Well, I guess the only way to know if you received an ad or not is in the listener response. You defined a listener in the ads.init().

ads.init( "inmobi", APPID, adListener )  

If you get a response, there will be an event.isError value. If it is false, you most likely received an ad and are now showing it. If it is true, you did not receive an ad. [import]uid: 94868 topic_id: 30522 reply_id: 122291[/import]

Thanks [import]uid: 113117 topic_id: 30522 reply_id: 122341[/import]

i am using inmobi [import]uid: 113117 topic_id: 30522 reply_id: 122274[/import]

If you want to hide ads, you just use:

ads.hide()  

You don’t need to know if there is an inMobi ad showing or not.
[import]uid: 94868 topic_id: 30522 reply_id: 122288[/import]

I need to know it…because the ad hide interface. [import]uid: 113117 topic_id: 30522 reply_id: 122289[/import]

Well, I guess the only way to know if you received an ad or not is in the listener response. You defined a listener in the ads.init().

ads.init( "inmobi", APPID, adListener )  

If you get a response, there will be an event.isError value. If it is false, you most likely received an ad and are now showing it. If it is true, you did not receive an ad. [import]uid: 94868 topic_id: 30522 reply_id: 122291[/import]

Thanks [import]uid: 113117 topic_id: 30522 reply_id: 122341[/import]