隐私设置 Privacy Setting
Reference Demo
ToBid 聚合SDK提供的广告服务均满足国家相关法律规定如《个人信息保护法》、《数据安全法》等要求的信息采集规范。开发者仅需依照文档调用 ToBid 提供的隐私接口即可将对应的隐私配置信息同步到应用内集成使用的全部广告SDK。
The advertising services provided by the ToBid aggregation SDK all meet the information collection specifications required by relevant national laws and regulations, such as the Personal Information Protection Law and the Data Security Law. Developers only need to call the privacy interface provided by ToBid according to the document to synchronize the corresponding privacy configuration information to all the advertising SDKs integrated in the application.
1. 未成年设置 Minor settings
objective-c
typedef enum : NSUInteger {
WindMillAdult = 0,
WindMillChildren = 1,
} WindMillAdultState;
+ (void)setAdult:(WindMillAdultState)state;
+ (WindMillAdultState)getAdultState;2. 个性化推荐设置 Personalized Recommendation Settings
objective-c
typedef enum : NSUInteger {
WindMillPersonalizedAdvertisingOn = 0,
WindMillPersonalizedAdvertisingOff = 1,
} WindMillPersonalizedAdvertisingState;
+ (void)setPersonalizedAdvertising:(WindMillPersonalizedAdvertisingState)state;
+ (WindMillPersonalizedAdvertisingState)getPersonalizedAdvertisingState;3. GDPR
objective-c
typedef NS_ENUM (NSInteger, WindMillConsentStatus) {
WindMillConsentUnknown = 0,
WindMillConsentAccepted,
WindMillConsentDenied,
};
+ (void)setUserGDPRConsentStatus:(WindMillConsentStatus)status;
+ (WindMillConsentStatus)getUserGDPRConsentStatus;4. CCPA
objective-c
typedef NS_ENUM (NSInteger, WindMillCCPAStatus) {
WindMillCCPAUnknown = 0,
WindMillCCPAAccepted,
WindMillCCPADenied,
};
+ (void)setCCPAStatus:(WindMillCCPAStatus)status;
+ (WindMillCCPAStatus)getCCPAStatus;5. COPPA
objective-c
typedef NS_ENUM (NSInteger, WindMillAgeRestrictedStatus) {
WindMillAgeRestrictedStatusUnknow = 0,
WindMillAgeRestrictedStatusYES,
WindMillAgeRestrictedStatusNO,
};
+ (void)setIsAgeRestrictedUser:(WindMillAgeRestrictedStatus)status;
+ (WindMillAgeRestrictedStatus)getAgeRestrictedStatus;6. 开发者传入设备信息
Developers pass in device information
针对部分媒体需要。如无必要,请勿设置。
Required for some media. Do not set it if not necessary.
objective-c
/// 设置自定义信息
/// @param delegate 自定义代理对象
/// @warning 初始化前调用,否则有可能不生效
+ (void)setCustomDeviceController:(id<AWMDeviceProtocol>)delegate;AWMDeviceProtocol协议介绍
AWMDeviceProtocol Introduction
objective-c
@protocol AWMDeviceProtocol <NSObject>
@optional
/**
* 是否允许SDK主动使用地理位置信息
*
* @return YES可以获取,NO禁止获取。默认为YES
*/
- (BOOL)isCanUseLocation;
/**
* 当isCanUseLocation=NO时,可传入地理位置信息,sdk使用您传入的地理位置信息
*
* @return 地理位置参数
*/
- (AWMLocation *)getAWMLocation;
/**
* 是否允许SDK主动获取IDFA信息
*
* @return YES可以获取,NO禁止获取。默认为YES
*/
- (BOOL)isCanUseIdfa;
/**
* 当isCanUseIdfa=YES时,可传入idfa信息。sdk使用您传入的idfa信息
*
* @return idfa设备信息
*/
- (NSString *)getDevIdfa;
@end