Adlib
|
Data Structures | |
struct | banner_ad_event_cb |
Banner ad event callbacks. More... | |
struct | interstitial_ad_event_cb |
Interstitial ad event callbacks. More... | |
Typedefs | |
typedef struct _banner_addata | banner_ad_h |
Banner ad handle for handling banner ads. More... | |
typedef enum _adlib_err | adlib_err |
Enumeration for the error codes of adlib. More... | |
typedef enum adlib_event_type | adlib_event_type_e |
Enumeration for the event types of adlib. More... | |
typedef enum _adlib_state_type | adlib_state_type_e |
Enumeration for the state types of adlib. More... | |
typedef enum _adlib_gender | adlib_gender_e |
Enumeration for the gender used in adlib. More... | |
typedef void(* | on_banner_request_succeeded_event_cb) (Evas_Object *banner_ad_obj, void *user_data) |
Called when the banner ad load is succeeded. More... | |
typedef void(* | on_banner_request_failed_event_cb) (Evas_Object *banner_ad_obj, adlib_err err, void *user_data) |
Called when the banner ad load is failed. More... | |
typedef void(* | on_banner_ad_opened_event_cb) (Evas_Object *banner_ad_obj, void *user_data) |
Called when the banner ad is clicked. More... | |
typedef void(* | on_interstitial_request_succeeded_event_cb) (void *user_data) |
Called when the interstitial ad load is succeeded. More... | |
typedef void(* | on_interstitial_request_failed_event_cb) (adlib_err err, void *user_data) |
Called when the interstitial ad load is failed. More... | |
typedef void(* | on_interstitial_ad_opened_event_cb) (void *user_data) |
Called when the interstitial ad is clicked. More... | |
typedef void(* | on_interstitial_ad_closed_event_cb) (void *user_data) |
Called when the interstitial ad is closed. More... | |
typedef struct banner_ad_event_cb | banner_ad_event_callback_s |
Banner ad event callbacks. More... | |
typedef struct interstitial_ad_event_cb | interstitial_ad_event_callback_s |
Interstitial ad event callbacks. More... | |
Enumerations | |
enum | _adlib_err { ADLIB_AD_NO_ERROR, ADLIB_AD_INTERNAL_ERROR = 1, ADLIB_AD_ADLIB_NOT_INITIALIZED, ADLIB_AD_INVALID_AD_HANDLE, ADLIB_AD_INVALID_PARAMETERS, ADLIB_AD_INVALID_REQUEST, ADLIB_AD_NETWORK_ERROR, ADLIB_AD_NO_FILL_ERROR } |
Enumeration for the error codes of adlib. More... | |
enum | adlib_event_type { ADLIB_AD_EVENT_REQUEST_FAILED, ADLIB_AD_EVENT_REQUEST_SUCCESS, ADLIB_AD_EVENT_AD_OPENED, ADLIB_AD_EVENT_AD_CLOSED } |
Enumeration for the event types of adlib. More... | |
enum | _adlib_state_type { ADLIB_APP_NONE_STATE, ADLIB_APP_PAUSE_STATE, ADLIB_APP_RESUME_STATE } |
Enumeration for the state types of adlib. More... | |
enum | _adlib_gender { ADLIB_AD_GENDER_FEMALE, ADLIB_AD_GENDER_MALE } |
Enumeration for the gender used in adlib. More... | |
Functions | |
EXPORT_API adlib_err | adlib_init (const char *banner_site_id, const char *interstitial_site_id, const char *js_namespace, const char *js_src_url, const char *ad_conf_str_name) |
Initializes adlib and its core. More... | |
EXPORT_API void | adlib_deinit () |
Disconnects adlib core and clears networkconnection. More... | |
EXPORT_API void | adlib_set_age (int age) |
Set the user's age for targeting purposes. More... | |
EXPORT_API void | adlib_set_gender (adlib_gender_e gender) |
Set the user's gender for targeting purposes. More... | |
EXPORT_API void | adlib_set_location (char *location) |
Set the user's location for targeting purposes. More... | |
EXPORT_API void | adlib_set_interests (char *interests) |
Set the user's interests for targeting purposes. More... | |
EXPORT_API void | adlib_set_postal_code (char *postalCode) |
Set the user's postal code for targeting purposes. More... | |
EXPORT_API void | adlib_set_area_code (char *areaCode) |
Set the user's area code for targeting purposes. More... | |
EXPORT_API void | adlib_set_date_of_birth (char *dob) |
Set the user's date of birth for targeting purposes. More... | |
EXPORT_API void | adlib_set_income (char *income) |
Set the user's income group for targeting purposes. More... | |
EXPORT_API void | adlib_set_education (char *education) |
Set the user's education for targeting purposes. More... | |
EXPORT_API void | adlib_set_ethnicity (char *ethnicity) |
Set the user's ethnicity for targeting purposes. More... | |
typedef enum _adlib_err adlib_err |
Enumeration for the error codes of adlib.
typedef enum adlib_event_type adlib_event_type_e |
Enumeration for the event types of adlib.
typedef enum _adlib_gender adlib_gender_e |
Enumeration for the gender used in adlib.
typedef enum _adlib_state_type adlib_state_type_e |
Enumeration for the state types of adlib.
typedef struct banner_ad_event_cb banner_ad_event_callback_s |
Banner ad event callbacks.
typedef struct _banner_addata banner_ad_h |
Banner ad handle for handling banner ads.
typedef struct interstitial_ad_event_cb interstitial_ad_event_callback_s |
Interstitial ad event callbacks.
typedef void(* on_banner_ad_opened_event_cb) (Evas_Object *banner_ad_obj, void *user_data) |
Called when the banner ad is clicked.
[in] | banner_ad_obj | banner ad object to be used for this ad instance. |
[in] | user_data | The user data passed from the callback registration function |
typedef void(* on_banner_request_failed_event_cb) (Evas_Object *banner_ad_obj, adlib_err err, void *user_data) |
Called when the banner ad load is failed.
[in] | banner_ad_obj | banner ad object to be used for this ad instance. |
[in] | err | The error code which provides failure details |
[in] | user_data | The user data passed from the callback registration function |
typedef void(* on_banner_request_succeeded_event_cb) (Evas_Object *banner_ad_obj, void *user_data) |
Called when the banner ad load is succeeded.
[in] | banner_ad_obj | banner ad object to be used for this ad instance. |
[in] | user_data | The user data passed from the callback registration function |
typedef void(* on_interstitial_ad_closed_event_cb) (void *user_data) |
Called when the interstitial ad is closed.
[in] | user_data | The user data passed from the callback registration function |
typedef void(* on_interstitial_ad_opened_event_cb) (void *user_data) |
Called when the interstitial ad is clicked.
[in] | user_data | The user data passed from the callback registration function |
typedef void(* on_interstitial_request_failed_event_cb) (adlib_err err, void *user_data) |
Called when the interstitial ad load is failed.
[in] | err | The error code which provides failure details |
[in] | user_data | The user data passed from the callback registration function |
typedef void(* on_interstitial_request_succeeded_event_cb) (void *user_data) |
Called when the interstitial ad load is succeeded.
[in] | user_data | The user data passed from the callback registration function |
enum _adlib_err |
Enumeration for the error codes of adlib.
enum _adlib_gender |
enum _adlib_state_type |
enum adlib_event_type |
EXPORT_API void adlib_deinit | ( | ) |
Disconnects adlib core and clears networkconnection.
EXPORT_API adlib_err adlib_init | ( | const char * | banner_site_id, |
const char * | interstitial_site_id, | ||
const char * | js_namespace, | ||
const char * | js_src_url, | ||
const char * | ad_conf_str_name | ||
) |
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 the application. |
[in] | ad_conf_str_name | Ad Conf name provided for the application. |
ADLIB_AD_NO_ERROR | Success. |
ADLIB_AD_INTERNAL_ERROR | Internal error. |
ADLIB_AD_INVALID_PARAMETERS | Invalid parameter. |
EXPORT_API void adlib_set_age | ( | int | age | ) |
Set the user's age for targeting purposes.
[in] | age | The input age given as preference for fetching ads from server. |
EXPORT_API void adlib_set_area_code | ( | char * | areaCode | ) |
Set the user's area code for targeting purposes.
[in] | areaCode | The input areaCode given as preference for fetching ads from server. |
EXPORT_API void adlib_set_date_of_birth | ( | char * | dob | ) |
Set the user's date of birth for targeting purposes.
[in] | dob | The input date of birth given as preference for fetching ads from server. |
EXPORT_API void adlib_set_education | ( | char * | education | ) |
Set the user's education for targeting purposes.
[in] | education | The input education given as preference for fetching ads from server. |
EXPORT_API void adlib_set_ethnicity | ( | char * | ethnicity | ) |
Set the user's ethnicity for targeting purposes.
[in] | ethnicity | The input ethnicity given as preference for fetching ads from server. |
EXPORT_API void adlib_set_gender | ( | adlib_gender_e | gender | ) |
Set the user's gender for targeting purposes.
[in] | gender | The input gender given as preference for fetching ads from server. |
EXPORT_API void adlib_set_income | ( | char * | income | ) |
Set the user's income group for targeting purposes.
[in] | income | The input income given as preference for fetching ads from server. |
EXPORT_API void adlib_set_interests | ( | char * | interests | ) |
Set the user's interests for targeting purposes.
[in] | interests | The input interests given as preference for fetching ads from server. |
EXPORT_API void adlib_set_location | ( | char * | location | ) |
Set the user's location for targeting purposes.
[in] | location | The input location given as preference for fetching ads from server. |
EXPORT_API void adlib_set_postal_code | ( | char * | postalCode | ) |
Set the user's postal code for targeting purposes.
[in] | postalCode | The input postalCode given as preference for fetching ads from server. |