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...
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. |
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 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.
AppId | Application ID of the application registered with InMobi |
AdSize | Valid AdSlot size of Ad |
void InMobi.WpSdk.IMAdView.LoadNewAd | ( | IMAdRequest | adRequest | ) |
Load a new ad into the IMAdView.
adRequest | IMAdRequest to set for the IMAdView |
void InMobi.WpSdk.IMAdView.LoadNewAd | ( | ) |
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.
int InMobi.WpSdk.IMAdView.INMOBI_AD_UNIT_120x600 = 13 [static] |
Skyscraper size for an InMobi Ad, 120x600 pixels.
int InMobi.WpSdk.IMAdView.INMOBI_AD_UNIT_300X250 = 10 [static] |
Medium Rectangle size for an InMobi Ad, 300x250 pixels.
int InMobi.WpSdk.IMAdView.INMOBI_AD_UNIT_320X48 = 9 [static] |
Rectangle size for an inmobi ad, 320x48 pixels Deprecated This slot will be removed in a future release. Use INMOBI_AD_UNIT_320X50 instead.
int InMobi.WpSdk.IMAdView.INMOBI_AD_UNIT_320X50 = 15 [static] |
Standard banner size for an InMobi ad, 320x50 pixels.
int InMobi.WpSdk.IMAdView.INMOBI_AD_UNIT_468x60 = 12 [static] |
Full banner size for an InMobi Ad, 468x60 pixels.
int InMobi.WpSdk.IMAdView.INMOBI_AD_UNIT_480x75 = 16 [static] |
Full banner size.
int InMobi.WpSdk.IMAdView.INMOBI_AD_UNIT_728x90 = 11 [static] |
Leaderboard size for an InMobi ad, 728x90 pixels, designed for Landscape mode.
string InMobi.WpSdk.IMAdView.AdBackgroundColor [get, set] |
Gets or sets the Background color of Text Ad alid RGB color e.g #fff or #AABBCC.
int InMobi.WpSdk.IMAdView.AdSize [get, set] |
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.
string InMobi.WpSdk.IMAdView.AdTextColor [get, set] |
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.
string InMobi.WpSdk.IMAdView.DisplayText [get, set] |
Set the default text. Default text is visibile only in design mode.
IMAdRequest InMobi.WpSdk.IMAdView.IMAdRequest [get, set] |
Gets or sets the IMAdRequest AdView.
int InMobi.WpSdk.IMAdView.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.
string InMobi.WpSdk.IMAdView.RefTag [get, set] |
Referral Tag to send to the ad server for differentiating IMAdview objects on a page.
Occurs when an Adview failed to get an Ad.
Occurs when an Adview is successfully loaded.
EventHandler InMobi.WpSdk.IMAdView.DismissFullAdScreen |
Occurs when the full screen ad has been closed.
EventHandler InMobi.WpSdk.IMAdView.LeaveApplication |
Occurs when control is moving out of the application.
EventHandler InMobi.WpSdk.IMAdView.ShowFullAdScreen |
Occurs when opening the full screen Ad.