InMobi Windows Phone Ad SDK
 All Classes Namespaces Functions Variables Enumerations Properties Events
Public Member Functions | Properties | Events | List of all members
InMobi.WP.AdSDK.IMAdInterstitial Class Reference

Control that loads an Interstitial Ad from InMobi Ad server. After loading of interstitial ad has been completed,it can be shown at any time using ShowAd method. More...

Inheritance diagram for InMobi.WP.AdSDK.IMAdInterstitial:

Public Member Functions

delegate void IMInterstitialAdRequestErrorHandler (object sender, IMAdInterstitialErrorEventArgs e)
 Delegate signatures for Error Handler
 
 IMAdInterstitial (string AppId)
 The parameterised constructor to set the value of the AppId.
 
void LoadNewAd (IMAdRequest IMAdRequest)
 Loads the Ad into the Ad Creative.
 
void LoadNewAd ()
 Loads the Ad into the Ad Creative.
 
void ShowAd ()
 Method to show the already loaded interstitial ad.Before calling this method the loading of interstitial Ad must be completed.
 
void StopLoading ()
 Aborts the Ad request
 

Properties

string AppId [get, set]
 InMobi site id.
 
States State [get]
 Get the current state of the interstitial AdState.
 

Events

EventHandler OnAdRequestLoaded
 Notified when adrequest is successfully loaded
 
IMInterstitialAdRequestErrorHandler OnAdRequestFailed
 Notified when the adrequest failed to return data.
 
EventHandler OnShowAdScreen
 Notified when the full screen ad has been opened, but not yet fully loaded
 
EventHandler OnDismissAdScreen
 Notified when the full screen ad has been closed
 
EventHandler OnLeaveApplication
 Occurs when control is moving out of the application
 

Detailed Description

Control that loads an Interstitial Ad from InMobi Ad server. After loading of interstitial ad has been completed,it can be shown at any time using ShowAd method.

Constructor & Destructor Documentation

InMobi.WP.AdSDK.IMAdInterstitial.IMAdInterstitial ( string  AppId)

The parameterised constructor to set the value of the AppId.

Parameters
AppIdSite Id assigned at the time of application registration. This can be retrieved by logging into InMobi's self-serve UI at http://www.inmobi.com

Member Function Documentation

delegate void InMobi.WP.AdSDK.IMAdInterstitial.IMInterstitialAdRequestErrorHandler ( object  sender,
IMAdInterstitialErrorEventArgs  e 
)

Delegate signatures for Error Handler

Parameters
IMAdInterstitialThe IMAdInterstitial container containing the Ad
eObject containing the ErrorCode and ErrorDescription
void InMobi.WP.AdSDK.IMAdInterstitial.LoadNewAd ( IMAdRequest  IMAdRequest)

Loads the Ad into the Ad Creative.

Parameters
IMAdRequestIMAdrequest
void InMobi.WP.AdSDK.IMAdInterstitial.LoadNewAd ( )

Loads the Ad into the Ad Creative.

void InMobi.WP.AdSDK.IMAdInterstitial.ShowAd ( )

Method to show the already loaded interstitial ad.Before calling this method the loading of interstitial Ad must be completed.

Parameters
req
void InMobi.WP.AdSDK.IMAdInterstitial.StopLoading ( )

Aborts the Ad request

Property Documentation

string InMobi.WP.AdSDK.IMAdInterstitial.AppId
getset

InMobi site id.

States InMobi.WP.AdSDK.IMAdInterstitial.State
get

Get the current state of the interstitial AdState.

Event Documentation

IMInterstitialAdRequestErrorHandler InMobi.WP.AdSDK.IMAdInterstitial.OnAdRequestFailed

Notified when the adrequest failed to return data.

EventHandler InMobi.WP.AdSDK.IMAdInterstitial.OnAdRequestLoaded

Notified when adrequest is successfully loaded

EventHandler InMobi.WP.AdSDK.IMAdInterstitial.OnDismissAdScreen

Notified when the full screen ad has been closed

EventHandler InMobi.WP.AdSDK.IMAdInterstitial.OnLeaveApplication

Occurs when control is moving out of the application

EventHandler InMobi.WP.AdSDK.IMAdInterstitial.OnShowAdScreen

Notified when the full screen ad has been opened, but not yet fully loaded