-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mark Ha
committed
May 14, 2014
1 parent
2acaef2
commit 1fac416
Showing
27 changed files
with
535 additions
and
488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 28 additions & 33 deletions
61
mediation/mediatedviews/libs/AdMob/Add-ons/Mediation/GADCustomEventBannerDelegate.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,53 @@ | ||
// | ||
// GADCustomEventBannerDelegate.h | ||
// Google AdMob Ads SDK | ||
// | ||
// Copyright 2012 Google Inc. All rights reserved. | ||
// | ||
// 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. | ||
// | ||
/// | ||
/// GADCustomEventBannerDelegate.h | ||
/// Google AdMob Ads SDK | ||
/// | ||
/// Copyright 2012 Google Inc. All rights reserved. | ||
/// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@protocol GADCustomEventBanner; | ||
|
||
/// 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. | ||
@protocol GADCustomEventBannerDelegate<NSObject> | ||
|
||
// Your Custom Event object must call this when it receives or creates an ad | ||
// view. | ||
/// Your Custom Event object must call this when it receives or creates an ad view. | ||
- (void)customEventBanner:(id<GADCustomEventBanner>)customEvent didReceiveAd:(UIView *)view; | ||
|
||
// Your Custom Event object must call this when it fails to receive or | ||
// create the ad view. Pass along any error object sent from the ad network's | ||
// SDK, or an NSError describing the error. Pass nil if not available. | ||
/// Your Custom Event object must call this when it fails to receive or create the ad view. Pass | ||
/// along any error object sent from the ad network's SDK, or an NSError describing the error. Pass | ||
/// nil if not available. | ||
- (void)customEventBanner:(id<GADCustomEventBanner>)customEvent didFailAd:(NSError *)error; | ||
|
||
// Your Custom Event object should call this when the user touches or "clicks" | ||
// the ad to initiate an action. When the SDK receives this callback, it reports | ||
// the click back to the Mediation server. This callback is optional. | ||
/// Your Custom Event object should call this when the user touches or "clicks" the ad to initiate | ||
/// an action. When the SDK receives this callback, it reports the click back to the Mediation | ||
/// server. This callback is optional. | ||
- (void)customEventBanner:(id<GADCustomEventBanner>)customEvent clickDidOccurInAd:(UIView *)view; | ||
|
||
// The rootViewController that you set in GADBannerView. | ||
// Use this UIViewController to show a modal view when a user taps on the ad. | ||
/// The rootViewController that you set in GADBannerView. Use this UIViewController to show a modal | ||
/// view when a user taps on the ad. | ||
@property(nonatomic, readonly) UIViewController *viewControllerForPresentingModalView; | ||
|
||
// When you call the following methods, the call will be propagated back to the | ||
// GADBannerViewDelegate that you implemented and passed to GADBannerView. | ||
/// When you call the following methods, the call will be propagated back to the | ||
/// GADBannerViewDelegate that you implemented and passed to GADBannerView. | ||
|
||
// Your Custom Event should call this when the user taps an ad and a modal view | ||
// appears. | ||
/// Your Custom Event should call this when the user taps an ad and a modal view appears. | ||
- (void)customEventBannerWillPresentModal:(id<GADCustomEventBanner>)customEvent; | ||
|
||
// Your Custom Event should call this when the user dismisses the modal view | ||
// and the modal view is about to go away. | ||
/// Your Custom Event should call this when the user dismisses the modal view and the modal view is | ||
/// about to go away. | ||
- (void)customEventBannerWillDismissModal:(id<GADCustomEventBanner>)customEvent; | ||
|
||
// Your Custom Event should call this when the user dismisses the modal view | ||
// and the modal view has gone away. | ||
/// Your Custom Event should call this when the user dismisses the modal view and the modal view has | ||
/// gone away. | ||
- (void)customEventBannerDidDismissModal:(id<GADCustomEventBanner>)customEvent; | ||
|
||
// Your Custom Event should call this method when a user action will result in | ||
// App switching. | ||
/// Your Custom Event should call this method when a user action will result in App switching. | ||
- (void)customEventBannerWillLeaveApplication:(id<GADCustomEventBanner>)customEvent; | ||
|
||
@end |
30 changes: 14 additions & 16 deletions
30
mediation/mediatedviews/libs/AdMob/Add-ons/Mediation/GADCustomEventExtras.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
// | ||
// GADCustomEventExtras.h | ||
// Google Ads iOS SDK | ||
// | ||
// Copyright (c) 2012 Google Inc. All rights reserved. | ||
// | ||
// Create an instance of this class to set additional parameters for each | ||
// custom event object. The additional parameters for a custom event are | ||
// keyed by the custom event label. These extras are passed to your | ||
// implementation of GADCustomEventBanner or GADCustomEventInterstitial. | ||
// | ||
/// | ||
/// GADCustomEventExtras.h | ||
/// Google Ads iOS SDK | ||
/// | ||
/// Copyright (c) 2012 Google Inc. All rights reserved. | ||
/// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#import "GADAdNetworkExtras.h" | ||
|
||
/// Create an instance of this class to set additional parameters for each custom event object. The | ||
/// additional parameters for a custom event are keyed by the custom event label. These extras are | ||
/// passed to your implementation of GADCustomEventBanner or GADCustomEventInterstitial. | ||
@interface GADCustomEventExtras : NSObject<GADAdNetworkExtras> | ||
|
||
// Set additional parameters for the custom event with label |label|. To remove | ||
// additional parameters associated with |label|, pass in nil for |extras|. | ||
/// Set additional parameters for the custom event with label |label|. To remove additional | ||
/// parameters associated with |label|, pass in nil for |extras|. | ||
- (void)setExtras:(NSDictionary *)extras forLabel:(NSString *)label; | ||
|
||
// Retrieve the extras for |label|. | ||
/// Retrieve the extras for |label|. | ||
- (NSDictionary *)extrasForLabel:(NSString *)label; | ||
|
||
// Removes all the extras set on this instance. | ||
/// Removes all the extras set on this instance. | ||
- (void)removeAllExtras; | ||
|
||
// Returns all the extras set on this instance. | ||
/// Returns all the extras set on this instance. | ||
- (NSDictionary *)allExtras; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.