コンテンツにスキップ

RequestConfiguration

RequestConfiguration クラスは、すべての広告ロードに適用されるグローバルな広告リクエスト設定を集約します。

定数

デバイス ID エミュレータ

この定数を使用して、エミュレータでテスト広告を有効にします。

RequestConfiguration.DEVICE_ID_EMULATOR
RequestConfiguration.DeviceIdEmulator

最大広告コンテンツレーティング

アプリで読み込まれる広告のコンテンツフィルターを設定します。

  • 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 準拠のための child-directed 処理設定を構成します。

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; }