We’re using FB Audience Network to show interstitial ads in our app Android. on Android it not work, here code in main.lua
------------- FB ADS ------------------------------------
local ads = require “ads”
local fbAudienceNetwork = require( “plugin.fbAudienceNetwork” )
local placementID = “34012121212173_121212121212”
local function adListener( event )
if ( event.phase == “init” ) then – Successful initialization
fbAudienceNetwork.load( “interstitial”, placementID )
elseif ( event.phase == “loaded” ) then – The ad was successfully loaded
fbAudienceNetwork.show( event.type, event.placementId)
elseif ( event.phase == “failed” ) then – The ad failed to load
elseif ( event.phase == “clicked” ) then – The ad was clicked/tapped
elseif ( event.phase == “closed” ) then – The ad was closed (interstitial ads only)
end
end
fbAudienceNetwork.init( adListener )
fbAudienceNetwork.show( “interstitial”,placementID)
-------- here import pugin in build.config -------------
plugins =
{
[“plugin.fbAudienceNetwork”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true, android=true, osx=true, [“win32-sim”]=true },
},
[“plugin.google.play.services”] =
{
publisherId = “com.coronalabs”
},
},
PLEASE HELP ME , i’m tired … ((: