Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
142 views
in Technique[技术] by (71.8m points)

ios - FBAudience network only showing test ad (Demo ad)

I have integrated FBAudienceNetwork in iOS for native ad. It works fine for test ad. When I addTestDevice with deviceHash it shows demo ad.

But when I don't add the device and clearTestDevices, it does not show any add, it gives an error: Ad can't be loaded: No-fill.

Can you please let me know what I have to do to show real ads?

Here is the code:

private func addTestDevicesForFacebookAds(){
        FBAdSettings.isTestMode()
        let key = FBAdSettings.testDeviceHash()
        FBAdSettings.setLogLevel(FBAdLogLevel.log)
        FBAdSettings.addTestDevice(key)
        FBAdSettings.testAdType = .vid_HD_16_9_15s_Link
    }

    private func clearTestDevicesForFacebookAds() {
        
        FBAdSettings.clearTestDevices()
        
    }
question from:https://stackoverflow.com/questions/65888917/fbaudience-network-only-showing-test-ad-demo-ad

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...