LilMoke
LilMoke

Reputation: 3444

Question about iAd being displayed on iPad & iPhone

In my App, I display and iAd but I was hoping for clarification on a few things:

1) If I display an Ad, it does not look like it will 'automagically' go away, so am I correct that it is my responsibility to dismiss it?

2) I thought I read somewhere that it must stay for a min. 30 seconds. Is that correct?

3) Is it wrong to leave it there forever and let the user dismiss it?

Thanks for the help.

Upvotes: 1

Views: 510

Answers (1)

W Dyson
W Dyson

Reputation: 4634

1) If I display an Ad, it does not look like it will 'automagically' go away, so am I correct that it is my responsibility to dismiss it?

Are you talking about a banner or the full screen ad? The banner ad is either updated with a new ad after 30 seconds, or if there is no ad, then the banner view is to be hidden. You are never supposed to show the banner view if there is no ad to be displayed. To learn how to hide the banner view, code samples are in the developer docs. There have also been many topics about this on this site.

You are not supposed to dismiss an iAd. If the full screen ad is being shown, the user dismisses it. There is a delegate callback to handle this.

2) I thought I read somewhere that it must stay for a min. 30 seconds. Is that correct?

I've never heard this, but read the above. It will stay for 30 seconds on it's own, no need to dismiss it. If the user is changing views to a view that has no iAd, then you don't need to do anything. But, there is a way to have the banner show on each view. To do that, see the 'iAdSuite' project at developer.apple.com

3) Is it wrong to leave it there forever and let the user dismiss it?

This is exactly what you should be doing (while there is an ad to be displayed). I really encourage you to read the iAd Programming Guide found here.

Hope this helps.

Upvotes: 1

Related Questions