织物Mopub / Android的原生单在广告活动织物、广告、Mopub、Android

2023-09-06 06:54:53 作者:我愿意解脱

我是一个Android Developper我用Mopub /布料在我的应用程序广告整合。对于横幅/ Interstitiel /本土广告列表,它的确定。但是,我有整合的原生广告以特定的方式有些问题。让我解释一下:我有实现一个适配器(BaseAdapter)和ViewHolder显示数据的活动(与ViewPager)。在我ViewPager的每一个孩子,主要有:

I'm an Android Developper and I use Mopub/Fabric to integrate ads in my apps. For Banner/Interstitiel/Native Ad List, it's ok. But I have some issues with a specific way to integrate Native Ad. Let me explain : I have an Activity (with a ViewPager) which implement an Adapter (BaseAdapter) and a ViewHolder to display data. In each child of my ViewPager, there are :

第一:某些文本二:我的家乡广告第三:A键

有没有办法用MoPubAdAdapter或别的东西做到这一点?

Is there a way to accomplish this with a MoPubAdAdapter or something else ?

感谢您提前。

推荐答案

这个答案是从MoPub论坛引用的这里。

This answer is referenced from the MoPub Forums here.

您可以使用MoPubAdAdapter来包装你的ViewPager显示原生的广告。

You can use MoPubAdAdapter to wrap your ViewPager to display native ads.

它的建议是每一个本土广告填写自己的ViewHolder。通过定义广告的XML布局,可以让广告的文字图像和CTA按钮显示在你在你的形象想要的格式。

It's recommend having each Native Ad fill its own ViewHolder. By defining the XML layout of the ad, you can have the ad's text image and CTA button display in the format you want in your image.

请参阅上集成原生广告的这里有关如何设置此布局信息。

Please see our documentation on integrating native ads here for information on how to set up this layout.

如果你想显示ViewHolder内的原生全部广告,这可能会更加困难,可能需要定制集成。

If you want to display an entire native ad within the ViewHolder, this may be more difficult and may require a custom integration.