UnityAdlib
|
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] |
ErrorType Tizen.AdLib.AdProvider.AddBannerAd | ( | BannerAdSize | size, |
out IntPtr | adhandle | ||
) |
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. |
ErrorType Tizen.AdLib.AdProvider.AddInterstitialAd | ( | ) |
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. |
ErrorType Tizen.AdLib.AdProvider.BannerAdDestroy | ( | IntPtr | handle | ) |
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. |
ErrorType Tizen.AdLib.AdProvider.BannerAdEnableAutoRefresh | ( | IntPtr | handle, |
bool | value | ||
) |
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. |
ErrorType Tizen.AdLib.AdProvider.BannerAdLoad | ( | IntPtr | handle | ) |
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. |
ErrorType Tizen.AdLib.AdProvider.BannerAdMove | ( | IntPtr | handle, |
int | xpos, | ||
int | ypos | ||
) |
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. |
ErrorType Tizen.AdLib.AdProvider.BannerAdSetPosition | ( | IntPtr | handle, |
BannerAdPosition | pos | ||
) |
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. |
ErrorType Tizen.AdLib.AdProvider.BannerAdSetRefreshInterval | ( | IntPtr | handle, |
int | duration | ||
) |
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. |
ErrorType Tizen.AdLib.AdProvider.BannerAdSetVisibility | ( | IntPtr | handle, |
bool | value | ||
) |
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. |
ErrorType Tizen.AdLib.AdProvider.DeinitAdlib | ( | ) |
Disconnects adlib core and clears networkconnection.
ErrorType Tizen.AdLib.AdProvider.InitAdlib | ( | string | banner_site_id, |
string | interstitial_site_id, | ||
string | js_namespace, | ||
string | js_src_url, | ||
string | conf_str | ||
) |
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. |
ErrorType Tizen.AdLib.AdProvider.InterstitialAdLoad | ( | ) |
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. |
ErrorType Tizen.AdLib.AdProvider.InterstitialAdShow | ( | ) |
Shows the interstitial ad.
ADLIB_AD_NO_ERROR | Success. |
ADLIB_AD_INTERNAL_ERROR | Internal error. |
void Tizen.AdLib.AdProvider.SetAge | ( | int | age | ) |
Preference API to set age
[in] | age | :age as integer |
void Tizen.AdLib.AdProvider.SetAreaCode | ( | string | areacode | ) |
Preference API to set area code
[in] | areacode | :areacode as string |
ErrorType Tizen.AdLib.AdProvider.SetBannerAdListener | ( | IntPtr | handle, |
BannerAdListener | appListener | ||
) |
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. |
void Tizen.AdLib.AdProvider.SetDateOfBirth | ( | string | dob | ) |
Preference API to set DateofBirth
[in] | dob | :date of birth as string in YYYY:MM:DD format |
void Tizen.AdLib.AdProvider.SetEducation | ( | string | education | ) |
Preference API to set education
[in] | education | :education as string |
void Tizen.AdLib.AdProvider.SetEthnicity | ( | string | ethnicity | ) |
Preference API to set ethnicity
[in] | ethnicity | :asian or hispanic |
void Tizen.AdLib.AdProvider.SetGender | ( | GenderPreference | gender | ) |
Preference API to set the Gender
[in] | gender | : Female or Male |
void Tizen.AdLib.AdProvider.SetIncome | ( | string | income | ) |
Preference API to set income
[in] | income | :income as string |
void Tizen.AdLib.AdProvider.SetInterests | ( | string | interests | ) |
Preference API to set interests
[in] | interests | :interests as comma separated strings |
ErrorType Tizen.AdLib.AdProvider.SetInterstitialAdListener | ( | InterstitialAdListener | appListener | ) |
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. |
void Tizen.AdLib.AdProvider.SetLocation | ( | string | location | ) |
Preference API to set location
[in] | location | :location as string in City-State-Country format |
void Tizen.AdLib.AdProvider.SetPostalcode | ( | string | postalcode | ) |
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.