Facebook/ビジネスマネージャ/アプリ広告/AndroidNative
提供: 初心者エンジニアの簡易メモ
native広告のandroid組込
https://developers.facebook.com/docs/audience-network/android-native
準備
app/build.gradle追加
dependencies { compile 'com.android.support:recyclerview-v7:25.3.1' // Required Dependency by Audience Network SDK compile 'com.facebook.android:audience-network-sdk:5.+' }
https://developers.facebook.com/docs/audience-network/android
サンプル
MyApplication.java
public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); // Initialize the Audience Network SDK AudienceNetworkAds.initialize(this); } }