Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
<!-- your_activity_layout.xml -->

...생략...

<!-- FeedFragment 추가 -->
<fragment
    android:id="@+id/feed_fragment"
    android:name="com.buzzvil.buzzad.benefit.presentation.feed.FeedFragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

...생략...
class YourActivity extends Actvity {
  private FeedHandler feedHandler;

  @Override
  public void onCreate() {
    super.onCreate();
    ...생략...
    
    // 광고를 새로 받기 위해 필요한 부분입니다.
    feedHandler = new FeedHandler(context, "YOUR_FEED_UNIT_ID");
    
    // FeedFragment 초기화
    final FeedFragment feedFragment = (FeedFragment) getSupportFragmentManager().findFragmentById(R.id.feed_fragment);
    if (feedFragment != null) {
      feedFragment.init(context, "YOUR_FEED_UNIT_ID");
    }
  }

  ...생략...
}

FeedFragment의 UI도 Feed 디자인 커스터마이징을 참고하여 변경할 수 있습니다. (단, FeedFragment는 툴바 영역이 없습니다.)

...

  • AdfitNative ADN (연동 심사 불필요)

ADN 광고를 연동하기 위해서 ADN 연동을 참고하시기 바랍니다.