GoogleMobileAds Framework Reference
@protocol GADAdMetadataDelegate <NSObject>
Delegate protocol for receiving ad metadata change messages from a GADAdMetadataProvider.
-
Tells the delegate that the ad’s metadata changed. Called when an ad loads and when a loaded
ad’s metadata changes.
Declaration
Swift
func adMetadataDidChange(_ ad: any AdMetadataProvider)
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 `GADAdMetadataDelegate` protocol enables receiving updates on ad metadata changes from a `GADAdMetadataProvider`."],["The `adMetadataDidChange:` method informs the delegate about ad metadata changes, triggered during ad loading and when metadata of a loaded ad is updated."]]],["The `GADAdMetadataDelegate` protocol is designed to notify delegates about changes in ad metadata. It features a single method, `adMetadataDidChange:`, which is triggered when an ad loads or when the metadata of a loaded ad is altered. This method provides the delegate with an `AdMetadataProvider` object, allowing access to the updated ad metadata. The protocol supports both Swift and Objective-C.\n"]]