Validate consent mode set up for App ads

This article will help you to validate your app's consent mode setup by running it in debug mode and monitoring the logs.

Validate for iOS

  1. Set debugging logs to verbose
    1. In Xcode, select Product > Scheme > Edit scheme...
    2. Select Run from the left menu.
    3. Select the Arguments tab.
    4. In the Arguments Passed On Launch section, add -FIRAnalyticsVerboseLoggingEnabled.

Advanced Mode:

  1. Look for the following log lines to confirm the defaults were set.

    [FirebaseAnalytics][X-XXXXXXXXXX] ad_storage is denied.
    analytics_storage is denied. ad_user_data is denied.

    [FirebaseAnalytics][X-XXXXXXXXXX] User property set. Name, value: _пра, 1

  2. After user consent choices are shared by triggering the consent mode API via a setConsent call those choices will be shown in log lines like the following.
    ad_storage is granted.
    User property set. Name, value: _пра, 0
Note: When performing validations on iOS it’s recommended to use a physical device as the simulator has some restrictions such as no valid IDFA.

Basic Mode:

Confirm that the first_open event log isn’t sent until after the user consent choices are sent via consent mode as shown in the log lines directly above.

Learn more about Log Events Firebase.

Was this helpful?

How can we improve it?
true
Achieve your advertising goals today!

Attend our Performance Max Masterclass, a livestream workshop session bringing together industry and Google ads PMax experts.

Register now

Search
Clear search
Close search
Google apps
Main menu
16176937942624422460
true
Search Help Center
true
true
true
true
true
73067
false
false
false