GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
@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-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGADAdMetadataDelegate\u003c/code\u003e protocol enables receiving updates on ad metadata changes from a \u003ccode\u003eGADAdMetadataProvider\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eadMetadataDidChange:\u003c/code\u003e method is called when an ad's metadata is initially loaded or subsequently updated.\u003c/p\u003e\n"]]],["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"],null,["# GoogleMobileAds Framework Reference\n\nGADAdMetadataDelegate\n=====================\n\n @protocol GADAdMetadataDelegate \u003cNSObject\u003e\n\nDelegate protocol for receiving ad metadata change messages from a GADAdMetadataProvider.\n- `\n ``\n ``\n `\n\n ### [-adMetadataDidChange:](#/c:objc(pl)GADAdMetadataDelegate(im)adMetadataDidChange:)\n\n `\n ` \n Tells the delegate that the ad's metadata changed. Called when an ad loads and when a loaded\n ad's metadata changes. \n\n #### Declaration\n\n Swift \n\n func adMetadataDidChange(_ ad: any AdMetadataProvider)\n\n Objective-C \n\n - (void)adMetadataDidChange:(nonnull id\u003c../Protocols/GADAdMetadataProvider.html\u003e)ad;"]]