InMobi Windows Store App Ad SDK
 All Classes Namespaces Functions Variables Enumerations Properties Events
Public Member Functions | Public Attributes | Properties | Events | List of all members
InMobi.W8.AdSDK.IMAdView Class Reference

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

Inheritance diagram for InMobi.W8.AdSDK.IMAdView:

Public Member Functions

 IMAdView ()
 Constructor to create an instance of IMAdView
 
 IMAdView (string AppId, int AdSize)
 Constructor to create an instance of IMAdView by passsing the InMobi ApplicationId and AdSize
 
void LoadNewAd ()
 Loads new Ad into the IMAdView control
 
void LoadNewAd (IMAdRequest imAdRequest)
 Loads new ad into the IMAdView control with the specified IMAdrequest properties
 
void StopLoading ()
 This method Aborts the Request sent
 
void SetAdBackgroundGradientColor (string TopColor, string BottomColor)
 Sets the Background Gradient of Text Ad Valid RGB color e.g #fff or #AABBCC
 

Public Attributes

const 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.
 
const int INMOBI_AD_UNIT_300X250 = 10
 Medium Rectangle size for an InMobi Ad, 300x250 pixels
 
const int INMOBI_AD_UNIT_728x90 = 11
 Leaderboard size for an InMobi ad, 728x90 pixels, designed for Landscape mode
 
const int INMOBI_AD_UNIT_468x60 = 12
 Full banner size for an InMobi Ad, 468x60 pixels
 
const int INMOBI_AD_UNIT_120x600 = 13
 Skyscraper size for an InMobi Ad, 120x600 pixels
 
const int INMOBI_AD_UNIT_320X50 = 15
 Standard banner size for an InMobi ad, 320x50 pixels
 
const int INMOBI_AD_UNIT_480x75 = 21
 Full banner size
 
const int INMOBI_AD_UNIT_500x130 = 27
 Split View Banner size for an InMobi ad, 500x130 pixels
 
const int INMOBI_AD_UNIT_292x60 = 28
 Snap View Banner size for an InMobi ad, 292x60 pixels
 
const int INMOBI_AD_UNIT_250x250 = 29
 Square View Banner size for an InMobi ad, 250x250 pixels.
 
const int INMOBI_AD_UNIT_250x125 = 30
 Half tile Banner size for an InMobi ad, 250x125 pixels.
 

Properties

string AppId [get, set]
 Application 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
 
int AdSize [get, set]
 Size of the ad that will be rendered when the ad is received from the InMobi ad server.
 
IMAdRequest IMAdRequest [get, set]
 Gets or sets the IMAdRequest
 
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

EventHandler OnAdRequestLoaded
 Occurs when Adview is Successfully loaded.
 
AdRequestErrorHandler OnAdRequestFailed
 Occurs when Adview fails to get an Ad.
 
EventHandler OnShowAdScreen
 Occurs when opening the full screen Ad.
 
EventHandler OnDismissAdScreen
 Occurs when the full screen Ad has been closed
 
EventHandler OnLeaveApplication
 Occurs when control is moving out of the application
 

Detailed Description

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

Constructor & Destructor Documentation

InMobi.W8.AdSDK.IMAdView.IMAdView ( )

Constructor to create an instance of IMAdView

InMobi.W8.AdSDK.IMAdView.IMAdView ( string  AppId,
int  AdSize 
)

Constructor to create an instance of IMAdView by passsing the InMobi ApplicationId and AdSize

Parameters
AppIdApplicationId of the application registered with InMobi
AdSizeValid AdSlot size for Ad/param>

Member Function Documentation

void InMobi.W8.AdSDK.IMAdView.LoadNewAd ( )

Loads new Ad into the IMAdView control

void InMobi.W8.AdSDK.IMAdView.LoadNewAd ( IMAdRequest  imAdRequest)

Loads new ad into the IMAdView control with the specified IMAdrequest properties

Parameters
adRequestIMAdRequest to set for the IMAdView
void InMobi.W8.AdSDK.IMAdView.SetAdBackgroundGradientColor ( string  TopColor,
string  BottomColor 
)

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

void InMobi.W8.AdSDK.IMAdView.StopLoading ( )

This method Aborts the Request sent

Member Data Documentation

const int InMobi.W8.AdSDK.IMAdView.INMOBI_AD_UNIT_120x600 = 13

Skyscraper size for an InMobi Ad, 120x600 pixels

const int InMobi.W8.AdSDK.IMAdView.INMOBI_AD_UNIT_250x125 = 30

Half tile Banner size for an InMobi ad, 250x125 pixels.

const int InMobi.W8.AdSDK.IMAdView.INMOBI_AD_UNIT_250x250 = 29

Square View Banner size for an InMobi ad, 250x250 pixels.

const int InMobi.W8.AdSDK.IMAdView.INMOBI_AD_UNIT_292x60 = 28

Snap View Banner size for an InMobi ad, 292x60 pixels

const int InMobi.W8.AdSDK.IMAdView.INMOBI_AD_UNIT_300X250 = 10

Medium Rectangle size for an InMobi Ad, 300x250 pixels

const int InMobi.W8.AdSDK.IMAdView.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.

const int InMobi.W8.AdSDK.IMAdView.INMOBI_AD_UNIT_320X50 = 15

Standard banner size for an InMobi ad, 320x50 pixels

const int InMobi.W8.AdSDK.IMAdView.INMOBI_AD_UNIT_468x60 = 12

Full banner size for an InMobi Ad, 468x60 pixels

const int InMobi.W8.AdSDK.IMAdView.INMOBI_AD_UNIT_480x75 = 21

Full banner size

const int InMobi.W8.AdSDK.IMAdView.INMOBI_AD_UNIT_500x130 = 27

Split View Banner size for an InMobi ad, 500x130 pixels

const int InMobi.W8.AdSDK.IMAdView.INMOBI_AD_UNIT_728x90 = 11

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

Property Documentation

string InMobi.W8.AdSDK.IMAdView.AdBackgroundColor
getset

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

int InMobi.W8.AdSDK.IMAdView.AdSize
getset

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

string InMobi.W8.AdSDK.IMAdView.AdTextColor
getset

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

IMAdAnimationType InMobi.W8.AdSDK.IMAdView.AnimationType
getset

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

string InMobi.W8.AdSDK.IMAdView.AppId
getset

Application 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

IMAdRequest InMobi.W8.AdSDK.IMAdView.IMAdRequest
getset

Gets or sets the IMAdRequest

int InMobi.W8.AdSDK.IMAdView.RefreshInterval
getset

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.W8.AdSDK.IMAdView.RefTag
getset

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

Event Documentation

AdRequestErrorHandler InMobi.W8.AdSDK.IMAdView.OnAdRequestFailed

Occurs when Adview fails to get an Ad.

EventHandler InMobi.W8.AdSDK.IMAdView.OnAdRequestLoaded

Occurs when Adview is Successfully loaded.

EventHandler InMobi.W8.AdSDK.IMAdView.OnDismissAdScreen

Occurs when the full screen Ad has been closed

EventHandler InMobi.W8.AdSDK.IMAdView.OnLeaveApplication

Occurs when control is moving out of the application

EventHandler InMobi.W8.AdSDK.IMAdView.OnShowAdScreen

Occurs when opening the full screen Ad.