Build.settings question

I’m trying to add the plugin settings in my build.settings but I want to clarify that build.settings isn’t a separate entity than my main.lua file? In this case, if I paste the following code at the very top of my main.lua file, that will be my build.settings. Is that correct?

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

Also on the following tutorial page, there’s a line saying, "local adProvider = “superDuperAds” ". Am I supposed to sub out superDuperAds to something like “admob”?

Link:

http://coronalabs.com/blog/2014/07/15/tutorial-implementing-admob-v2/

Thanks for the help

Nope. The build.settings file is a separate file in your app root directory. Your tree will look like this:

- main.lua - config.lua - build.settings - etc., etc., etc.

And I’m not much experienced with ads, but that looks right. I mean, if you know there isn’t an ad provider named “superDuperAds”, it has to be replaced with a real one :).

  • Caleb

Thanks Caleb, I appreciate it! 

And yes, in the tutorial superDuperAds does get changed to “admob”, so you were right on that as well!

Nope. The build.settings file is a separate file in your app root directory. Your tree will look like this:

- main.lua - config.lua - build.settings - etc., etc., etc.

And I’m not much experienced with ads, but that looks right. I mean, if you know there isn’t an ad provider named “superDuperAds”, it has to be replaced with a real one :).

  • Caleb

Thanks Caleb, I appreciate it! 

And yes, in the tutorial superDuperAds does get changed to “admob”, so you were right on that as well!