Skip to content

Commit 082c479

Browse files
committed
docs: add gatherconsent explanation
1 parent 46145b9 commit 082c479

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/european-user-consent.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ After you have received the most up-to-date consent status, call `loadAndShowCon
189189
If the consent status is required, the SDK loads a form and immediately presents it.
190190
The completion handler is called after the form is dismissed. If consent is not required, the completion handler is called immediately.
191191

192+
To make it easier we added a helper method `gatherConsent` that combines requesting consent information and loading/presenting a consent form if necessary.
193+
192194
Before requesting ads in your app, check if you have obtained consent from the user using `canRequestAds`.
193195
If an error occurs during the consent gathering process, you should still attempt to request ads.
194196
The UMP SDK uses the consent status from the previous session.

0 commit comments

Comments
 (0)