BillingClient.UnderAgeOfConsent
public
static
abstract
@interface
BillingClient.UnderAgeOfConsent
implements
Annotation
com.android.billingclient.api.BillingClient.UnderAgeOfConsent |
Developers are able to specify whether to mark your ad requests to receive treatment for users in the European Economic Area (EEA) under the age of consent. This feature is designed to help facilitate compliance with the General Data Protection Regulation (GDPR). Note that you may have other legal obligations under GDPR. Please review the European Union's guidance and consult with your own legal counsel. Please remember that Google's tools are designed to facilitate compliance and do not relieve any particular publisher of its obligations under the law.
This is most relevant for Rewarded Skus.
When using this feature, a Tag For Users under the Age of Consent in Europe (TFUA) parameter will be included in the ad request. This parameter disables personalized advertising, including remarketing, for that specific ad request. It also disables requests to third-party ad vendors, such as ad measurement pixels and third-party ad servers.
If you set this method to UNDER_AGE_OF_CONSENT
, you will indicate that you want the
ad request to be handled in a manner suitable for users under the age of consent.
If you set this method to NOT_UNDER_AGE_OF_CONSENT
, you will indicate that you
don't want the ad request to be handled in a manner suitable for users under the age of
consent.
If you do not set this method, or set this method to UNSPECIFIED
, ad requests will
include no indication of whether you would like your app to be handled in a manner suitable for
users under the age of consent.
Summary
Constants | |
---|---|
int |
NOT_UNDER_AGE_OF_CONSENT
App indicates the ad requests shall NOT be handled in a manner suitable for users under the age of consent. |
int |
UNDER_AGE_OF_CONSENT
App indicates the ad requests shall be handled in a manner suitable for users under the age of consent. |
int |
UNSPECIFIED
App has not specified how ad requests shall be handled. |
Inherited methods | |
---|---|
![]()
java.lang.annotation.Annotation
|
Constants
NOT_UNDER_AGE_OF_CONSENT
int NOT_UNDER_AGE_OF_CONSENT
App indicates the ad requests shall NOT be handled in a manner suitable for users under the age of consent.
Constant Value: 2 (0x00000002)
UNDER_AGE_OF_CONSENT
int UNDER_AGE_OF_CONSENT
App indicates the ad requests shall be handled in a manner suitable for users under the age of consent.
Constant Value: 1 (0x00000001)
UNSPECIFIED
int UNSPECIFIED
App has not specified how ad requests shall be handled.
Constant Value: 0 (0x00000000)
Annotations
Interfaces
Classes
- AcknowledgePurchaseParams
- AcknowledgePurchaseParams.Builder
- BillingClient
- BillingClient.Builder
- BillingFlowParams
- BillingFlowParams.Builder
- BillingResult
- BillingResult.Builder
- ConsumeParams
- ConsumeParams.Builder
- PriceChangeFlowParams
- PriceChangeFlowParams.Builder
- ProxyBillingActivity
- Purchase
- Purchase.PurchasesResult
- PurchaseHistoryRecord
- RewardLoadParams
- RewardLoadParams.Builder
- SkuDetails
- SkuDetails.SkuDetailsResult
- SkuDetailsParams
- SkuDetailsParams.Builder