Hi,
I've searched the forum and I found that: admob:setAlignment("center", "bottom") should place the Ad on the bottom on the screen. I can't get it work. My gamescreen is in Landscape mode and I'll use: admob:showAd("smart_banner"). Even modifying the AddsClass.mm will not solve it.
Any ideas? Thanks,
Marc
Comments
http://giderosmobile.com/forum/discussion/comment/38437#Comment_38437
try calling setAlignment inside AD_RECEIVED or AD_DISPLAYED events
Regards,
Marc
Do you probably have an extended example how to use the AdManager class?
Regards and thanks again,
Marc
Or I misunderstand your purpose?
I understand, but in that case you will need to follow the time consuming Google Admob installation procedure (CocoaPods, etc.) again. Normally you can modify Lua code in XCode (assets folder) and complile it in XCode to your device. If I add your AdManager to the XCode project, I will get errors.
Regards,
Marc
When exporting, tick export assets only, and it will only export Gideros project files without touching xcode project at all
I am just currious, what does ar2rsawseen mean?
In my case Dikkesnoek is a fat fish (Dikke = fat, Snoek
is the type of fish in Dutch language). There was a guy
during my study who called me Dikkesnoek. Even on
the PS4, my alias is Dikkesnoek. However, I am not
really that fat.
Marc
it is just how my firtsname and lastname is pronounced:
Arturs Sosins
Likes: dreiko65
I tried to use your AdManager class. I can't get it work. Probably because
I only need Admob. I tried to remove some code. I am trying to get a
small_banner on the bottom of the (landscape) screen. This will also not
work because it will always be placed on the top:
-- Require plugin.
require "ads"
-- Initialize Google Admob.
local admob = Ads.new("admob")
admob:setKey("ca-app-pub-xxxxxxxxxxxxxxxxxxxxxx")
-- Show admob.
admob:showAd("smart_banner")
-- Set position.
admob:setAlignment("center", "bottom")
Thanks,
Marc
I've added this:
function onAdReceived(e)
admob:setAlignment("center", "bottom")
end
admob:addEventListener(Event.AD_RECEIVED, onAdReceived)
Now you will see briefly a banner on the top of the screen and
then the view will become white. Do I need to change something
in the Objective-C code?
Have a nice weekend,
Marc