unfinished string near '"CoronaProvider.ads.admob”] = '

I’m trying to build my game that have ads but I’m getting this error on build.settings:

unfinished string near '"CoronaProvider.ads.admob”] = '   

someone knows what is wrong??

Here’s my build.settings:

plugins =     {                  ["CoronaProvider.ads.admob”] =          {             -- required             publisherId = "pub-xxxxxxxxxxxx"         }     },  

Thanks

EDIT:

the publisherId must be com.coronalabs   ??

plugins = { ["CoronaProvider.ads.admob”] = { -- required publisherId = "pub-xxxxxxxxxxxx", }, },

You missed the commas.

burhan

Change to your code BUT still getting this error…

Hey Burhan, did you already set up an AdMob app?

I’m trying to understand what should I put on ads.init

I search and found that people are talking about this id:

ca-app-pub-123456789/987654321  

so I have to put this on init, like that:

ads.init( 'admob', 'ca-app-pub-123456789/987654321', { x=0, y=0 }  );  

or should I put only the numbers?

Like that:

ads.init( 'admob', '123456789/987654321', { x=0, y=0 }  );  

and on the build.settings… when I tried to put my publisherId on it… it returns me an error saying that can’t found that plugin on corona… so I guess I should put “com.coronalabs” as publisherId right?

can you give me a light here? Really need this ads for yesterday D:

Thanks

Hi Dhennrich,

If you read on other thread:

http://forums.coronalabs.com/topic/44128-trouble-using-admob/

You see there our confusion.  :wacko:

but read here and see the last post. Dani said it works fine. 

http://forums.coronalabs.com/topic/40362-admob-integration-whats-my-app-id/#entry217550

Yes, in build.settings you put “com.coronalabs” as publisherId.

Mine works fine but uses legacy admob.

burhan

Looks like you’ve gotten some smart quotes in there too.   Try:

plugins =
    {
        
        [“CoronaProvider.ads.admob”] = 
        {
            – required
            publisherId = “pub-xxxxxxxxxxxx”
        }
    },

The 2nd " at the end of CoronaProvider.ads.admob was a smart quote not a (").

The commas as mentioned above are not required, but they don’t hurt either and if you ever add more entries, you tend to forget to add the commas and get errors, so many people prefer to have them out of habit.

Rob

Thanks guys!

now its working :smiley:

plugins = { ["CoronaProvider.ads.admob”] = { -- required publisherId = "pub-xxxxxxxxxxxx", }, },

You missed the commas.

burhan

Change to your code BUT still getting this error…

Hey Burhan, did you already set up an AdMob app?

I’m trying to understand what should I put on ads.init

I search and found that people are talking about this id:

ca-app-pub-123456789/987654321  

so I have to put this on init, like that:

ads.init( 'admob', 'ca-app-pub-123456789/987654321', { x=0, y=0 }  );  

or should I put only the numbers?

Like that:

ads.init( 'admob', '123456789/987654321', { x=0, y=0 }  );  

and on the build.settings… when I tried to put my publisherId on it… it returns me an error saying that can’t found that plugin on corona… so I guess I should put “com.coronalabs” as publisherId right?

can you give me a light here? Really need this ads for yesterday D:

Thanks

Hi Dhennrich,

If you read on other thread:

http://forums.coronalabs.com/topic/44128-trouble-using-admob/

You see there our confusion.  :wacko:

but read here and see the last post. Dani said it works fine. 

http://forums.coronalabs.com/topic/40362-admob-integration-whats-my-app-id/#entry217550

Yes, in build.settings you put “com.coronalabs” as publisherId.

Mine works fine but uses legacy admob.

burhan

Looks like you’ve gotten some smart quotes in there too.   Try:

plugins =
    {
        
        [“CoronaProvider.ads.admob”] = 
        {
            – required
            publisherId = “pub-xxxxxxxxxxxx”
        }
    },

The 2nd " at the end of CoronaProvider.ads.admob was a smart quote not a (").

The commas as mentioned above are not required, but they don’t hurt either and if you ever add more entries, you tend to forget to add the commas and get errors, so many people prefer to have them out of habit.

Rob

Thanks guys!

now its working :smiley: