Protocols
The following protocols are available globally.
-
The delegate of a GADAdLoader object must conform to this protocol to receive DFPBannerViews.
Declaration
Swift
protocol DFPBannerAdLoaderDelegate : GADAdLoaderDelegate
-
The DFPCustomRenderedAd banner view delegate protocol for notifying the delegate of changes to custom rendered banners.
Declaration
Swift
protocol DFPCustomRenderedBannerViewDelegate : NSObjectProtocol
-
The DFPCustomRenderedAd interstitial delegate protocol for notifying the delegate of changes to custom rendered interstitials.
Declaration
Swift
protocol DFPCustomRenderedInterstitialDelegate : NSObjectProtocol
-
Base ad loader delegate protocol. Ad types provide extended protocols that declare methods to handle successful ad loads.
Declaration
Swift
protocol GADAdLoaderDelegate : NSObjectProtocol
-
An object implementing this protocol contains information set by the publisher on the client device for a particular ad network.
Ad networks should create an ‘extras’ object implementing this protocol for their publishers to use.
Declaration
Swift
protocol GADAdNetworkExtras : NSObjectProtocol
-
The class implementing this protocol will be notified when the GADBannerView’s ad content changes size. Any views that may be affected by the banner size change will have time to adjust.
Declaration
Swift
protocol GADAdSizeDelegate : NSObjectProtocol
-
Implement your app event within these methods. The delegate will be notified when the SDK receives an app event message from the ad.
Declaration
Swift
protocol GADAppEventDelegate : NSObjectProtocol
-
A set of methods to inform the delegate of audio video manager events.
Declaration
Swift
protocol GADAudioVideoManagerDelegate : NSObjectProtocol
-
Delegate methods for receiving GADBannerView state change messages such as ad request status and ad click lifecycle.
Declaration
Swift
protocol GADBannerViewDelegate : NSObjectProtocol
-
The banner custom event protocol. Your banner custom event handler must implement this protocol.
Declaration
Swift
protocol GADCustomEventBanner : NSObjectProtocol
-
Call back to this delegate in your custom event. You must call customEventBanner:didReceiveAd: when there is an ad to show, or customEventBanner:didFailAd: when there is no ad to show. Otherwise, if enough time passed (several seconds) after the SDK called the requestBannerAd: method of your custom event, the mediation SDK will consider the request timed out, and move on to the next ad network.
Declaration
Swift
protocol GADCustomEventBannerDelegate : NSObjectProtocol
-
The interstitial custom event protocol. Your interstitial custom event handler must implement this protocol.
Declaration
Swift
protocol GADCustomEventInterstitial : NSObjectProtocol
-
Call back to this delegate in your custom event. You must call customEventInterstitialDidReceiveAd: when there is an ad to show, or customEventInterstitial:didFailAd: when there is no ad to show. Otherwise, if enough time passed (several seconds) after the SDK called the requestInterstitialAdWithParameter: method of your custom event, the mediation SDK will consider the request timed out, and move on to the next ad network.
Declaration
Swift
protocol GADCustomEventInterstitialDelegate : NSObjectProtocol
-
Native ad custom event protocol. Your native ad custom event handler class must conform to this protocol.
Declaration
Swift
protocol GADCustomEventNativeAd : NSObjectProtocol
-
The delegate of the GADCustomEventNativeAd object must adopt the GADCustomEventNativeAdDelegate protocol. Methods in this protocol are used for native ad’s custom event communication with the Google Mobile Ads SDK.
Declaration
Swift
protocol GADCustomEventNativeAdDelegate : NSObjectProtocol
-
Delegate for the GADDebugOptionsViewController.
Declaration
Swift
protocol GADDebugOptionsViewControllerDelegate : NSObjectProtocol
-
In-app purchase delegate protocol for default purchase handling. The delegate must deliver the purchased item then call the GADDefaultInAppPurchase object’s finishTransaction method.
Declaration
Swift
protocol GADDefaultInAppPurchaseDelegate : NSObjectProtocol
-
In-app purchase delegate protocol for custom purchase handling. The delegate must handle the product purchase flow then call the GADInAppPurchase object’s reportPurchaseStatus: method.
Declaration
Swift
protocol GADInAppPurchaseDelegate : NSObjectProtocol
-
Delegate for receiving state change messages from a GADInterstitial such as interstitial ad requests succeeding/failing.
Declaration
Swift
protocol GADInterstitialDelegate : NSObjectProtocol
-
Identifies native ad assets.
Declaration
Swift
protocol GADNativeAdDelegate : NSObjectProtocol
-
The delegate of a GADAdLoader object implements this protocol to receive GADNativeAppInstallAd ads.
Declaration
Swift
protocol GADNativeAppInstallAdLoaderDelegate : GADAdLoaderDelegate
-
The delegate of a GADAdLoader object implements this protocol to receive GADNativeContentAd ads.
Declaration
Swift
protocol GADNativeContentAdLoaderDelegate : GADAdLoaderDelegate
-
The delegate of a GADAdLoader object implements this protocol to receive GADNativeCustomTemplateAd ads.
Declaration
Swift
protocol GADNativeCustomTemplateAdLoaderDelegate : GADAdLoaderDelegate
-
Delegate methods for receiving GADNativeExpressAdView state change messages such as ad request status and ad click lifecycle.
Declaration
Swift
protocol GADNativeExpressAdViewDelegate : NSObjectProtocol
-
Delegate for receiving state change messages from a GADRewardBasedVideoAd such as ad requests succeeding/failing.
Declaration
Swift
protocol GADRewardBasedVideoAdDelegate : NSObjectProtocol
-
Delegate for receiving state change messages from a GADRewardedAd.
Declaration
Swift
protocol GADRewardedAdDelegate : NSObjectProtocol
-
Delegate for receiving metadata change messages from a GADRewardedAd.
Declaration
Swift
protocol GADRewardedAdMetadataDelegate : NSObjectProtocol
-
The delegate of a GADAdLoader object implements this protocol to receive GADUnifiedNativeAd ads.
Declaration
Swift
protocol GADUnifiedNativeAdLoaderDelegate : GADAdLoaderDelegate
-
Identifies native ad assets.
Declaration
Swift
protocol GADUnifiedNativeAdDelegate : NSObjectProtocol
-
Delegate methods for handling unified native ad unconfirmed clicks.
Declaration
Swift
protocol GADUnifiedNativeAdUnconfirmedClickDelegate : NSObjectProtocol
-
The GADVideoControllerDelegate protocol defines methods that are called by the video controller object in response to the video events that occurred throughout the lifetime of the video rendered by an ad.
Declaration
Swift
protocol GADVideoControllerDelegate : NSObjectProtocol
-
Ad network adapter protocol.
Declaration
Swift
protocol GADMAdNetworkAdapter : NSObjectProtocol
-
Ad network adapters interact with the mediation SDK using an object that implements the GADMAdNetworkConnector protocol. The connector object can be used to obtain necessary information for ad requests, and to call back to the mediation SDK on ad request returns and user interactions.
Declaration
Swift
protocol GADMAdNetworkConnector : GADMediationAdRequest
-
Your adapter must conform to this protocol to provide reward based video ads.
Declaration
Swift
protocol GADMRewardBasedVideoAdNetworkAdapter : NSObjectProtocol
-
Reward based video ad network adapters interact with the mediation SDK using an object that conforms to the GADMRewardBasedVideoAdNetworkConnector protocol. The connector object can be used to obtain information for ad requests and to call back to the mediation SDK on ad responses and user interactions.
Declaration
Swift
protocol GADMRewardBasedVideoAdNetworkConnector : GADMediationAdRequest
-
Base protocol for mediated native ads.
Declaration
Swift
protocol GADMediatedNativeAd : NSObjectProtocol
-
GADMediatedNativeAdDelegate objects handle mediated native ad events.
Declaration
Swift
protocol GADMediatedNativeAdDelegate : NSObjectProtocol
-
Provides methods used for constructing native app install ads. The adapter must return an object conforming to this protocol for native app install ad requests.
Declaration
Swift
protocol GADMediatedNativeAppInstallAd : GADMediatedNativeAd
-
Provides methods used for constructing native content ads.
Declaration
Swift
protocol GADMediatedNativeContentAd : GADMediatedNativeAd
-
Provides methods used for constructing native ads. The adapter must return an object conforming to this protocol for native ad requests.
Declaration
Swift
protocol GADMediatedUnifiedNativeAd : NSObjectProtocol
-
Rendered ad. Objects conforming to this protocol are created by the adapter and returned to the Google Mobile Ads SDK via the adapter’s render method completion handler.
Declaration
Swift
protocol GADMediationAd : NSObjectProtocol
-
Reports information to the Google Mobile Ads SDK from the adapter. Adapters receive an ad event delegate when they provide a GADMediationAd by calling a render completion handler.
Declaration
Swift
protocol GADMediationAdEventDelegate : NSObjectProtocol
-
Reports banner related information to the Google Mobile Ads SDK from the adapter.
Declaration
Swift
protocol GADMediationBannerAdEventDelegate : GADMediationAdEventDelegate
-
Reports interstitial related information to the Google Mobile Ads SDK from the adapter.
Declaration
Swift
protocol GADMediationInterstitialAdEventDelegate : GADMediationAdEventDelegate
-
Reports native related information to the Google Mobile Ads SDK from the adapter.
Declaration
Swift
protocol GADMediationNativeAdEventDelegate : GADMediationAdEventDelegate
-
Reports rewarded related information to the Google Mobile Ads SDK from the adapter.
Declaration
Swift
protocol GADMediationRewardedAdEventDelegate : GADMediationAdEventDelegate
-
Provides information which can be used for making ad requests during mediation.
Declaration
Swift
protocol GADMediationAdRequest : NSObjectProtocol
-
Receives messages and requests from the Google Mobile Ads SDK. Provides GMA to 3P SDK communication.
Adapters are initialized on a background queue and should avoid using the main queue until load time.
Declaration
Swift
protocol GADMediationAdapter : NSObjectProtocol
-
Rendered banner ad. Provides a single subview to add to the banner view’s view hierarchy.
Declaration
Swift
protocol GADMediationBannerAd : GADMediationAd
-
Rendered interstitial ad.
Declaration
Swift
protocol GADMediationInterstitialAd : GADMediationAd
-
Rendered native ad.
Declaration
Swift
protocol GADMediationNativeAd : GADMediatedUnifiedNativeAd, GADMediationAd
-
Rendered rewarded ad.
Declaration
Swift
protocol GADMediationRewardedAd : GADMediationAd
-
Adapter that provides signals to the Google Mobile Ads SDK to be included in an OpenRTB auction.
Declaration
Swift
protocol GADRTBAdapter : GADMediationAdapter