Using AdMob in Final App

I originally intended to write my application in objective-C with Xcode etc etc and I was going to make it free and use Admob to cover some of the dev costs but I don’t think I can do this now I am using Corona.
Please help / advice etc
[import]uid: 5872 topic_id: 879 reply_id: 300879[/import]

We are looking into integrating an ad vendor into Corona. It is in our feature roadmap.

http://anscamobile.com/corona/roadmap/

Another popular thing to do is two create two versions of the app, a lite version, with limited play functionality, and a full version. the Lite version promotes the full paid version.

example : lite version only has three levels. And every time it startsup, or switches levels, display a buy the full version for $1.99 and get up to 20 levels image or the like…

Thanks

Carlos [import]uid: 24 topic_id: 879 reply_id: 1960[/import]

Thanks for the roadmap.

Yes I appreciate that, and that is my intention (hence the question) but if it’s not in the SDK how does that sentence help me? / How can I create a lite add supported version if there is currently no Add Vendor Support in Corona? [import]uid: 5872 topic_id: 879 reply_id: 1968[/import]

You can’t. Corona is a closed system. IT does not support external libs at the moment. [import]uid: 5712 topic_id: 879 reply_id: 1970[/import]

We don’t support external libraries at the moment due to our multi-platform strategy.
C [import]uid: 24 topic_id: 879 reply_id: 1974[/import]

How does everyone feel about ad solutions, given the announcement of iAd by Apple? [import]uid: 54 topic_id: 879 reply_id: 1977[/import]

How I feel about Apples new SDK? Closed in! I like to choose from the variety of 3rd party libraries. But hey, Corona is as closed as it can be. :slight_smile: [import]uid: 5712 topic_id: 879 reply_id: 2013[/import]

I’ll break the silence on this matter…
We have been developing full time in the mobile market for almost 2 years now.
We currently have 3 apps in the Android marketplace that are in the top 50 for Entertainment - all earning revenue from the Google Adsense for mobile content (closed) beta program.

I would seriously love to see the Corona framework integrate adsense or admob into the SDK asap.

While I like programming in luo but we heavily rely on apps that generate revenue from advertising rather than app purchases. From our experience, the apple iads program isn’t work using at the moment.
We are only seeing around a 10% fill rate on ads and that yields very little profit on an ad supported app.

Furthermore, the admob “work-around” that is exploited in the forums here isn’t a reliable enough solution to use, and it will not work on an android device. In I also think it violates the terms of use from Admob (proceed with caution here folks) because they can eventually delete your account and the ability to use them as affiliate ad content. You are supposed to use the embedded SDK they provide for both iphone and android platforms. There are two basic types of “ads” for mobile. 1) Ads for mobile websites (script based), 2) Ads for mobile content (SDK based)

That’s my input on the matter anyway, again - I’ve love to see some integration soon for the adsense program or I’d even settle for admob (mobclix, or adwhirl optional :slight_smile:

Richard Harris, CEO
Moonbeam Development, LLC
[import]uid: 9046 topic_id: 879 reply_id: 6055[/import]

We are looking at integration with Admob for sometime in the near rev…

Carlos [import]uid: 24 topic_id: 879 reply_id: 6056[/import]

I would love that also!
But it was mentioned that someone thinks it breaks their TOS…They say it’s discouraged but discouraged isn’t as bad as breaking TOS.
I’ll even point everyone to a page so you don’t have to take my word for it.
http://developer.admob.com/wiki/IPhone#Web_Integration
look under UIWebView integration instructions down the page.
Of course I could be completely wrong lol so maybe Carlos can correct me? [import]uid: 8561 topic_id: 879 reply_id: 6079[/import]

A show of hands who are using the admob hack successfully on Android or iphone devices please?
State which platform, and for how long you’ve been using it.
Thanks -
Richard
[import]uid: 9046 topic_id: 879 reply_id: 9099[/import]

Ipod 2nd gen 3.13 and htc hero 1.6. Around 3 months [import]uid: 5712 topic_id: 879 reply_id: 9107[/import]

@MikeHart,
You are using it on an Android? Did you deviate any from the admob hack as shown here,
http://www.ludicroussoftware.com/corona/admob-ad-support-in-corona/

I’ve spent hours trying to just get a webpopup to work on Android - not even including the admob one to no avail.

Richard
[import]uid: 9046 topic_id: 879 reply_id: 9151[/import]

Yes, I do use this workaround. It takes longer to show up (is grey for a while) but that can be worked around.

Did you activate internet access in the build.settings? [import]uid: 5712 topic_id: 879 reply_id: 9159[/import]

I wasn’t aware I needed to activate Internet in the build settings, but that makes sense.
I’ll try that and report back.

Richard
[import]uid: 9046 topic_id: 879 reply_id: 9160[/import]

Yes you need to do that:

http://developer.anscamobile.com/content/network#Enabling_network_access_on_Android [import]uid: 5712 topic_id: 879 reply_id: 9161[/import]

I’ve added the appropriate code to the settings file but still no go. Here is what I have -
The ad.html file is the standard code (with my pub id and such).
I get nothing but a grey area where the ad is supposed to appear, and I’ve waited for a while. Closed, relaunched - I get nothing.
Any ideas?

local http = require(“socket.http”)
local ltn12 = require(“ltn12”)
local adSpace

local function showAd(event)
– Is the url a remote call?
if string.find(event.url, “http://”, 1, false) == 1 then
– Is it a call to the admob server?
if string.find(event.url, “c.admob.com”, 1, false) == nil then
adSpace.url = event.url
else
– an actual click on an ad, so open in Safari
system.openURL(event.url)
end
else
adSpace.url = event.url
end
end

adSpace = native.showWebPopup(0, 432, 320, 48, “ad.html”, {baseUrl = system.ResourceDirectory, urlRequest = showAd})
[import]uid: 9046 topic_id: 879 reply_id: 9164[/import]

I am able to display an ad in the AdMob area but when I click on it it will open the target page in that small area.
So it is kinda useless.

Do you know how to open the add in a popup or a full screen properly?

Thanks,
Dusan
[import]uid: 5411 topic_id: 879 reply_id: 12694[/import]

I’m still waiting on an answer from Anscamobile on this problem. [import]uid: 9046 topic_id: 879 reply_id: 12706[/import]

Hi Mike,
Did you make some modifications in the example MBD mentioned?

I use the following piece of code. The ad appears but it doesn’t work when I click/tap the ad.
Do you know where I am making a mistake?

Regarding the following discussion it doesn’t work on Android:
http://developer.anscamobile.com/forum/2010/06/04/admob-support


main.lua

local http = require(“socket.http”)
local ltn12 = require(“ltn12”)
local adSpace

local function showAd(event)
– Is the url a remote call?
if string.find(event.url, “http://”, 1, false) == 1 then
– Is it a call to the admob server?
if string.find(event.url, “c.admob.com”, 1, false) == nil then
adSpace.url = event.url
else
– an actual click on an ad, so open in Safari
system.openURL(event.url)
end
else
adSpace.url = event.url
end
end

adSpace = native.showWebPopup(0, 432, 320, 48, “ad.html”, {baseUrl = system.ResourceDirectory, urlRequest = showAd})


ad.html

br> “http://www.w3.org/TR/html4/loose.dtd”>

ad
html { -webkit-text-size-adjust: none; }

[/html]


build.settings

settings =
{
androidPermissions =
{
“android.permission.INTERNET”,
},
}

config.lua

application = {
content = {
width= 320,
height= 480
}
}

[import]uid: 5411 topic_id: 879 reply_id: 12855[/import]