Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

appodeal plugin, how to get height of banner admob?
Started by pajter Apr 29 2018 11:19 AM

2 replies to this topic

Best Answer Rob Miracle , 29 April 2018 - 11:42 AM

Ads for the most part follow advertising standards. Most banner ads are 50 pixels high (based on a 320x480 screen) on phones and like 90 pixels high on tablets (leaderboards). See:

 

https://www.monetizemore.com/blog/best-mobile-ad-sizes-2014/

 

Rob  

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

pajter

[GLOBAL: userInfoPane.html]
pajter
  • Enthusiast

  • 32 posts
  • Corona SDK

Hi, I'm displaying 

appodeal.show( "banner", { yAlign="bottom" } ) 

but right above that I need something else and I don't know how to get height of ad element?



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 23,714 posts
  • Corona Staff

  Best Answer

Ads for the most part follow advertising standards. Most banner ads are 50 pixels high (based on a 320x480 screen) on phones and like 90 pixels high on tablets (leaderboards). See:

 

https://www.monetizemore.com/blog/best-mobile-ad-sizes-2014/

 

Rob  



[TOPIC: post.html]
#3

pajter

[GLOBAL: userInfoPane.html]
pajter
  • Enthusiast

  • 32 posts
  • Corona SDK

thanks.

I found conditions like this: 

int height = 50;
if(width >= 728)
   height = 90;
else if(width >= 468)
   height = 60;

I'm yet to test those setting, but for now they look ok




[topic_controls]
[/topic_controls]