GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GADCustomEventBanner
@protocol GADCustomEventBanner <NSObject>
The banner custom event protocol. Your banner custom event handler must implement this protocol.
-
Inform |delegate| with the custom event execution results to ensure mediation behaves correctly.
In your class, define the -delegate and -setDelegate: methods or use @synthesize delegate
. The
Google Mobile Ads SDK sets this property on instances of your class.
-
Called by mediation when your custom event is scheduled to be executed. Report execution results
to the delegate.
Declaration
Objective-C
- (void)requestBannerAd:(GADAdSize)adSize
parameter:(nullable NSString *)serverParameter
label:(nullable NSString *)serverLabel
request:(nonnull GADCustomEventRequest *)request;
Parameters
adSize
|
The size of the ad as configured in the mediation UI for the mediation placement.
|
serverParameter
|
Parameter configured in the mediation UI.
|
serverLabel
|
Label configured in the mediation UI.
|
request
|
Contains ad request information.
|
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 2021-03-03 UTC.
[null,null,["Last updated 2021-03-03 UTC."],[],[],null,["# GoogleMobileAds Framework Reference\n\nGADCustomEventBanner\n====================\n\n @protocol GADCustomEventBanner \u003cNSObject\u003e\n\nThe banner custom event protocol. Your banner custom event handler must implement this protocol.\n- `\n ``\n ``\n `\n\n ### [delegate](#/c:objc(pl)GADCustomEventBanner(py)delegate)\n\n `\n ` \n Inform \\|delegate\\| with the custom event execution results to ensure mediation behaves correctly.\n\n In your class, define the -delegate and -setDelegate: methods or use @synthesize delegate. The\n Google Mobile Ads SDK sets this property on instances of your class. \n\n #### Declaration\n\n Objective-C \n\n @property (readwrite, nonatomic, nullable) id\u003c../Protocols/GADCustomEventBannerDelegate.html\u003e\n delegate;\n\n- `\n ``\n ``\n `\n\n ### [-requestBannerAd:parameter:label:request:](#/c:objc(pl)GADCustomEventBanner(im)requestBannerAd:parameter:label:request:)\n\n `\n ` \n Called by mediation when your custom event is scheduled to be executed. Report execution results\n to the delegate. \n\n #### Declaration\n\n Objective-C \n\n - (void)requestBannerAd:(../Structs/GADAdSize.html)adSize\n parameter:(nullable NSString *)serverParameter\n label:(nullable NSString *)serverLabel\n request:(nonnull ../Classes/GADCustomEventRequest.html *)request;\n\n #### Parameters\n\n |-------------------------|-----------------------------------------------------------------------------------|\n | ` `*adSize*` ` | The size of the ad as configured in the mediation UI for the mediation placement. |\n | ` `*serverParameter*` ` | Parameter configured in the mediation UI. |\n | ` `*serverLabel*` ` | Label configured in the mediation UI. |\n | ` `*request*` ` | Contains ad request information. |"]]