ADS QUESTION NOOB

Hello i need to test and use 3 to 5 different ads publisher such as

inmobi

admob

revmob and others in my game made in corona but i  m confused there is only one build file so i want to ask should i insert code of 3 publisher in same build setting file or what ? 

EXAMPLE :

I need players to see the INMOBI ads in main screen then changed the scene and then admob Ads came up and then changed the scene again and revmob scene came up

so after that they see all ads main menu will appear 

How can i use 3 different publisher in same game tutorial will be much appreciated thanks

This might get you started:

https://coronalabs.com/blog/2013/11/19/tutorial-using-multiple-ad-networks/

Rob

i already read it but still confused lemme get is straight

Can i add 3 to 5 publisher in build setting ? right 

Yes, you can include multiple plugins for ads to your build.settings.

Rob

I m getting one error now here is my code which  i have added in build setting and main lua

main.lua file here it is 

-- The name of the ad provider. local provider = "admob" -- Your application ID local appID = "ca-app-pub-3329527549923949/6159415117" -- Load Corona 'ads' library local ads = require "ads" local function adListener( event ) if ( event.isError ) then --Failed to receive an ad end end ads.init( "admob", "ca-app-pub-3329527549923949/6159415117", adListener ) ads.show( "banner", { x=0, y=0, appId="otherAppId" } )

setting file

settings =

{

    plugins =

    {

        [“CoronaProvider.ads.admob”] =

        {

            publisherId = “com.coronalabs”

        },

    },      

}

But i m getting error

ads library is not available on this platform.

I build it but ads are not showing in android

You probably should be using the new version of the AdMob plugin.  If you’ve just started on this, then your AdMob portal is probably the V2 version.  See: http://docs.coronalabs.com/plugin/ads-admob-v2/index.html

Google will stop serving the v1 service at the end of August.

i m getting this error now

BUILD ERROR #5

a device build error on the server

BULD ID 53a6f86938884

error get plugin failed

plugin.play.google.service

Can you post your build.settings?

settings = { orientation = { default = "portrait", supported = { "portrait" } }, iphone = { plist = { CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", }, }, }, } settings = { plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, }, }

this is my build setting

settings = {     orientation =     {         default = "portrait",         supported = { "portrait" }     },     iphone =     {         plist =         {             CFBundleIconFile = "Icon.png",             CFBundleIconFiles =             {                 "Icon.png",                 "Icon@2x.png",                 "Icon-60.png",                 "Icon-60@2x.png",                 "Icon-72.png",                 "Icon-72@2x.png",                 "Icon-76.png",                 "Icon-76@2x.png",                 "Icon-Small.png",                 "Icon-Small@2x.png",                 "Icon-Small-40.png",                 "Icon-Small-40@2x.png",                 "Icon-Small-50.png",                 "Icon-Small-50@2x.png",             },         },     },     plugins =     {         ["plugin.google.play.services"] =         {             publisherId = "com.coronalabs"         },     },       }  

You have two settings tables.  The plugins belong in side the other settings table.

I have one build.setting file i m talking about of SIMPLE POOL i m making same project like that

But i didnot understand what u mean by i have two setting tables ?

The code you posted above has two settings = {} tables.  The second one overwrites the first one.  Try using the one I posted.

I have used same code previously and still same error build 

settings =
{
plugins =
{
[“plugin.google.play.services”] =
{
publisherId = “com.coronalabs”
},
},
}

but what i see is

This version of the plugin uses the latest version of the AdMob SDK and only works with build 2014.2264 or later.

 

 

So is this the cause ? of build error ?

if i m doing mistake kindly paste build setting file along with your code i m fed up :frowning:

I did paste the working code in a couple of posts back.

100 time tested same error coming i dont understand why you are keep saying that code is not correctly inserted ? i already inserted correctly actually the error is in BUILD system with latest RELEASE OF SDK CORONA which is either not supporting by ADMOB V2 or Maybe this is bug

This might get you started:

https://coronalabs.com/blog/2013/11/19/tutorial-using-multiple-ad-networks/

Rob

i already read it but still confused lemme get is straight

Can i add 3 to 5 publisher in build setting ? right 

Yes, you can include multiple plugins for ads to your build.settings.

Rob