Hi
I am trying to use the admob webhack again:(
local adSpace
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
print("loading an ad")
return true
end
end
adSpace = native.showWebPopup(0, 0, 320, 48, "ad.html", {baseUrl = system.ResourceDirectory, hasBackground = false, urlRequest = showAd})
It displays the ad in the small webPopup , but when you click the ad it opens in the small webpopup not the full screen browser, is this a bug?
[import]uid: 11459 topic_id: 6699 reply_id: 306699[/import]