error when building game for android using iads and 3rd party ads for android

hello

Every one I m using this build.setting file getting error when I m building for android(Uploaded image).

I am using iads as well as 3rd part ads in my game

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {

    

    orientation = {

        default = “landscapeRight”,

        supported = { “landscapeLeft”, }

    },

        plugins =

    {

        – key is the name passed to Lua’s ‘require()’

        [“CoronaProvider.ads.iads”] =

        {

            – required

            publisherId = “com.coronalabs”,

        },

    },

    iphone = {

        plist = {

            UIStatusBarHidden = false,

            UIPrerenderedIcon = false, – set to false for “shine” overlay

            --UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend

            --[[

            – iOS app URL schemes:

            CFBundleURLTypes =

            {

                {

                    CFBundleURLSchemes =

                    {

                        “fbXXXXXXXXXXXXXX”, – example scheme for facebook

                        “coronasdkapp”, – example second scheme

                    }

                }

            }

            --]]

        }

                

                    

    },

    

    

    – Android permissions

    android =

  {

    usesPermissions =

    {

      “android.permission.INTERNET”,

      “android.permission.ACCESS_WIFI_STATE”,

      “android.permission.READ_PHONE_STATE”,

      “android.permission.ACCESS_NETWORK_STATE”,

    },

  },

}

Where I am wrong.?

Image of error when I build the game for android

Since iAds only works for iOS, add a line in your iad plugin setting:

["CoronaProvider.ads.iads"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone = true }, -- \<-- add this line },

Thanks  :slight_smile:

Working fine

Since iAds only works for iOS, add a line in your iad plugin setting:

["CoronaProvider.ads.iads"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone = true }, -- \<-- add this line },

Thanks  :slight_smile:

Working fine