InMobi WP7 SDK
 All Classes Namespaces Functions Variables Enumerations Properties Events
Public Member Functions | Static Public Attributes | Properties | Events
InMobi.WpSdk.IMAdView Class Reference

Control that displays a banner or text ad from the InMobi ad server. This control will automatically refresh the Ad after interval set by RefreshInterval property. More...

List of all members.

Public Member Functions

 IMAdView ()
 Constructor to create an instance of IMAdView.
 IMAdView (string AppId, int AdSize)
 Constructor to create an instance of IMAdView by passing ApplicationId and AdSize.
void SetAdBackgroundGradientColor (string TopColor, string BottomColor)
 Sets the Background Gradient of Text Ad Valid RGB color e.g #fff or #AABBCC.
void LoadNewAd (IMAdRequest adRequest)
 Load a new ad into the IMAdView.
void LoadNewAd ()
 Load a new ad into the IMAdView.

Static Public Attributes

static int INMOBI_AD_UNIT_320X48 = 9
 Rectangle size for an inmobi ad, 320x48 pixels Deprecated This slot will be removed in a future release. Use INMOBI_AD_UNIT_320X50 instead.
static int INMOBI_AD_UNIT_300X250 = 10
 Medium Rectangle size for an InMobi Ad, 300x250 pixels.
static int INMOBI_AD_UNIT_728x90 = 11
 Leaderboard size for an InMobi ad, 728x90 pixels, designed for Landscape mode.
static int INMOBI_AD_UNIT_468x60 = 12
 Full banner size for an InMobi Ad, 468x60 pixels.
static int INMOBI_AD_UNIT_120x600 = 13
 Skyscraper size for an InMobi Ad, 120x600 pixels.
static int INMOBI_AD_UNIT_320X50 = 15
 Standard banner size for an InMobi ad, 320x50 pixels.
static int INMOBI_AD_UNIT_480x75 = 16
 Full banner size.

Properties

string DisplayText [get, set]
 Set the default text. Default text is visibile only in design mode.
int AdSize [get, set]
 Size the ad will be rendered when the ad is received from the InMobi ad server.
string AppId [get, set]
 Site 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.
string RefTag [get, set]
 Referral Tag to send to the ad server for differentiating IMAdview objects on a page.
IMAdRequest IMAdRequest [get, set]
 Gets or sets the IMAdRequest AdView.
int RefreshInterval [get, set]
 Gets or Sets the RefreshInterval value, which cannot be less than 20 seconds. By default, the refresh interval is set to 60 seconds. Setting a new valid refresh interval value will start the auto refresh of Ad if it is not already started. Use IMAdView.REFRESH_INTERVAL_OFF to switch off the auto refresh. When auto refresh turned off, use LoadNewAd() method to manually load new Ad.
IMAdAnimationType AnimationType [get, set]
 Gets or sets the animation to display when a new Ad is loadedd.
string AdTextColor [get, set]
 Gets or sets the Foreground color of Text Ad Valid RGB color e.g #fff or #AABBCC.
string AdBackgroundColor [get, set]
 Gets or sets the Background color of Text Ad alid RGB color e.g #fff or #AABBCC.

Events

AdRequestSuccessHandler AdRequestLoaded
 Occurs when an Adview is successfully loaded.
AdRequestErrorHandler AdRequestFailed
 Occurs when an Adview failed to get an Ad.
EventHandler ShowFullAdScreen
 Occurs when opening the full screen Ad.
EventHandler DismissFullAdScreen
 Occurs when the full screen ad has been closed.
EventHandler LeaveApplication
 Occurs when control is moving out of the application.

Detailed Description

Control that displays a banner or text ad from the InMobi ad server. This control will automatically refresh the Ad after interval set by RefreshInterval property.


Constructor & Destructor Documentation

Constructor to create an instance of IMAdView.

InMobi.WpSdk.IMAdView.IMAdView ( string  AppId,
int  AdSize 
)

Constructor to create an instance of IMAdView by passing ApplicationId and AdSize.

Parameters:
AppIdApplication ID of the application registered with InMobi
AdSizeValid AdSlot size of Ad

Member Function Documentation

Load a new ad into the IMAdView.

Parameters:
adRequestIMAdRequest to set for the IMAdView

Load a new ad into the IMAdView.

void InMobi.WpSdk.IMAdView.SetAdBackgroundGradientColor ( string  TopColor,
string  BottomColor 
)

Sets the Background Gradient of Text Ad Valid RGB color e.g #fff or #AABBCC.


Member Data Documentation

Skyscraper size for an InMobi Ad, 120x600 pixels.

Medium Rectangle size for an InMobi Ad, 300x250 pixels.

Rectangle size for an inmobi ad, 320x48 pixels Deprecated This slot will be removed in a future release. Use INMOBI_AD_UNIT_320X50 instead.

Standard banner size for an InMobi ad, 320x50 pixels.

Full banner size for an InMobi Ad, 468x60 pixels.

Full banner size.

Leaderboard size for an InMobi ad, 728x90 pixels, designed for Landscape mode.


Property Documentation

Gets or sets the Background color of Text Ad alid RGB color e.g #fff or #AABBCC.

Size the ad will be rendered when the ad is received from the InMobi ad server.

Size of the ad that will be rendered when the ad is received from the InMobi ad server.

Gets or sets the Foreground color of Text Ad Valid RGB color e.g #fff or #AABBCC.

Gets or sets the animation to display when a new Ad is loadedd.

string InMobi.WpSdk.IMAdView.AppId [get, set]

Site 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.

Set the default text. Default text is visibile only in design mode.

Gets or sets the IMAdRequest AdView.

Gets or Sets the RefreshInterval value, which cannot be less than 20 seconds. By default, the refresh interval is set to 60 seconds. Setting a new valid refresh interval value will start the auto refresh of Ad if it is not already started. Use IMAdView.REFRESH_INTERVAL_OFF to switch off the auto refresh. When auto refresh turned off, use LoadNewAd() method to manually load new Ad.

string InMobi.WpSdk.IMAdView.RefTag [get, set]

Referral Tag to send to the ad server for differentiating IMAdview objects on a page.


Event Documentation

Occurs when an Adview failed to get an Ad.

Occurs when an Adview is successfully loaded.

Occurs when the full screen ad has been closed.

Occurs when control is moving out of the application.

Occurs when opening the full screen Ad.

 All Classes Namespaces Functions Variables Enumerations Properties Events