| 1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // GADCustomEventBanner.h
- // Google Mobile Ads SDK
- //
- // Copyright 2012 Google Inc. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import "GADAdSize.h"
- #import "GADCustomEventBannerDelegate.h"
- #import "GADCustomEventRequest.h"
- /// The protocol for a Custom Event of the banner type. Your Custom Event handler object for banners
- /// must implement this protocol. The requestBannerAd method will be called when mediation schedules
- /// your Custom Event to be executed.
- @protocol GADCustomEventBanner<NSObject>
- /// This method is called by mediation when your Custom Event is scheduled to be executed. Results
- /// of the execution should be reported back via the delegate. |adSize| is the size of the ad as
- /// configured in the mediation UI for the mediation placement. |serverParameter| and |serverLabel|
- /// are the parameter and label configured in the mediation UI for the Custom Event. |request|
- /// contains information about the ad request, some of those are from GADRequest.
- - (void)requestBannerAd:(GADAdSize)adSize
- parameter:(NSString *)serverParameter
- label:(NSString *)serverLabel
- request:(GADCustomEventRequest *)request;
- /// You should call back to the |delegate| with the results of the execution to ensure mediation
- /// behaves correctly. The delegate is weakly referenced to prevent memory leaks caused by circular
- /// retention.
- ///
- /// Define the -delegate and -setDelegate: methods in your class.
- ///
- /// In your class's -dealloc method, remember to nil out the delegate.
- @property(nonatomic, weak) id<GADCustomEventBannerDelegate> delegate;
- @end
|