Question regaurding adBuddiz and scenes

In the documents of adBuddiz they say

In you main lua script that gets called when your app starts, add the following code:

local AdBuddiz = require “plugin.adbuddiz”
AdBuddiz.setAndroidPublisherKey( “TEST_PUBLISHER_KEY_ANDROID” )
AdBuddiz.setIOSPublisherKey( “TEST_PUBLISHER_KEY_IOS” )

Now would I need to put that code in every scene that will be showing ads or just main.lua? I would need to define AdBuddiz in each scene but I am unsure if I need to set the key in each scene also

You only need to do that on the main.lua.

You need to include this:

local AdBuddiz = require “plugin.adbuddiz”

in every scene where you tend to call and of the AdBuddiz.* calls needed to show an ad, but you only need to initialize it once in main.lua.

Rob

Thanks

You only need to do that on the main.lua.

You need to include this:

local AdBuddiz = require “plugin.adbuddiz”

in every scene where you tend to call and of the AdBuddiz.* calls needed to show an ad, but you only need to initialize it once in main.lua.

Rob

Thanks