本文介绍了添加选择退出功能,在Android应用程序的Airpush广告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关Airpush人夸大其词之前,我想知道一个办法从我的应用程序的Airpush广告中添加选择退出功能。

Before anyone rants about Airpush, I would like to know a way to add an Opt-Out feature from within my app for Airpush Ads.

是任何人都熟悉的Airpush SDK?他们的文档是令人难以置信的差。任何帮助是AP preciated。

Is anyone familiar with the Airpush SDK? Their documentation is incredibly poor. Any help is appreciated.

我已经寻找解决这一实际的SDK,但未能找到。

I have searched the actual SDK for a solution to this, but couldn't find one.

推荐答案

我是一个Airpush重新presentative。
部队的反应是一个选项正确,但以保持用户的应用程序里面,我们还建议检查了权限的API。权限API允许您创建自定义选择加入(白名单),并选择退出(黑名单)功能,并完全控制了用户体验。

I'm an Airpush representative.Force's response is correct as one option, however to keep users inside your application we recommend also checking out the Permissions API. The Permissions API lets you create custom opt-in (whitelist) and opt-out (blacklist) functionality and fully control the user experience.

点击从Airpush开发者门户网站中权限的API按钮。
你的目的,我建议选择黑名单模式,因为你想要做选择退出,而不是选择在

Click on the Permissions API button from within the Airpush developer portal.For your purposes I would recommend selecting the Blacklist Mode, since you want to do opt-out rather than opt-in.

请参阅相关的API方法的一些文件下面,一旦你从门户中启用黑名单方式:

See below some documentation on the relevant API method once you've enabled Blacklist Mode from within the portal:

Add Blacklist IMEI

Developer sends an ‘add blacklist IMEI’ request to add an IMEI to blacklist in Airpush database. Note: In blacklist mode, blacklisted IMEIs will NOT qualify to receive push notification ads from Airpush.
URL - http://api.airpush.com/api.php
Supported request methods - GET, POST
Requires Authentication - Yes, API AUTH KEY
Parameters -
    Model   "app"
    Action  "add_imei_black"
    APIKEY  Generated API Key
    AppId   App id of application give above
    IMEI    Md5 encrypted IMEI that needs to be added in blacklist
Response Details - Upon successful blacklisting of an IMEI, server responds back with int value 1 along with the HTTP status code 200 (Created). If parameters are invalid, server will return HTTP status code as 400 and in case of any other errors server will respond back with the specific error code.
Sample Code
http://api.airpush.com/api.php?model=app&action=add_imei_black&APIKEY=apikey&appId=appid&imei=UserEncryptedIMEI

这篇关于添加选择退出功能,在Android应用程序的Airpush广告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 17:52