Hello guys,
I have some problems showing ads for test on my device when passing through an adsLib.lua
I tried AdBuddiz plugin and It works perfectly when I place the 3 lines of code required to make the plugin work in my main.lua file, and I call it from the menu.lua in my game with[lua] AdBuddiz.showAd()[/lua]
Now when I want to integrate AdBuddiz in my adsLib.lua file so I can set multiple ads and keep a lua file for all my ad provider I don’t get any error, but the sample test ad is not showing on my device.
This is the page for setting up the adsLib (as It was in the template I downloaded) http://ragdogstudios.com/2014/08/23/adslib-v2-how-to-implement-it-and-maximize-your-revenues/
I just call [lua] adsLib.showAd(“main_menu”);[/lua] as shown in the tutorial and I set up main_menu in my setup.lua with AdBuddiz as the first provider.
This is my main_menu ad in the setupFile.lua
[lua]local adsSettings = {
[“iPhone”] = {
[“main_menu”] = {
mediationType = “order”,
adType = “interstitial”,
frequency = 1,
keepOrderDuringSession = true,
providers = {
[1] = {
providerName = “AdBuddiz”,
providerFallback = 2,
mustBeCached = false,
},
[2] = {
providerName = “revmob”,
providerFallback = 1,
mustBeCached = false
}
}
},[/lua]
Everything should work fine but It doesn’t. If you can help me with this.
Thank You