News feed app to demonstrate native ad integration with Facebook Audience Network.
-
Follow this guide to register an account for Audience Network and setup the ad placements.
-
Get the API key from News API here.
-
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;
}
- Retrofit - HTTP client
- Piccaso - Image download and caching
- FinestWebView - Customizable webview
- News API - Source of content
This project is licensed under the MIT License.