GoogleMobileAds Framework Reference

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 GADAdMetadataDelegate)? { get set }

    Objective-C

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