2010-11-29 13 views
1

こんにちは 私はiadの機能を実装するシンプルなアプリで働いていますが、私はiphoneの機能をiadの機能を有効にする方法がわかりません plzのスニペットからステップを与えてくださいネットワークとその機能。 ありがとうございましたiphoneの機能を有効にする方法

答えて

0

iAD Frameworkをインポートして、iTunes Connect上でアプリ用に有効にする必要があります。その後

あなたがにiAdネットワークに参加するのiOSデベロッパプログラムに登録する必要があり、次の...

iAdBanner = [[ADBannerView alloc] initWithFrame:CGRectMake(0.0, 245.0, 768.0, 66.0)]; 


     if(&ADBannerContentSizeIdentifierPortrait != nil) 
      portrait = ADBannerContentSizeIdentifierPortrait; 
     else 
      portrait = ADBannerContentSizeIdentifier320x50; 

     if(&ADBannerContentSizeIdentifierLandscape != nil) 
      landscape = ADBannerContentSizeIdentifierLandscape; 
     else 
      landscape = ADBannerContentSizeIdentifier480x32; 

     iAdBanner.requiredContentSizeIdentifiers = [NSSet setWithObjects:landscape, nil]; 

     iAdBanner.autoresizesSubviews = YES; 
     iAdBanner.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleBottomMargin; 
     iAdBanner.delegate = self; 
     [self.view addSubview:iAdBanner]; 

     iAdBanner.hidden = NO; 
+0

ハイテク風下IHAVEをしかし、問題は私が管理アプリケーションのセクションに行くことができ、接続iTunesにiTuneのプロセスから – user523841

+0

ログインをIAD機能をアクティブにするステップを必要とすることです。このアプリでは、iAdを管理してそこで有効にすることができます。有効にするには更新が保留中である必要があります。 –

+0

それから私のアプリは自動的に追加を表示します – user523841

1

を試してみてください。メンバーは、次の操作を行う必要があります。すべてのコードを実装

* Agree to the Developer Advertising Services Agreement in iTunes Connect. 
* Set up your banking and tax information if you don’t have a paid app on the App Store. 
* Enable your app for iAd ads in the Manage Your Applications module within iTunes Connect. 
* Set up your iAd preferences in the iAd Network module within iTunes Connect. 
関連する問題