Android – Facebook audience network 不出現

在APP中加入了 Facebook 的廣告系統
結果卻怎樣都顯示不出廣告

顯示的錯誤訊息如下:

nError:code_1203, errorMsg_No fill.

We are not able to serve ads to this person. Please refer to https://developers.facebook.com/docs/audience-network/faq#a12.

If you are integrating Audience Network for the first time, you can use test ads https://developers.facebook.com/docs/audience-network/testing.

至於產生 Facebook 廣告的程式碼如下:

adViewFb = new com.facebook.ads.AdView(activity, Const.FB_AD_PLACEMENT_ID_TEAM_RECORD, com.facebook.ads.AdSize.BANNER_HEIGHT_50);
llAd.addView(adViewFb);
adViewFb.setTag("adViewFb");
adViewFb.setAdListener(new AdListener() {

@Override
public void onError(Ad ad, AdError error) {
// Ad failed to load.
// Add code to hide the ad's view
Log.d("neov", "onError:code_" + error.getErrorCode() + ", errorMsg_" + error.getErrorMessage());
}

@Override
public void onAdLoaded(Ad ad) {
// Ad was loaded
// Add code to show the ad's view
Log.d("neov", "onAdLoaded:" + ad);
}

@Override
public void onAdClicked(Ad ad) {
// Use this function to detect when an ad was clicked.
}

});

adViewFb.loadAd();

 

經過查詢,原來就只是在該裝置上沒有廣告可以提供

必須要該裝置有安裝 Facebook App ,並登入 Facebook App 後

在其他APP的 Facebook audience network 廣告系統才會有廣告可以提供 

When testing live ads, we see the error “1001 no fill”. What does this mean?
This means we are not able to serve ads to this person. This could occur because:

The person testing has not logged into the native Facebook app on their mobile device
The person testing has enabled “Limit Ad Tracking” (iOS only) or has selected “Opt out of interest-based ads” (Android only) in their device settings.
We don’t have ad inventory to show for that person

 

結果只要登入facebook一次後就好了…..

About: Kaito


發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料