درخواست پیکربندی

public class RequestConfiguration


پیکربندی سراسری که برای هر AdRequest استفاده خواهد شد.

خلاصه

انواع تو در تو

سازنده برای RequestConfiguration .

ثابت‌های مجاز برای setMaxAdContentRating .

حالت‌های شخصی‌سازیِ رفتار با حریم خصوصیِ ناشر.

ثابت‌های مجاز برای setTagForChildDirectedTreatment .

ثابت‌های مجاز برای setTagForUnderAgeOfConsent .

ثابت‌ها

static final String

محتوای مناسب برای مخاطبان عمومی، از جمله خانواده‌ها.

static final String

محتوا فقط برای مخاطبان بزرگسال مناسب است.

static final String

محتوایی مناسب برای اکثر مخاطبان با راهنمایی والدین.

static final String

محتوای مناسب برای مخاطبان نوجوان و بزرگسال.

static final String

رتبه‌بندی محتوای مشخصی وجود ندارد.

static final int

Indicates that ad requests should not be treated as child-directed for purposes of the Children's Online Privacy Protection Act (COPPA).

static final int

نشان می‌دهد که درخواست‌های تبلیغات باید مطابق با قانون حفاظت از حریم خصوصی آنلاین کودکان (COPPA) به عنوان درخواست‌های کودک محور در نظر گرفته شوند.

static final int

Provides no indication whether ad requests should be treated as child-directed for purposes of the Children's Online Privacy Protection Act (COPPA).

static final int

نشان می‌دهد که ناشر مشخص کرده است که درخواست تبلیغ نباید برای کاربرانی که در منطقه اقتصادی اروپا (EEA) زیر سن قانونی هستند، اعمال شود.

static final int

نشان می‌دهد که ناشر مشخص کرده است که درخواست تبلیغ باید برای کاربرانی که در منطقه اقتصادی اروپا (EEA) و زیر سن قانونی هستند، در نظر گرفته شود.

static final int

نشان می‌دهد که ناشر مشخص نکرده است که آیا درخواست تبلیغ باید برای کاربران در منطقه اقتصادی اروپا (EEA) زیر سن قانونی در نظر گرفته شود یا خیر.

روش‌های عمومی

String

مقداری را که توسط setMaxAdContentRating مربوطه تعیین شده است، برمی‌گرداند.

RequestConfiguration.PublisherPrivacyPersonalizationState

حالت شخصی‌سازیِ رفتار با حریم خصوصیِ ناشر را برمی‌گرداند.

int

مقداری را که توسط setTagForChildDirectedTreatment مربوطه تنظیم شده است، برمی‌گرداند.

int

مقداری را که توسط setTagForUnderAgeOfConsent مربوطه تنظیم شده است، برمی‌گرداند.

List < String >

Returns the test device IDs corresponding to test device which will always request test ads.

RequestConfiguration.Builder

Returns a Builder with values from this RequestConfiguration .

ثابت‌ها

حداکثر رتبه‌بندی محتوا

public static final String MAX_AD_CONTENT_RATING_G = "G"

Content suitable for general audiences, including families.

حداکثر رتبه‌بندی محتوا

public static final String MAX_AD_CONTENT_RATING_MA = "MA"

محتوا فقط برای مخاطبان بزرگسال مناسب است.

حداکثر رتبه‌بندی محتوا

public static final String MAX_AD_CONTENT_RATING_PG = "PG"

Content suitable for most audiences with parental guidance.

حداکثر رتبه‌بندی محتوا

public static final String MAX_AD_CONTENT_RATING_T = "T"

محتوای مناسب برای مخاطبان نوجوان و بزرگسال.

حداکثر رتبه‌بندی محتوا و تبلیغات نامشخص

public static final String MAX_AD_CONTENT_RATING_UNSPECIFIED = ""

رتبه‌بندی محتوای مشخصی وجود ندارد.

برچسب_برای_درمان_مستقیم_کودک_غلط

public static final int TAG_FOR_CHILD_DIRECTED_TREATMENT_FALSE = 0

Indicates that ad requests should not be treated as child-directed for purposes of the Children's Online Privacy Protection Act (COPPA).

برچسب_برای_درمان_مستقیم_کودک درست است

public static final int TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE = 1

Indicates that ad requests should be treated as child-directed for purposes of the Children's Online Privacy Protection Act (COPPA).

برچسب_برای_درمان_مستقیم_کودک_نامشخص

public static final int TAG_FOR_CHILD_DIRECTED_TREATMENT_UNSPECIFIED = -1

Provides no indication whether ad requests should be treated as child-directed for purposes of the Children's Online Privacy Protection Act (COPPA).

public static final int TAG_FOR_UNDER_AGE_OF_CONSENT_FALSE = 0

Indicates the publisher specified that the ad request should not receive treatment for users in the European Economic Area (EEA) under the age of consent.

public static final int TAG_FOR_UNDER_AGE_OF_CONSENT_TRUE = 1

Indicates the publisher specified that the ad request should receive treatment for users in the European Economic Area (EEA) under the age of consent.

public static final int TAG_FOR_UNDER_AGE_OF_CONSENT_UNSPECIFIED = -1

Indicates that the publisher has not specified whether the ad request should receive treatment for users in the European Economic Area (EEA) under the age of consent.

زمینه‌های عمومی

رتبه‌بندی محتوای تبلیغات حداکثری

public final @Nullable String maxAdContentRating

ناشرحریم خصوصیشخصی‌سازیدولت

public final RequestConfiguration.PublisherPrivacyPersonalizationState publisherPrivacyPersonalizationState

درمان مبتنی بر کودک

public final int tagForChildDirectedTreatment

برچسب برای افراد زیر سن قانونی

public final int tagForUnderAgeOfConsent

شناسه‌های دستگاه تست

public final List<StringtestDeviceIds

روش‌های عمومی

getMaxAdContentRating

@RequestConfiguration.MaxAdContentRating
public String getMaxAdContentRating()

Returns the value set by the corresponding setMaxAdContentRating .

دریافت‌کنندهحریم خصوصیشخصی‌سازیوضعیت

public RequestConfiguration.PublisherPrivacyPersonalizationState getPublisherPrivacyPersonalizationState()

Returns the publisher privacy treatment personalization state.

درمان هدایت‌شده توسط کودک (getTagForChildDirectedTreatment)

@RequestConfiguration.TagForChildDirectedTreatment
public int getTagForChildDirectedTreatment()

Returns the value set by the corresponding setTagForChildDirectedTreatment .

دریافت برچسب برای زیر سن قانونی

@RequestConfiguration.TagForUnderAgeOfConsent
public int getTagForUnderAgeOfConsent()

Returns the value set by the corresponding setTagForUnderAgeOfConsent .

دریافت شناسه‌های دستگاه (TestDeviceIds)

public List<StringgetTestDeviceIds()

Returns the test device IDs corresponding to test device which will always request test ads. Returns an empty list if test device IDs were not previously set.

toBuilder

public RequestConfiguration.Builder toBuilder()

Returns a Builder with values from this RequestConfiguration .