Implementing/Testing iAds?

Hi All,

I wanted to experiment with setting up an iAds test case so that I can better understand how to implement them and consider how I might use them for my next project.

Does anyone have any tips on implementing iAds?

I’m assuming that I set up a profile that is iAd enabled and that I can then build for a device to test on? 

The ads.show() api states:

“Thus, it’s wise to detect the device type and choose the proper ad dimensions.”

http://docs.coronalabs.com/api/library/ads/show.html

Where do I actually specify these detected dimensions for the add it’s self? add.show() seems to only take an x and y location parameter so I’m not sure how one specifies size for the add.

It looks like iAds could be straightforward but I wanted to see if anyone had any tips or advice regarding the process.

Thanks :slight_smile:

Hey EHO,

Corona takes care of the dimensions, so all you have to call is the ads.show() with either a “banner” or “interstitial”.

Cheers.

Hi Big Z,

I appreciate the input. I guess that’s why all you have to do for the ads.show() function is pass the type and x and y corner location?

I was thinking a person set up iAds in your App ID (the way that other features like In App Purchase are) but it looks like you actually enable them through iTunes Connect. I’ve found some information at developer.apple.com/iad/resources/ that states that you can test your implementation of iAd by running your app directly on an iOS device. So I guess I need to set up a new app in iTunes Connect, enable iAd and then test on one of my test devices? I’m kind of talking myself through the process here as I figure it out :slight_smile:

Thanks for your input!

Hi EHO,

Just take note if you are displaying banner at the bottom you may have to detect device either iPhone4/5.

Then put your ads y position  accordingly.

Good Luck!

burhan

Ahhhh… yes! Thank you Burhan, now I understand why there was the comment in the documentation regarding device detection. A banner at the top is always at the top but the bottom would vary depending on the device. Thank you :slight_smile:

Hey EHO,

Corona takes care of the dimensions, so all you have to call is the ads.show() with either a “banner” or “interstitial”.

Cheers.

Hi Big Z,

I appreciate the input. I guess that’s why all you have to do for the ads.show() function is pass the type and x and y corner location?

I was thinking a person set up iAds in your App ID (the way that other features like In App Purchase are) but it looks like you actually enable them through iTunes Connect. I’ve found some information at developer.apple.com/iad/resources/ that states that you can test your implementation of iAd by running your app directly on an iOS device. So I guess I need to set up a new app in iTunes Connect, enable iAd and then test on one of my test devices? I’m kind of talking myself through the process here as I figure it out :slight_smile:

Thanks for your input!

Hi EHO,

Just take note if you are displaying banner at the bottom you may have to detect device either iPhone4/5.

Then put your ads y position  accordingly.

Good Luck!

burhan

Ahhhh… yes! Thank you Burhan, now I understand why there was the comment in the documentation regarding device detection. A banner at the top is always at the top but the bottom would vary depending on the device. Thank you :slight_smile: