Adwhirl 在 Android 平台上支持 Smaato 吗?

发布于 2024-10-27 19:33:52 字数 287 浏览 0 评论 0原文

我最近为我的 Android 游戏应用程序实施了广告。通过 AdWhirl,我整合了 Admob 和 Millennial Media。现在,我正在寻找通过 Adwhirl 集成广告 Smaato 的可能性,因为我已经集成了 Admob 和 Admob。千禧年媒体。

到目前为止,我下载的 AdWhirl SDK 还没有任何适用于 Smaato 的适配器类。我还想知道是否可以为 Smaato & 编写适配器类与 Adwhirl SDK 集成?

提前致谢。

问候,

阿图尔·普拉卡什·辛格

I had recently implemented ads for my android game app. Through AdWhirl, I have integrated Admob and Millennial Media. Now, I am looking for the possibility to integrate ads Smaato through Adwhirl as I have integrated Admob & Millennial Media.

The AdWhirl SDK which I have downloaded does not have any adapter class for Smaato so far. I also want to know whether it is possible to write adapter class for Smaato & integrate with Adwhirl SDK?

Thanks in advance.

Regards,

Atul Prakash Singh

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

二智少女 2024-11-03 19:33:52

我们已经为 iOS 构建了这样的适配器,但还没有为 Android 构建。应该也可以为 Android 编写它。

问候
迈克尔
斯马托公司

We have build such an adapter for iOS but not for Android yet. It should be possible to write it for Android as well.

Regards
Michael
Smaato Inc.

请爱~陌生人 2024-11-03 19:33:52

您必须在顶层编写自定义事件的函数。

这是示例代码:satrt_SUMO
愿它对你有帮助。


public class XXXX extends Activity implements AdWhirlInterface {
SOMABanner mBanner;<br>
AdWhirlLayout MAdWhirlLayout;
   ......

@Override
public void adWhirlGeneric() {
    // TODO Auto-generated method stub

}
com.smaato.SOMA.AdListener  adls=new com.smaato.SOMA.AdListener(){
    @Override
    public void onFailedToReceiveAd(AdDownloader arg0, ErrorCode arg1) {
        // TODO Auto-generated method stub
        //AdWhirl will now load from another ad network you have added
        mBanner.setAutoRefresh(false);
        mBanner.removeAdListener(adls);
        MAdWhirlLayout.rollover();
    }

    @Override
    public void onReceiveAd(AdDownloader arg0, SOMAReceivedBanner arg1) {
        // TODO Auto-generated method stub
        Log.v("SUMO Listener", "Ad Received.");
        //AdWhirl will wait for 30 seconds or so before it will start requesting ad
        mBanner.setAutoRefresh(false);
        mBanner.removeAdListener(adls);
        MAdWhirlLayout.adWhirlManager.resetRollover();
        MAdWhirlLayout.rotateThreadedDelayed();
    }
};

    public void start_SUMO() {
        mBanner= new SOMABanner(this);
         mBanner.setPublisherId(**your publisher ID**);
         mBanner.setAdSpaceId(**your space ID**);
         mBanner.asyncLoadNewBanner();
         mBanner.setAutoRefresh(true);
         mBanner.addAdListener(adls);
                     MAdWhirlLayout.pushSubView(mBanner);
             }
.....

You have to write function for Custom event on top hierarchy.

This is a sample code :satrt_SUMO
May it helps you.


public class XXXX extends Activity implements AdWhirlInterface {
SOMABanner mBanner;<br>
AdWhirlLayout MAdWhirlLayout;
   ......

@Override
public void adWhirlGeneric() {
    // TODO Auto-generated method stub

}
com.smaato.SOMA.AdListener  adls=new com.smaato.SOMA.AdListener(){
    @Override
    public void onFailedToReceiveAd(AdDownloader arg0, ErrorCode arg1) {
        // TODO Auto-generated method stub
        //AdWhirl will now load from another ad network you have added
        mBanner.setAutoRefresh(false);
        mBanner.removeAdListener(adls);
        MAdWhirlLayout.rollover();
    }

    @Override
    public void onReceiveAd(AdDownloader arg0, SOMAReceivedBanner arg1) {
        // TODO Auto-generated method stub
        Log.v("SUMO Listener", "Ad Received.");
        //AdWhirl will wait for 30 seconds or so before it will start requesting ad
        mBanner.setAutoRefresh(false);
        mBanner.removeAdListener(adls);
        MAdWhirlLayout.adWhirlManager.resetRollover();
        MAdWhirlLayout.rotateThreadedDelayed();
    }
};

    public void start_SUMO() {
        mBanner= new SOMABanner(this);
         mBanner.setPublisherId(**your publisher ID**);
         mBanner.setAdSpaceId(**your space ID**);
         mBanner.asyncLoadNewBanner();
         mBanner.setAutoRefresh(true);
         mBanner.addAdListener(adls);
                     MAdWhirlLayout.pushSubView(mBanner);
             }
.....
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文