My app was rejected because:
“iAd is not an appropriate use of Advertising Identifier. It looks as if the ads appearing are iAds.”
I pretty much copied the code from the example making the necessary changes. Is there an issue Apple has recently developed with Corona? Here is my code:
I’m trying to set my game up where I have a little ad that goes across the top of the screen at certain times. I thought I had it setup but Apple rejected my app saying, " iAd is not an appropriate use of Advertising Identifier. It looks as if the ads appearing are iAds."
In my build settings I have:
plugins =
{
– key is the name passed to Lua’s ‘require()’
[“CoronaProvider.ads.iads”] =
{
– required
publisherId = “com.coronalabs”,
},
and in my main.lua I have:
– 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.aslanendeavors.catchjack2”
– Load Corona ‘ads’ library
local ads = require “ads”
– Create a text object to display ad status
local statusText
– Set up ad listener.
local function adListener( event )
– event table includes:
– event.provider
– event.isError (e.g. true/false )
– event.response - the localized description of the event (error or confirmation message)
local msg = event.response
– just a quick debug message to check what response we got from the library
print("Message received from the ads library: ", msg)
if event.isError then
statusText:setFillColor( 1, 0, 0 )
statusText.text = msg
else
statusText:setFillColor( 0, 1, 0 )
statusText.text = msg
end
end
– Initialize the ‘ads’ library with the provider you wish to use.
if appID then
ads.init( adNetwork, appID, adListener )
end
– initial variables
local sysModel = system.getInfo(“model”)
local sysEnv = system.getInfo(“environment”)
local showAd
As you can tell this is pretty much copied straight from Corona’s example. Can you tell me what I’m doing wrong?