How do I set up an iAd that works for both iOS 5 and 6? and if possible compatible with all iOS

DanielMed

I tried adding ads to my app but none show up I don't know why, I think its because the ad code I used is not compatible with the iOS I'm testing it on. Here is my code:

@implementation Class_ScoreViewController
{
    ADBannerView *_bannerView;
}
- (void)viewDidLoad
{
    [super viewDidLoad];
    [self.view addSubview:_bannerView];
}

i do have the <AdBannerViewDelegate>

or if I'm doing it wrong how do I do it correctly?

Thanks for the help!

jomafer

It seems that there is a general problem. Many people are reporting that their ads are not showing.

Implement these method from AdBannerViewDelegate protocol:

- (void)bannerViewDidLoadAd:(ADBannerView *)banner;
- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error;

And check if (NSError *)error is returning

Ad inventory unavailable" UserInfo=0x49a4f0 {ADInternalErrorCode=3, NSLocalizedFailureReason=Ad inventory unavailable

It so, try again in a few hours!

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How can I use iOS6 fonts in iOS5

분류에서Dev

How do I set up a server for SSH?

분류에서Dev

How do I set up an email server?

분류에서Dev

Xamarin iOS 앱의 iAd

분류에서Dev

How to set up development environment for a particular version of ios

분류에서Dev

How do I make my iOS application resize correctly to all iphone devices?

분류에서Dev

iOS How do I compare if Objects are Equal?

분류에서Dev

How do I create an Open With Dialog in iOS?

분류에서Dev

How do I set up a bash alias for a common working folder?

분류에서Dev

How to make a boolean both static and __block? in iOS?

분류에서Dev

XCode 5 및 iOS 6 및 7

분류에서Dev

vifm: how do I set the viewcolumn option in my vifmrc so that it applies to both panes?

분류에서Dev

How do I retrieve the coordinates used to create an iOS MapKit MKPolygonView?

분류에서Dev

How do I use Xamarin iOS PickView to get the value?

분류에서Dev

Facebook iOS SDK - How can I make a Page Like Button works?

분류에서Dev

Is it possible that the tableView:viewForHeaderInSection method is ONLY called in iOS6?

분류에서Dev

How do I find out long time a service has been up and running for in CentOS 6?

분류에서Dev

IOS: Do i need to retain key in dictionary ios?

분류에서Dev

How do I set up live audio streams to a DLNA compliant device?

분류에서Dev

How do I set up Emacs on Linux to read/send mail from Gmail?

분류에서Dev

How do I set up a second display via DVI/viewport with a Lenovo T420S?

분류에서Dev

How do I set up Launchy's Runner plugin to launch Everything search

분류에서Dev

How do I set up a multi-project solution in C++?

분류에서Dev

How do I set up a local SOCKS proxy that tunnels traffic through SSH?

분류에서Dev

How do I set up SSH to transfer files from my local machine to a shared server with rsync?

분류에서Dev

Flycheck and Clutter - how can I set it up?

분류에서Dev

Can someone explain to me how a closure works? (Swift iOS)

분류에서Dev

Localization works in iOS 7 but not in iOS 8

분류에서Dev

How to upload iOS 6 app which can run on iOS 7 with iOS legacy Look

Related 관련 기사

  1. 1

    How can I use iOS6 fonts in iOS5

  2. 2

    How do I set up a server for SSH?

  3. 3

    How do I set up an email server?

  4. 4

    Xamarin iOS 앱의 iAd

  5. 5

    How to set up development environment for a particular version of ios

  6. 6

    How do I make my iOS application resize correctly to all iphone devices?

  7. 7

    iOS How do I compare if Objects are Equal?

  8. 8

    How do I create an Open With Dialog in iOS?

  9. 9

    How do I set up a bash alias for a common working folder?

  10. 10

    How to make a boolean both static and __block? in iOS?

  11. 11

    XCode 5 및 iOS 6 및 7

  12. 12

    vifm: how do I set the viewcolumn option in my vifmrc so that it applies to both panes?

  13. 13

    How do I retrieve the coordinates used to create an iOS MapKit MKPolygonView?

  14. 14

    How do I use Xamarin iOS PickView to get the value?

  15. 15

    Facebook iOS SDK - How can I make a Page Like Button works?

  16. 16

    Is it possible that the tableView:viewForHeaderInSection method is ONLY called in iOS6?

  17. 17

    How do I find out long time a service has been up and running for in CentOS 6?

  18. 18

    IOS: Do i need to retain key in dictionary ios?

  19. 19

    How do I set up live audio streams to a DLNA compliant device?

  20. 20

    How do I set up Emacs on Linux to read/send mail from Gmail?

  21. 21

    How do I set up a second display via DVI/viewport with a Lenovo T420S?

  22. 22

    How do I set up Launchy's Runner plugin to launch Everything search

  23. 23

    How do I set up a multi-project solution in C++?

  24. 24

    How do I set up a local SOCKS proxy that tunnels traffic through SSH?

  25. 25

    How do I set up SSH to transfer files from my local machine to a shared server with rsync?

  26. 26

    Flycheck and Clutter - how can I set it up?

  27. 27

    Can someone explain to me how a closure works? (Swift iOS)

  28. 28

    Localization works in iOS 7 but not in iOS 8

  29. 29

    How to upload iOS 6 app which can run on iOS 7 with iOS legacy Look

뜨겁다태그

보관