iOS ads sizes

The iOS documentation shows this number in points but in Corona we are using a different unit (and the size will be a different number depending on how you set your config.lua content.width/height).

How do I know what the size of an iAd will be? 

Hi @chillfok,

Are you looking to gather the height of the ad in the Corona app after it has been shown? If so, use this API:

https://docs.coronalabs.com/plugin/ads-iads/height.html

Take care,

Brent

P.S. - pardon the broken links in the overview description… I’ll fix those shortly. They should link to here:

https://docs.coronalabs.com/plugin/ads-iads/show.html

Brent, thanks for the prompt reply. I did see that method in the docs but my issue with it is that it comes “after the fact” so to speak; once you can use it you’ve already shown the ad. 

I’m more interested in knowing the possible ad sizes beforehand so that I can plan my UI accordingly. 

iAds should be a fixed height based on the device it’s being delivered to.  You should be able to get the pixels by multiplying the known height of the ad in points times the scale factor of the content area.

For instance on a 320 point system, a banner should be 50 points high.  On a 640 px device (scaling factor 2.0) then the banner is really 100 pixels high.

Rob

Hi @chillfok,

Are you looking to gather the height of the ad in the Corona app after it has been shown? If so, use this API:

https://docs.coronalabs.com/plugin/ads-iads/height.html

Take care,

Brent

P.S. - pardon the broken links in the overview description… I’ll fix those shortly. They should link to here:

https://docs.coronalabs.com/plugin/ads-iads/show.html

Brent, thanks for the prompt reply. I did see that method in the docs but my issue with it is that it comes “after the fact” so to speak; once you can use it you’ve already shown the ad. 

I’m more interested in knowing the possible ad sizes beforehand so that I can plan my UI accordingly. 

iAds should be a fixed height based on the device it’s being delivered to.  You should be able to get the pixels by multiplying the known height of the ad in points times the scale factor of the content area.

For instance on a 320 point system, a banner should be 50 points high.  On a 640 px device (scaling factor 2.0) then the banner is really 100 pixels high.

Rob