android - Mopub:测试 Facebook Audience Network 原生广告集成

标签 android mopub facebook-audience-network

我不确定如何测试 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

我还完成了教程的这一部分,内容是通过创建一个作为原生广告的库存项目和一个转换原生广告的测试订单来 self 测试您的广告素材。这适用于我的应用程序,但这是我自己的创建广告,它不是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 文件。 您需要将额外的适配器添加到您的 main -> java 文件夹中,以便 android 检测它们。

关于android - Mopub:测试 Facebook Audience Network 原生广告集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36174856/

相关文章:

iOS 和 Mopub : app freezes when loading ad on a slow network

ios - Facebook Audience Network 展示横幅广告

android - 为什么我的应用程序与 Nexus 4 不兼容?

java - 使用 Retrofit 发送 FormUrlEncoded 时出现问题

java - 限制android密码edittext中的特殊字符

android - 如何将 MoPub 集成到 Android Studio 的共享库中

android - HTML 中的 “href” 值,用于在 Android 上的 youtube 应用程序或市场 (Google Play) 中打开视频

android - 这个 MoPub 让我头疼

ios - Admob和facebook调解IOS

android - 升级到目标 29 后,在 android 10/apex/com.android.runtime/lib64/libart.so (art::OatFileManager::DumpForSigQuit