iAds

Wow, that sounds exciting. Thanks, Walter. Maybe I can add some revenue generating ads to my games now.

Cheers,
Naomi [import]uid: 67217 topic_id: 34226 reply_id: 136092[/import]

:slight_smile: [import]uid: 26 topic_id: 34226 reply_id: 136101[/import]

In the iADs sample, when on the iPad, when you click on the banner the ad rotates to landscape and when you shut the ad the app is rotated wrongly, any work around for this? [import]uid: 8697 topic_id: 34226 reply_id: 136103[/import]

Great! I got the Banner ad working easily, but the iBanner just shows the message “Displaying interstitial…” but no full page ad is shown. [import]uid: 29384 topic_id: 34226 reply_id: 136108[/import]

Hi cublah,

I’m looking into it. I’ll have an answer soon.

@ec2: that happens from time to time even on the Apple sample code. Although the iAds engine returns that the interstitial was loaded, it actually does not show up. I’m working on a small workaround for that.

Alex [import]uid: 196533 topic_id: 34226 reply_id: 136109[/import]

oh my god!!!
FINALLY!!!
We have waited for long time!!!
I love u corona!! [import]uid: 25057 topic_id: 34226 reply_id: 136114[/import]

@alexf, just for info, I do get the interstitials most of the time on an iPad1 but I never see them on an iPhone4S. [import]uid: 29384 topic_id: 34226 reply_id: 136117[/import]

@ec2 Interstitials are iPad only. [import]uid: 36054 topic_id: 34226 reply_id: 136120[/import]

Confirming Puzzle Runner, as stated in the API docs the interstitial Ads are iPad only.

Alex. [import]uid: 196533 topic_id: 34226 reply_id: 136126[/import]

how to detect that user is in country that has iAD ? [import]uid: 111283 topic_id: 34226 reply_id: 136127[/import]

Hi Bladko,

Corona offers no direct way to determine that (nor does Apple, except for the clear information that iAd advertisements are currently being served to apps on the U.S., U.K., Germany, Italy, Spain, France, and Japan App Stores).

There are ways to determine in which country a user is (such as IP2C), and if you query their webservice you’ll get the country based on the IP address of the user, but that’s quite error prone in my opinion (upstream proxies, roaming, etc).

As you probably saw in the test application if you get an error (so also for users that are in countries that do not receive iAds), the ad view is automatically hidden, and at that point you can replace it with some other ad provider or act further depending on your project’s logic.

Hope this helps,
Alex. [import]uid: 196533 topic_id: 34226 reply_id: 136129[/import]

Awesome!!!

CoronaLabs Team Rocks!

Ale [import]uid: 30847 topic_id: 34226 reply_id: 136134[/import]

what about system.getPreference( category, name )?

what about error in iad listener ? can we use it to display other ad ?

i have US apple ID but do not residence in US, which country would be used for this ?

Tom [import]uid: 111283 topic_id: 34226 reply_id: 136137[/import]

Won’t help either. I can set my country to Japan, and the complete locale to Japanese.

Alex. [import]uid: 196533 topic_id: 34226 reply_id: 136159[/import]

yes but for majority of users this would be enough ?

if country is OK then
—run iAD
—if iAD cannot be run then
-----------try innetractive
else run revmob

[import]uid: 111283 topic_id: 34226 reply_id: 136160[/import]

Yes, you can assume that most people will set their country correctly. In which case you run iAd, if their country is not in the list, you move further to other providers.

You can always try to trigger the display of an iAd and if it returns an error, it will return that error to your event listener, so you know that there’s no inventory available, which can only be if no ad can be displayed (either because of the user being in the wrong country, or because there’s no ad to fill at that specific moment) and then you move further to other providers.

Alex. [import]uid: 196533 topic_id: 34226 reply_id: 136162[/import]

btw can we run both inneractive and iAds at the same time during init ?

ads.init( “iads”, bundleID, adListenerIAd )
ads.init( “inneractive”, interactive[“iPhone”], adListenerInner )

or just before ad show ? This function is CPU consuming ?

Tom [import]uid: 111283 topic_id: 34226 reply_id: 136163[/import]

I can confirm the iad being clicked on iPad switches mode then when closed screws up the return to portrait…
Anyone figure out a way around this is or is it a backend issue? [import]uid: 18783 topic_id: 34226 reply_id: 136587[/import]

@mattchapman:

It does the same in the official Apple sample. Working on a workaround for that.

@Tom (bladko): At the moment, go with initing one by one, not both. We’re working on multiple init and switch between ad providers.

Alex [import]uid: 196533 topic_id: 34226 reply_id: 136613[/import]

I can confirm the iad being clicked on iPad switches mode then when closed screws up the return to portrait…
Anyone figure out a way around this is or is it a backend issue? [import]uid: 18783 topic_id: 34226 reply_id: 136587[/import]