2013-10-28 3 views
1

내 앱에서 추가 기능을 보여주고 있지만, 추가 기능은 iPhone5 device에 게재되지 않고 simulator에만 표시됩니다.iPhone5에 광고가 표시되지 않습니다.

나는 다음과 같은 코드를 사용하고 -

-(void)showAdds 
{ 
    { 

    if ((UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)) 
    { 

     bannerView = [[GADBannerView alloc] 
         initWithFrame:CGRectMake(128.0, 
               670 , 
               GAD_SIZE_728x90.width, 
               GAD_SIZE_728x90.height)]; 
     bannerView.adUnitID = @"8c9b7de0880d478b"; 
    } 
    else { 

     if ([[UIScreen mainScreen] bounds].size.height == 568) 
     { 
      bannerView = [[GADBannerView alloc] 
          initWithFrame:CGRectMake(120, 
                [[UIScreen mainScreen] bounds].size.height - GAD_SIZE_320x50.height , 
                GAD_SIZE_320x50.width, 
                GAD_SIZE_320x50.height)]; 
      bannerView.adUnitID = @"a151d69e8127bd7"; 
      NSLog(@"ads"); 
     } 
     else 
     { 
      bannerView = [[GADBannerView alloc] 
          initWithFrame:CGRectMake(80, 
                [[UIScreen mainScreen] bounds].size.width - GAD_SIZE_320x50.height , 
                GAD_SIZE_320x50.width, 
                GAD_SIZE_320x50.height)]; 
      bannerView.adUnitID = @"a151d69e8127bd7"; 
      NSLog(@"ads"); 

     } 

    } 

을 추가합니다 시뮬레이터하지만 아이폰 장치에 표시된다. 도와주세요. 난 당신이 테스트 광고를 사용할 생각

답변