Skip to content

Android app to demonstrate usage of Facebook Audience Network by using News API

License

Notifications You must be signed in to change notification settings

silverchen/fb-audience-network-android-demo-app

Repository files navigation

Android Demo App for Facebook Audience Network

News feed app to demonstrate native ad integration with Facebook Audience Network.

Getting started

  1. Follow this guide to register an account for Audience Network and setup the ad placements.

  2. Get the API key from News API here.

  3. Replace the ad placements ids and API key in fb-audience-network-android-demo-app\app\src\main\java\com\silver\mynews\api\Constants.java.

package com.silver.mynews.api;

public interface Constants {
    String BASE_URL = "https://newsapi.org/v2/";
    String API_KEY = "YOUR_NEWS_API_API_KEY";
    int DEFAULT_PAGE_SIZE = 20;
    String NATIVE_AD_PLACEMENT_ID = "YOUR_NATIVE_AD_PLACEMENT_ID";
    String INTERSTITIAL_AD_PLACEMENT_ID = "YOUR_INTERSTITIAL_AD_PLACEMENT_ID";
    String BANNER_AD_PLACEMENT_ID = "YOUR_BANNER_AD_PLACEMENT_ID";
    int NUM_ADS = 5;
}

Built With

License

This project is licensed under the MIT License.

More examples:

Sample apps from Facebook

About

Android app to demonstrate usage of Facebook Audience Network by using News API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages