其他分享
首页 > 其他分享> > android – Mopub:测试Facebook Audience Network Native Ad集成

android – Mopub:测试Facebook Audience Network Native Ad集成

作者:互联网

我不确定如何测试Facebook Audience Network与Mopub的集成.在Facebook Audience Network页面上进行测试时,它没有显示有关测试与原生广告集成的任何信息:

https://developers.facebook.com/docs/audience-network/testing

在mopub文档中,我已完成与第三方广告网络集成的所有步骤:

https://github.com/mopub/mopub-android-sdk/wiki/Integrating-Native-Third-Party-Ad-Networks

我还完成了本教程的这一部分,通过创建一个库存项目来自行测试您的广告素材,该库存项目是原生广告和为原生广告提供服务的测试订单.这适用于我的应用,但这是我自己创建的广告,它不是Facebook广告:

https://dev.twitter.com/mopub-demand/overview/self-testing-your-creatives

库存屏幕:
它显示了广告来源细分,但不包括Facebook Audience Network.

enter image description here

订购屏幕

屏幕显示我自己创建的订单,该订单适用于我的应用程序.我可以在我的应用中看到自己的广告:

enter image description here

网络屏幕

这是显示我已添加FacebookAudienceNetwork的网络屏幕:

enter image description here

这是FacebookAudienceNetwork的配置:

enter image description here

Facebook placement_id在下面的图片中变暗,但它与Facebook上的匹配.

Facebook网站:

enter image description here

我怎么知道Facebook Audience Network已成功与MoPub集成用于原生广告 – 有没有办法对此进行测试?

解决方法:

我终于通过MoPub的支持人员的回复解决了这个问题.以下是我发送的电子邮件.希望这也可以帮助其他人进行集成:

Thanks for reaching out! When you tested your integration were you
able to see the MoPub test creative for your native ad unit? If so,
that means your initial MoPub integration is correct.

Next, you’ll want to target FAN against your ad units. To do this
please follow these steps:

  1. Go to the “Segments” tab in the MoPub UI
  2. Click the specified segment you want to set (Note: Accounts will automatically be set with a Global Segment on creation. This would be
    the segment most people would need to navigate to to set the ad
    network for the specific ad unit. This changes if a new segment is
    created and has specific targeting as new segments will override the
    Global Segment for their specific parameters.)
  3. There is a filter set to show only running ad sources. You want to close the tab for this that says “Status:Running” inside the filter
    box to see the rest of the ad sources.
  4. Click the drop down for the ad unit you want to change
  5. Edit the ecpm of the ad source
  6. Click “Set”

After Facebook is enabled on your ad unit, you can start testing live
Facebook ads. You will want to make sure you have the Facebook app
installed on your device with a Facebook account set up against it in
order to see ads. Additionally, you will want to make sure you are
using the MoPub certified version of the FAN SDK, which is 4.8.1 for
Android.

If you aren’t seeing any Facebook ads after you complete these testing
steps please let us know. Be sure to include device logs in your
response so we an get a better idea of what is going on when you try
to call FAN ads.

只是为了澄清文档MoPub指的是你需要将额外的适配器放在你的Android应用程序的’src’文件夹中.我发现通过这样做,我最终得到一条日志消息,说找不到FacebookNative.java文件.
您需要将额外的适配器添加到主 – >用于android的java文件夹来检测它们.

标签:mopub,facebook-audience-network,android
来源: https://codeday.me/bug/20190824/1705478.html