Appsaholic Commercial Break error

Hi team,

 

i have integrated appholic using the following method. but getting the attached error. 

 

pls help me resolve this

 

local combre = require( “plugin.combre” )

combre.init( “xxxxxxxxxxxxxxxxxx” )

combre.setEventListener( combreListener )

combre.showVideoAd( 1, false, true )

 

build file as below

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {

orientation = {

default = “portrait”,

supported = { “portrait” }

},

           android =

    {

    facebookAppId = “xxxxxxxxxxxxxxx” ,

googlePlayGamesAppId = “xxxxxxxxxxxxxxxxx” ,

            

        usesPermissions =

        {

            “android.permission.INTERNET”,

            “android.permission.ACCESS_NETWORK_STATE”,

            “android.permission.ACCESS_COARSE_LOCATION”,

            “android.permission.ACCESS_FINE_LOCATION”,

            “android.permission.WRITE_EXERNAL_STORAGE”,

            “com.google.android.providers.gsf.permissions.READ_GSERVICES”,

“com.android.permission.READ_PHONE_STATE”

             

        },

    },

    plugins = {

    

            [“plugin.combre”] =

        {

            publisherId = “com.appsaholic”,

            supportedPlatforms = { iphone=true, android=true }

        },

           

    

        [“plugin.facebook.v4”] =

{

publisherId = “com.coronalabs”,

},

        [“plugin.google.iap.v3”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { android=true }

        },

                

        

             

        [“plugin.google.play.services”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { android = true }

        },

         

         [“CoronaProvider.native.popup.social”] =

        {

            publisherId = “com.coronalabs”

        },

        [“CoronaProvider.gameNetwork.google”] =

      {

      

      publisherId = “com.coronalabs”,

   },

    

     

        [“plugin.advertisingId”] =

       {

  publisherId = “com.coronalabs”

       },

    

   },

    

    

}

  1. You should edit your post and remove all of your private ID.  There were 3 instances of private information you shared:
  • combre.init
  • facebookAppId
  • googlePlayGamesAppId
  1. Many people have already seen this post, so you should probably also change whichever ones you can.

  2. Read this: https://forums.coronalabs.com/topic/55780-ask-a-better-question-get-a-better-answer/

Best regards,

Tony

Sorry abt that… have edited it. thanks!!

can someone pls reply to it? its been 4 days and no reply :frowning:

pls help me resolve this asap. waiting for the resolution

This may be a problem when calling init before setListener on Android. Try moving your init after setListener.

it worked :slight_smile: thanks

  1. You should edit your post and remove all of your private ID.  There were 3 instances of private information you shared:
  • combre.init
  • facebookAppId
  • googlePlayGamesAppId
  1. Many people have already seen this post, so you should probably also change whichever ones you can.

  2. Read this: https://forums.coronalabs.com/topic/55780-ask-a-better-question-get-a-better-answer/

Best regards,

Tony

Sorry abt that… have edited it. thanks!!

can someone pls reply to it? its been 4 days and no reply :frowning:

pls help me resolve this asap. waiting for the resolution

This may be a problem when calling init before setListener on Android. Try moving your init after setListener.

it worked :slight_smile: thanks