×
A new build of Corona SDK is now available to subscribers. Not a subscriber? Subscribe now.
CoronaSDK 2012.821 | Released: 23 May 2012, 2:01am | What's New | Download Now

Ads

Overview

The Corona Advertising library lets you display ads within your application. Currently, we support two different ad networks:

Click the links above to be taken to the corresponding usage guide.

The following code demonstrates basic usage of the Ads library (with InMobi network).

-- Import library and initialize with personal application key 
local ads = require "ads"
ads.init( "inmobi", you Ad key )
-- Set the ads (updates every 5 seconds)
ads.show( "banner320x48", { x=0, y=100, interval=5, testMode=false } )

Note: Adding "require ads" to your code will enable Corona Launchpad regardless of the setting in config.lua.

More Information

For more information see the Corona Dashboard.