Hi Brent
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} )