MoPub SDKでは、カスタムイベント機能を使って任意のネイティブ広告ネットワークを配信できます。 開発者にとっては,これによりMPNativeAdクラスを介して複数のネットワークから広告を提供することができます。 サードパーティ製ネイティブ広告を配信するためには、既にMoPub ネイティブ広告を組み込んでいる必要があります。
以下のネットワークについては'plug-and-play'を使ったネイティブ広告組み込みが用意されています。:
異なるネットワークを統合するには、カスタムイベントのドキュメントを参照してください。
Integrating Native Third Party Ad NetworksThe MoPub SDK can mediate any native ad network SDK through our custom events capabilities. As a developer, this allows you to serve ads from multiple networks through our NativeResponse class. In order to mediate third party native ads, you must have already integrated MoPub native ads. We offer 'plug-and-play' native ad integrations for the following networks:
To set up native integration for a different network, see our documentation on Custom Events. |
MoPub アカウント上で、Facebook Audience Network とInMobi Native Ads は両方ともカスタムネイティブネットワークとして設定する必要があります。 以下のサポートページで手順を見ることができます:
extras/com/mopub/nativeads
フォルダ内にカスタムイベントの一式があります;この中から必要なものをsrc/
ディレクトリ内のcom.mopub.nativeads
にコピーするだけです。SDK内に extras フォルダがない場合、MoPub SDK リポジトリのクローンを作成する必要があります:
git clone https://github.com/mopub/mopub-android-sdk.git
現時点では、このSDK は以下のサードパーティ製広告をサポートしています:
FacebookNative.java
)
InMobiNative.java
)
注意: あなたがnMobiを使用してInMobi ネイティブ広告を表示するのに使っているJSON キーをカスタマイズしている場合は、InMobiNative.java
内のInMobiForwardingNativeAd
クラスをあなたのキーに合致するように編集する必要があります。
プロジェクトにサードパーティ製SDKを組み込みます。組み込むには、通常 libs/
ディレクトリに .jar ファイルをコピーしてビルドパスへのエントリに追加します。
広告ネットワークの開発者ページへ行けば、具体的な手順を見ることができます。以下が関連する JARファイルです:
AudienceNetwork.jar
)
InMobi-X.X.X.jar
)
コードを変更する必要は一切ありません! MoPub アカウント上で対応する広告ネットワークキャンペーンを設定し、適切な広告ユニットを対象にしてください。 他の質問については、 サポートセンターを参照してください。
Native Third-Party Integration Guide1. Setup a Third-Party Network in your MoPub AccountBoth Facebook Audience Network and InMobi Native Ads should be set up as custom native networks in your MoPub account. Instructions can be found on our Support Site: 2. Add the custom event files to your projectThe
Currently, our SDK supports the following third-party ad networks:
Note: If you are using InMobi and have customized the JSON keys you are using to serve InMobi native ads, you will need to modify the 3. Link the third-party SDKsIncorporate the third-party SDKs into your project. This typically involves copying a .jar file to your
4. Display native ads as usualNo changes are required to any of the other code! Be sure to setup corresponding network campaigns and target the proper ad units in your MoPub account. For additional questions, take a look at our Support Center. |