Hi,
I am ready to publish my game to the app store and the final step is adding iAd. I’m not sure if I have this correct. Is this the correct way to set up iAd in your App ?
What I have below is all the code included in my project to include iAd. Is this everything you need ?
First time trying to implement iAd and publishing an app so trying to get everything correct.
I think I have everything included and it’s ready to be submitted but just want to make sure.
I would greatly appreciate any input.
Thank you
main.lua
-- hide the status bar at the top of the screen display.setStatusBar(display.HidenStatusBar) --Include the widget library local widget = require( "widget" ) --The name of the ad provider. local adNetwork = "iads" --Replace with your own application ID local appID = "com.daleoshea.flappybat" --Load Corona 'ads' library local ads = require "ads" --Initialize the 'ads' library with the provider you wish to use. if appID then ads.init( adNetwork, appID,) end
build.settings
plugins = { ["CoronaProvider.ads.iads"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, },