GoogleMobileAds Framework Reference
@protocol GADAdMetadataProvider <NSObject>
Protocol for ads that provide ad metadata.
-
The ad’s metadata. Use adMetadataDelegate to receive ad metadata change messages.
Declaration
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 }
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-02-04 UTC.
[null,null,["Last updated 2025-02-04 UTC."],[[["The `GADAdMetadataProvider` protocol allows ads to provide metadata, giving insights into ad properties."],["Ad metadata is accessible through the `adMetadata` property, which is a dictionary."],["To get notified of any ad metadata changes, set the `adMetadataDelegate`."]]],["The `GADAdMetadataProvider` protocol enables ads to provide metadata. It defines two key properties: `adMetadata`, a read-only dictionary holding the ad's metadata, and `adMetadataDelegate`, a delegate used for receiving metadata change notifications. The `adMetadata` is a dictionary mapping metadata keys to values. The `adMetadataDelegate` is used to notify when the `adMetadata` is updated. These properties are available in both Swift and Objective-C.\n"]]