It looks like you're new here. If you want to get involved, click one of these buttons!
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { [view_ setFrame:CGRectMake(0, 0, 768, 114)]; } else { [view_ setFrame:CGRectMake(0, 0, 320, 50)]; }
gAdmob = Ads.new("admob") gAdmob:setKey(mobKey) gAdmob:addEventListener(Event.AD_RECEIVED, function() gAdmob:setAlignment("center", "bottom") end) gAdmob:addEventListener(Event.AD_DISPLAYED, function() gAdmob:setAlignment("center", "bottom") end) gAdmob:setAlignment("center", "bottom") gAdmob:loadAd("banner") -- preload ... gAdmob:showAd("banner")
Comments
That for example you expect banners to be in landscape, but they are shown for portrait?