GoogleMobileAds Framework Reference

  • GADAdMetadataDelegate is a delegate protocol for receiving ad metadata change messages.

  • The adMetadataDidChange: method is called when an ad loads and when a loaded ad's metadata changes, informing the delegate of the change.

GADAdMetadataDelegate

@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)

    Objective-C

    - (void)adMetadataDidChange:(nonnull id<GADAdMetadataProvider>)ad;