How to using FB Audience Network to show interstitial ads in our app.

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 …  ((:

Please download and try building the FAN sample app:

https://github.com/coronalabs/plugins-sample-fbAudienceNetwork

Does this build and show ads for you?

Have you done what you need on the Facebook side to setup FAN to use?

Rob

yeah , because delay load ads

You can use the sample code to see how to build  your app. If you need to delay the show/load call a bit, you can put it in a timer or wait to a logical point in your app to show the ad.

Rob

Please download and try building the FAN sample app:

https://github.com/coronalabs/plugins-sample-fbAudienceNetwork

Does this build and show ads for you?

Have you done what you need on the Facebook side to setup FAN to use?

Rob

yeah , because delay load ads

You can use the sample code to see how to build  your app. If you need to delay the show/load call a bit, you can put it in a timer or wait to a logical point in your app to show the ad.

Rob