Hi All,
My admob banner ads showing properly on iPhone devices but it is showing very small on Mini iPad.
How can i change ad dimensions on Ipad
Thanks in advice…
Hi All,
My admob banner ads showing properly on iPhone devices but it is showing very small on Mini iPad.
How can i change ad dimensions on Ipad
Thanks in advice…
You don’t. When you ask for a banner, Google gives you one based on the size device it’s running on. What does your config.lua look like?
Hi Rob,
My config.lua is below:
[lua]
application =
{
content =
{
graphicsCompatibility = 1, --this turns on V1 Compatibility mode
width = 320,
height = 480,
scale = “zoomStretch” --zoom to fill screen, possibly cropping edges
},
}
iphone =
{
plist =
{
UIAppFonts =
{
“Chalkboard.ttc”,
“AvenirLTStd-Black.otf”,
“SourceCodePro-Black.ttf”
},
UIApplicationExitsOnSuspend = true
},
}
[/lua]
what should I do?
Thanks in advice.
edit: I trıed 768 x 1024, 640 x 960 , ZoomEven, ZoomStrech, letterbox etc… any changes. Banner showing very small on iPad
This is unrelated, but this:
iphone = { plist = { UIAppFonts = { "Chalkboard.ttc", "AvenirLTStd-Black.otf", "SourceCodePro-Black.ttf" }, UIApplicationExitsOnSuspend = true }, }
Is stuff that should be in build.settings, not config.lua. And Apple will likely reject your app for exiting on suspend.
Can you post some screen shots? Maybe some of the AdMob users will have some ideas.
Thank you Rob.
I guess i found my mistake :wacko:
Small banner is not an admob banner, it is an inmobi banner :wacko:
My problem is solved but i have another one.
In my game, i am showing admob interstitial ads on Menu Scene. and i want to show admob banner ads on Game Scene.
Coding on Game.lua is below:
ads.hide()
ads.init( “admob”, “ca-app-pub-xxxxxxx/xxxxxxxx”, adListener )
ads.show( “banner”, { x=0, y=450 } )
But banner doesn’t show. ( if i don’t show interstitial ads on Menu Scene it is showing)
How can i show two differents ads on the different pages from admob? is it possible? Can you help me about it?
Thanks in advance.
Gurcan
If you look at the docs for the adMob show function:
http://docs.coronalabs.com/daily/plugin/ads-admob/show.html
you will see there is an optional parameter to show called appId. For your banner calls, you use your banner appId. For interstitial’s, you use your interestitial appID.
Rob
Rob,
It is Working now
Thank you so so much.
Gurcan
You don’t. When you ask for a banner, Google gives you one based on the size device it’s running on. What does your config.lua look like?
Hi Rob,
My config.lua is below:
[lua]
application =
{
content =
{
graphicsCompatibility = 1, --this turns on V1 Compatibility mode
width = 320,
height = 480,
scale = “zoomStretch” --zoom to fill screen, possibly cropping edges
},
}
iphone =
{
plist =
{
UIAppFonts =
{
“Chalkboard.ttc”,
“AvenirLTStd-Black.otf”,
“SourceCodePro-Black.ttf”
},
UIApplicationExitsOnSuspend = true
},
}
[/lua]
what should I do?
Thanks in advice.
edit: I trıed 768 x 1024, 640 x 960 , ZoomEven, ZoomStrech, letterbox etc… any changes. Banner showing very small on iPad
This is unrelated, but this:
iphone = { plist = { UIAppFonts = { "Chalkboard.ttc", "AvenirLTStd-Black.otf", "SourceCodePro-Black.ttf" }, UIApplicationExitsOnSuspend = true }, }
Is stuff that should be in build.settings, not config.lua. And Apple will likely reject your app for exiting on suspend.
Can you post some screen shots? Maybe some of the AdMob users will have some ideas.
Thank you Rob.
I guess i found my mistake :wacko:
Small banner is not an admob banner, it is an inmobi banner :wacko:
My problem is solved but i have another one.
In my game, i am showing admob interstitial ads on Menu Scene. and i want to show admob banner ads on Game Scene.
Coding on Game.lua is below:
ads.hide()
ads.init( “admob”, “ca-app-pub-xxxxxxx/xxxxxxxx”, adListener )
ads.show( “banner”, { x=0, y=450 } )
But banner doesn’t show. ( if i don’t show interstitial ads on Menu Scene it is showing)
How can i show two differents ads on the different pages from admob? is it possible? Can you help me about it?
Thanks in advance.
Gurcan
If you look at the docs for the adMob show function:
http://docs.coronalabs.com/daily/plugin/ads-admob/show.html
you will see there is an optional parameter to show called appId. For your banner calls, you use your banner appId. For interstitial’s, you use your interestitial appID.
Rob
Rob,
It is Working now
Thank you so so much.
Gurcan