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
Stay organized with collections
Save and categorize content based on your preferences.
Spark icon
Page Summary
-
GADAdMetadataProvider is a protocol for ads that provide ad metadata.
-
The
adMetadataproperty provides the ad's metadata. -
The
adMetadataDelegateis 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;