GSFullscreenAd Class Reference
Inherits from | GSAdModel : NSObject |
Declared in | GSFullscreenAd.h |
Overview
A GSFullscreenAd can be used to fetch and display fullscreen ads.
This conforms to the GSAd protocol.
Tasks
-
– initWithDelegate:
Initialize a GSFullscreenAd with a delegate. If this init is used, the host app must implement the GUID method.
-
– initWithDelegate:GUID:
Initialize a GSFullscreenAd with a delegate and a GUID. If the host app does not implement the GUID method, this is the init method that needs to be called. Otherwise an exception will be raised.
-
– displayFromViewController:
Tells the shared GSFullscreenAdViewController to display the ad from the given view controller. This should be the view controller that is currently displaying.
Instance Methods
displayFromViewController:
Tells the shared GSFullscreenAdViewController to display the ad from the given view controller. This should be the view controller that is currently displaying.
- (BOOL)displayFromViewController:(UIViewController *)a_viewController
Parameters
- a_viewController
the view controller that the ad should be displayed from.
Declared In
GSFullscreenAd.h
initWithDelegate:
Initialize a GSFullscreenAd with a delegate. If this init is used, the host app must implement the GUID method.
- (id)initWithDelegate:(id<GSAdDelegate>)a_delegate
Parameters
- a_delegate
The delegate that will receive all ad notification messages.
Declared In
GSFullscreenAd.h
initWithDelegate:GUID:
Initialize a GSFullscreenAd with a delegate and a GUID. If the host app does not implement the GUID method, this is the init method that needs to be called. Otherwise an exception will be raised.
- (id)initWithDelegate:(id<GSAdDelegate>)a_delegate GUID:(NSString *)a_GUID
Parameters
- a_delegate
The delegate that will receive all ad notification messages.
- a_GUID
The global unique identifier for the application.
Declared In
GSFullscreenAd.h