Theres no actual documentation about integration. For example whem I try to run test in Player, theres error:
require 'ads'
admob = Ads.new('admob')
admob:setKey('ca-app-pub-3940256099942544')
admob:enableTesting()
admob:showAd("auto") |
main.lua:6: module 'ads' not found:
no field package.preload['ads']
no file '.\ads.lua'
no file 'C:\Program Files (x86)\Gideros12\lua\ads.lua'
no file 'C:\Program Files (x86)\Gideros12\lua\ads\init.lua'
no file 'C:\Program Files (x86)\Gideros12\ads.lua'
no file 'C:\Program Files (x86)\Gideros12\ads\init.lua'
no file '.\ads.dll'
no file 'C:\Program Files (x86)\Gideros12\ads.dll'
no file 'C:\Program Files (x86)\Gideros12\loadall.dll' |
So I only can integrate Ads through, compilation via Android Studio ?
Comments
Because only one Doc Ive found says I need Android Studio
http://docs.giderosmobile.com/interface/ads
UPD. I changed version to 7.8.0, and it did compiled for device. Still have no Idea how to ipdate plugin, because I thank I will have troubles on old versionUPD. Well this code does nothing ... or I missed something ?
durning compilation only this warning appears:
I did reach the target,
but only when I export only player and run project from GStudio, but it aint work from full apk. Any clues ?
Just an interstitial aint works for test mode, everything fine ! Great thanks !I have one starnge behavior:
UPD needed to admob:loadAd() before you get event !
Right, also found this in google http://docs.giderosmobile.com/interface/ads, I think this information should be accesible from this reference with more informative Label than "Labs", it was not obvious that in this section might be info about Ads plugin
Well, theres one more issue:
As hgy29 says showAd() calls loadAd() therefore I get loop - my false again.
Likes: Favfly
https://deluxepixel.com
https://deluxepixel.com