|
Adlib
|
Public Member Functions | |
| ErrorType | InitAdlib (string banner_site_id, string interstitial_site_id, string js_namespace, string js_src_url, string conf_str) |
| ErrorType | DeinitAdlib () |
| void | SetGender (GenderPreference gender) |
| void | SetEthnicity (string ethnicity) |
| void | SetAge (int age) |
| void | SetDateOfBirth (string dob) |
| void | SetIncome (string income) |
| void | SetEducation (string education) |
| void | SetLocation (string location) |
| void | SetInterests (string interests) |
| void | SetPostalcode (string postalcode) |
| void | SetAreaCode (string areacode) |
| ErrorType | SetBannerAdListener (IntPtr handle, BannerAdListener appListener) |
| ErrorType | AddBannerAd (BannerAdSize size, out IntPtr adhandle) |
| ErrorType | BannerAdLoad (IntPtr handle) |
| ErrorType | BannerAdSetPosition (IntPtr handle, BannerAdPosition pos) |
| ErrorType | BannerAdMove (IntPtr handle, int xpos, int ypos) |
| ErrorType | BannerAdSetVisibility (IntPtr handle, bool value) |
| ErrorType | BannerAdDestroy (IntPtr handle) |
| ErrorType | BannerAdEnableAutoRefresh (IntPtr handle, bool value) |
| ErrorType | BannerAdSetRefreshInterval (IntPtr handle, int duration) |
| ErrorType | AddInterstitialAd () |
| ErrorType | SetInterstitialAdListener (InterstitialAdListener appListener) |
| ErrorType | InterstitialAdLoad () |
| ErrorType | InterstitialAdShow () |
Properties | |
| static AdProvider | Instance [get] |
|
inline |
This api will add the banner ad on the parent received.
| [out] | adhandle | : banner ad handle to be used for this ad instance. |
| [in] | size | : size of the ad to be shown. |
| ADLIB_AD_NO_ERROR | Success. |
| ADLIB_AD_INVALID_PARAMETERS | Invalid parameter. |
| ADLIB_AD_ADLIB_NOT_INITIALIZED | If adlib is not initialised. i.e adlib_init() not called. |
|
inline |
This api will add the interstitial ad on the parent received.
| ADLIB_AD_NO_ERROR | Success. |
| ADLIB_AD_INTERNAL_ERROR | Internal error. |
| ADLIB_AD_INVALID_PARAMETERS | Invalid parameter. |
| ADLIB_AD_ADLIB_NOT_INITIALIZED | If adlib is not initialised. i.e adlib_init() not called. |
|
inline |
To delete the banner ad from a view. Application can delete the banner ad while exiting from a view or use visibility option to reuse the same in other views.
| [in] | handle | : banner ad handle to be used for this ad instance. |
| ADLIB_AD_NO_ERROR | Success. |
| ADLIB_AD_INVALID_AD_HANDLE | Invalid Handle passed. |
| ADLIB_AD_INTERNAL_ERROR | Internal error. |
|
inline |
This api will set the auto refresh feature to either enabled or disabled. If set to disabled ads will not refresh automatically and the app needs to call adview_banner_load for loading a new ad.
| [in] | handle | : banner ad handle to be used for this ad instance. |
| [in] | value | : Boolean to enable or disable auto refresh feature. |
| ADLIB_AD_NO_ERROR | Success. |
| ADLIB_AD_INVALID_AD_HANDLE | Invalid Handle passed. |
|
inline |
Loads and shows the ad. Returns the success or failure result to the listener callbacks.
| [in] | handle | : banner ad handle to be used for this ad instance. |
| ADLIB_AD_NO_ERROR | Success. |
| ADLIB_AD_INVALID_AD_HANDLE | Invalid Handle passed. |
|
inline |
Move the position of the ad to relative coordinates. Application can set the position of the ad to the relative screen coordinates (x, y) position
| [in] | handle | : banner ad handle to be used for this ad instance. |
| [in] | xpos | x coordinate position |
| [in] | ypos | y coordinate position |
| ADLIB_AD_NO_ERROR | Success. |
| ADLIB_AD_INVALID_AD_HANDLE | Invalid Handle passed. |
| ADLIB_AD_INTERNAL_ERROR | Internal error. |
|
inline |
Sets the position of the ad to predefined positions. Application can set the position of the ad to the predefined positions defined in adlib_adposition_e
| [in] | handle | : banner ad handle to be used for this ad instance. |
| [in] | pos | position of the ad |
| ADLIB_AD_NO_ERROR | Success. |
| ADLIB_AD_INVALID_AD_HANDLE | Invalid Handle passed. |
| ADLIB_AD_INTERNAL_ERROR | Internal error. |
|
inline |
This api will set the auto refresh interval for the ad. Minimum refresh interval should be greater than 10 secs.
| [in] | handle | : banner ad handle to be used for this ad instance. |
| [in] | duration | : Refresh interval value should be >= 10. |
| ADLIB_AD_NO_ERROR | Success. |
| ADLIB_AD_INVALID_AD_HANDLE | Invalid Handle passed. |
| ADLIB_AD_INVALID_PARAMETERS | Invalid parameter. |
|
inline |
Sets the visibility of the ad. Application can set the visibility of the ad according to success or failure events and also during navigating between views.
| [in] | handle | : banner ad handle to be used for this ad instance. |
| [in] | value | True to Show and False to Hide |
| ADLIB_AD_NO_ERROR | Success. |
| ADLIB_AD_INVALID_AD_HANDLE | Invalid Handle passed. |
| ADLIB_AD_INTERNAL_ERROR | Internal error. |
|
inline |
Disconnects adlib core and clears networkconnection.
|
inline |
Initializes adlib and its core.
| [in] | banner_site_id | : site id provided for the application by Inmobi during registration for banner ads. |
| [in] | interstitial_site_id | : site id provided for the application by Inmobi during registration for interstitial ads. |
| [in] | js_namespace | namespace provided for the application |
| [in] | js_src_url | source url provided for inmobijs to the application |
| [in] | conf_str | inmobi configuration string provided for the application |
| ADLIB_AD_NO_ERROR | Success. |
| ADLIB_AD_INTERNAL_ERROR | Internal error. |
| ADLIB_AD_INVALID_PARAMETERS | Invalid parameter. |
|
inline |
Loads the interstitial ad. Returns the success or failure result to the listener callbacks. Please see OnLoadFailed and OnLoadSucceeded callbacks.
| ADLIB_AD_NO_ERROR | Success. |
| ADLIB_AD_INTERNAL_ERROR | Internal error. |
|
inline |
Shows the interstitial ad.
| ADLIB_AD_NO_ERROR | Success. |
| ADLIB_AD_INTERNAL_ERROR | Internal error. |
|
inline |
Preference API to set age
| [in] | age | :age as integer |
|
inline |
Preference API to set area code
| [in] | areacode | :areacode as string |
|
inline |
Adds the banner ad callback handler.
| [in] | handle | : banner ad handle to be used for this ad instance. |
| [in] | appListener | : The set of listener functions to handle ad lifecycle events |
| ADLIB_AD_NO_ERROR | Success. |
| ADLIB_AD_INVALID_AD_HANDLE | Invalid Handle passed. |
| ADLIB_AD_INVALID_PARAMETERS | Invalid parameter. |
|
inline |
Preference API to set DateofBirth
| [in] | dob | :date of birth as string in YYYY:MM:DD format |
|
inline |
Preference API to set education
| [in] | education | :education as string |
|
inline |
Preference API to set ethnicity
| [in] | ethnicity | :asian or hispanic |
|
inline |
Preference API to set the Gender
| [in] | gender | : Female or Male |
|
inline |
Preference API to set income
| [in] | income | :income as string |
|
inline |
Preference API to set interests
| [in] | interests | :interests as comma separated strings |
|
inline |
Adds the interstitial ad callback handler.
| [in] | appListener | : The set of callback functions to handle ad lifecycle events |
| ADLIB_AD_NO_ERROR | Success. |
| ADLIB_AD_INTERNAL_ERROR | Internal error. |
| ADLIB_AD_INVALID_PARAMETERS | Invalid parameter. |
| ADLIB_AD_ADLIB_NOT_INITIALIZED | If adlib is not initialised. i.e adlib_init() not called. |
|
inline |
Preference API to set location
| [in] | location | :location as string in City-State-Country format |
|
inline |
Preference API to set postal code
| [in] | postalcode | :postal code as string |
|
staticget |
Returns the AdProvider instance on which application has to call member functions.
1.8.11