繁体   English   中英

如何将MiniMob Ads SDK集成到我的android应用程序中?

[英]How can i Integrating the MiniMob Ads SDK in my android application?

我想在我的Android应用程序中添加MiniMob广告。 我已经从http://www.minimob.com/integration-guide.html阅读了有关minimob sdk的完整文档,但是我仍然没明白。

现在我有两个查询:

使用MiniMob sdk创建新应用时,我们必须提供Android市场或其他应用的应用网址。 因此,我们如何像第一个上传该URL那样不进行minimob集成的应用那样获得该URL,并获取应用的url,然后再次使用minimob集成进行上传。

第二件事是,我们只需要在清单中提供该应用程序ID,应用程序密钥和程序包名称,并将jar文件添加到lib中。 并保留我在该活动中下面显示的一些代码,以展示这些广告。 我可莱特吗?

    <!-- MiniMob Manifest declaration start -->
<activity android:exported="false"
                android:name="com.minimob.android.OptinActivity"
                android:configChanges="orientation|keyboardHidden"
                android:theme="\@android:style/Theme.Translucent" />
<activity
                android:taskAffinity=""
                android:name="com.minimob.android.PushAds"
                android:configChanges="orientation|keyboardHidden"
                android:theme="\@android:style/Theme.Translucent.NoTitleBar"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="adjustResize">
                <intent-filter>
                          <action android:name="android.intent.action.VIEW" />
                          <category android:name="android.intent.category.DEFAULT" />
                </intent-filter>
</activity>
                <receiver android:name="com.minimob.android.DeliveryReceiver"
                                                android:exported="false"/>
                <receiver android:name="com.minimob.android.MessageReceiver"
                                                android:exported="false"/>
                <receiver android:name="com.minimob.android.BootReceiver"
                                                android:exported="false">
                            <intent-filter>
                                          <action  android:name="android.intent.action.BOOT_COMPLETED" />
                                          <category android:name="android.intent.category.HOME" />
                            </intent-filter>
                </receiver>

                <meta-data android:name="MINIMOB_APPID" android:value="id:$appid" />
                <meta-data android:name="MINIMOB_APPKEY" android:value="key:$appkey" />
                <meta-data android:name="MINIMOB_APPHOST"
                          android:value="http://mpm.minimob.com/mobile/serve.asp" />
                <meta-data
                   android:name="MINIMOB_ACTION" android:value="com.minimob.android.PushService$appid" />
                <service android:name="com.minimob.android.PushService" android:exported="false">
                            <intent-filter>
                                <action android:name="com.minimob.android.PushService$appid" />
                            </intent-filter>
                </service>
<!-- MiniMob Manifest declaration end -->

关于应用程序URL,它存在,因此我们可以出于多种原因(例如,故障排除)访问应用程序。 如果您的应用尚未公开发布,则可以在Google Play或其他应用商店中接受该应用后,暂时输入一个随机URL并使用正确的URL更新。

关于第二个查询,每次要将Minimob SDK集成到应用程序中时,请执行以下操作,因为它是针对每个应用程序定制的,并且说明会略有不同。

  • 转到Minimob中的“应用程序”页面并注册您的应用程序
  • 点击您的应用旁边的“下载SDK”按钮
  • 打开“ Instructions.txt”文件

这些步骤几乎就是您提到的步骤(复制.jar文件,将权限和声明复制粘贴到清单中,在启动Minimob SDK的主要活动中添加调用)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM