To discuss and provide feedback on our products, join the official AdMob Discord channel in the Google Advertising and Measurement Community server.

GoogleMobileAds Framework Reference

  • GADPublisherPrivacyPersonalizationState is an enum defining states for publisher privacy treatment personalization.

  • GADPublisherPrivacyPersonalizationStateDefault indicates ad requests receive the default privacy treatment.

  • GADPublisherPrivacyPersonalizationStateEnabled indicates ad requests receive personalized privacy treatment.

  • GADPublisherPrivacyPersonalizationStateDisabled indicates ad requests receive non-personalized privacy treatment.

GADPublisherPrivacyPersonalizationState

enum GADPublisherPrivacyPersonalizationState : NSInteger {}

Publisher privacy treatment personalization states.

  • Indicates that ad requests should receive the default publisher privacy treatment.

    Declaration

    Swift

    case `default` = 0

    Objective-C

    GADPublisherPrivacyPersonalizationStateDefault = 0
  • Indicates that ad requests should receive personalized publisher privacy treatment.

    Declaration

    Swift

    case enabled = 1

    Objective-C

    GADPublisherPrivacyPersonalizationStateEnabled = 1
  • Indicates that ad requests should receive non-personalized publisher privacy treatment.

    Declaration

    Swift

    case disabled = 2

    Objective-C

    GADPublisherPrivacyPersonalizationStateDisabled = 2

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年08月20日 UTC.