Mark
Mark

Reputation: 906

Facebook Native Ads Manager Error

I'm using facebook audience network NativeAdsManager from v4.1.0 to load a batch of ads. It did work in one device, but failed in another. When calling loadAds(), it yields AdError saying No Fill. Does anyone know what it means? I've searched for documentations but found nothing in that particular matter.

Below is my init code.

NativeAdsManager adsManager = new NativeAdsManager(this, "PLACEMENT_ID", 10);
adsManager.setListener(this);
adsManager.loadAds();

Upvotes: 1

Views: 1727

Answers (2)

vmtrue
vmtrue

Reputation: 1774

I had the same problem. I fixed it by reducing the number of ads which should be loaded. For example, 5 ads work for me.

NativeAdsManager adsManager = new NativeAdsManager(this, "PLACEMENT_ID", 5);

Upvotes: 0

Song Qian
Song Qian

Reputation: 611

Audience network uses people-based targeting so server ads. It may not be able to fill requests from all devices. To ensure you always get ads on a certain device, check the logcat output for a line that looks like:

AdSettings.addTestDevice("HASHED ID");

Follow the instruction there and add that device as a test device, then you will always get ads for requests from that device.

Upvotes: 3

Related Questions