I got informed by a friend of mine that the Facebook Banner displayed on my apps cannot be tapped. I just tried it and it is really the case. Anyone with similar issue? Seems like it only happen on iPhone. I tested the same app on an Android phone and it works fine.
I just did a quick test to disable the admob plugin (removing the init, show code) and it works! Is it possible to use both the admob and Facebook Audience at the same time? If so, how should I use them such that it will work properly?
I’m not sure why there would be a conflict. We’ll probably need to see your code and implementation, and see where you’re hiding/showing ads, to determine if this is a fixable issue or otherwise.
First I will do an initialisation of both Admob and Facebook Audience.
function M:init() if self.enableFacebookAds then fbAudienceNetwork.init( fbadListener ) end if device.isApple then ads.init("admob", appID\_iOS, adListener) else ads.init("admob", appID\_android, adListener ) end end
Following that, I will show Admob Banner first.
if device.isApple then ads.show( "banner", { x=0, y=display.contentHeight}) else ads.show( "banner", { x=0, y=10000} ) end
In the event Facebook Audience banner is available which I know via the listener, I will hide the admob banner and display the Facebook Audience banner instead.
elseif ( event.phase == "loaded" ) then print( "Facebook Audience Network event: " .. event.type .. " ad loaded successfully" ) if ( event.type == "banner" ) then -- To show the banner upon load completion, call fbAudienceNetwork.show() here -- hide admob when FAN is available ads.hide() fbAudienceNetwork.show( "banner", fb\_banner\_id, { y=display.contentHeight-adheight} )
Just tried out what you requested. The rect is able to receive touch event after the admob ad has been hidden.
In any case, I have changed my implementation. Instead of showing the admob ad first and subsequently hide it when FAN ad is available, I only show admob ad if I receive an error event from FAN ad listener. Works fine as of now.
Can confirm that I am seeing the same behaviour. If a FAN banner is shown first straight after app boot-up I am able to click the FAN banner but as soon as an Admob banner is shown then hidden any subsequent FAN ads are untouchable. Will try to narrow down what Admob call is causing the issue.
If you call fbAudienceNetwork.hide( bannerPlacementID ) for a second time straight AFTER the admob ads.hide() call then the FAN banner works as per normal and is clickable/touchable. @danny this might point to a permanent fix.
No probs, I am very glad there was an easy workaround as I didn’t fancy using any of the other banner providers. The FAN banners actually look quite inviting. Looking forward to seeing how effective they are.