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

  • GADAdMetadataProvider is a protocol for ads that provide ad metadata.

  • The adMetadata property provides the ad's metadata.

  • The adMetadataDelegate is used for receiving ad metadata change messages.

GADAdMetadataProvider

@protocol GADAdMetadataProvider <NSObject>

Protocol for ads that provide ad metadata.

  • The ad’s metadata. Use adMetadataDelegate to receive ad metadata change messages.

    Declaration

    Swift

    var adMetadata: [GADAdMetadataKey : Any]? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) NSDictionary<GADAdMetadataKey, id> *adMetadata;
  • Delegate for receiving ad metadata changes.

    Declaration

    Swift

    weak var adMetadataDelegate: (any AdMetadataDelegate)? { get set }

    Objective-C

    @property (nonatomic, weak, nullable) id<GADAdMetadataDelegate> adMetadataDelegate;

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.