AdsConsentForm
Last Updated On 2021-07-16
Version 1MinSDK 14Tutorial Video
The Google-rendered consent form is a full-screen configurable form that displays over your app content. You can configure the form to present the user with combinations of the following options:
Properties
You can set the below properties in the UI part of the builder.
- AdFreeOption - it's a boolean value which is set to true by default.
- NonPersonalizedAdsOption - it's a boolean value which is set to true by default.
- PersonalizedAdsOption - it's a boolean value which is set to true by default.
- PrivacyPolicyUrl - it's a string value which is set to https://www.google.com by default.
- PublisherId - it's a string value which is set to pub-0123456789012345 by default.
Block Properties
You can set the below blocks properties in the blocks section of the builder.
AdFreeOption
Property for AdFreeOption
NonPersonalizedAdsOption
Property for NonPersonalizedAdsOption
PersonalizedAdsOption
Property for PersonalizedAdsOption
PrivacyPolicyUrl
Privacy Url In the Form
PublisherId
Admob PublisherId
Methods
You can set the below method blocks in the blocks section of the builder.
LoadConsentForm
Load the Consent Form before Showing
ShowConsentForm
Show the Consent Form after Loading
Events
You can set the below event blocks in the blocks section of the builder.
ConsentFormClosed
Consent Form was Closed. Users Choice is returned
ConsentFormError
Some Error Occurred while creating form
ConsentFormLoaded
Form loaded
ConsentFormOpened
The form is opened and is displayed to the user
ErrorOccurred
Some Error Occurred