跳转至

RequestConfiguration

RequestConfiguration 类汇总了应用于每次广告加载的全局广告请求设置。

常量

Device ID Emulator

使用此常量在模拟器上启用测试广告。

RequestConfiguration.DEVICE_ID_EMULATOR
RequestConfiguration.DeviceIdEmulator

Max Ad Content Ratings

配置应用加载的广告的内容过滤器。

  • RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED
  • RequestConfiguration.MAX_AD_CONTENT_RATING_G
  • RequestConfiguration.MAX_AD_CONTENT_RATING_PG
  • RequestConfiguration.MAX_AD_CONTENT_RATING_T
  • RequestConfiguration.MAX_AD_CONTENT_RATING_MA
  • RequestConfiguration.MaxAdContentRatingUnspecified
  • RequestConfiguration.MaxAdContentRatingG
  • RequestConfiguration.MaxAdContentRatingPG
  • RequestConfiguration.MaxAdContentRatingT
  • RequestConfiguration.MaxAdContentRatingMA

属性

max_ad_content_rating / MaxAdContentRating

允许为应用投放的广告的最大广告内容分级。

var max_ad_content_rating: String
public string MaxAdContentRating { get; set; }

tag_for_child_directed_treatment / ChildDirectedTreatment

配置针对儿童导向处理设置以符合 COPPA 规定。

var tag_for_child_directed_treatment: int # Matches values from TagForChildDirectedTreatment enum
public TagForChildDirectedTreatment ChildDirectedTreatment { get; set; }

配置未达到同意年龄设置以符合 GDPR 规定。

var tag_for_under_age_of_consent: int # Matches values from TagForUnderAgeOfConsent enum
public TagForUnderAgeOfConsent UnderAgeOfConsent { get; set; }

test_device_ids / TestDeviceIds

用于接收测试广告的测试设备 ID 列表。

var test_device_ids: Array[String]
public List<string> TestDeviceIds { get; set; }