43 #include <Elementary.h> 290 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);
void(* on_interstitial_request_failed_event_cb)(adlib_err err, void *user_data)
Called when the interstitial ad load is failed.
Definition: adlib.h:221
enum _adlib_err adlib_err
Enumeration for the error codes of adlib.
EXPORT_API adlib_err adview_banner_ad_register_callbacks(Evas_Object *banner_ad_obj, banner_ad_event_callback_s *callback, void *user_data)
Adds the banner ad callback handler.
EXPORT_API void adlib_set_gender(adlib_gender_e gender)
Set the user's gender for targeting purposes.
enum _adlib_state_type adlib_state_type_e
Enumeration for the state types of adlib.
EXPORT_API void adlib_set_ethnicity(char *ethnicity)
Set the user's ethnicity for targeting purposes.
_adlib_gender
Enumeration for the gender used in adlib.
Definition: adlib.h:104
struct _banner_addata banner_ad_h
Banner ad handle for handling banner ads.
Definition: adlib.h:59
_banner_adposition
Enumeration for the position to set in banner ads.
Definition: adlib.h:123
on_interstitial_request_failed_event_cb interstitial_ad_load_request_failed
Definition: adlib.h:268
enum _banner_adposition banner_adposition_e
Enumeration for the position to set in banner ads.
EXPORT_API adlib_err adview_interstitial_show(void)
Shows the interstitial ad.
adlib_event_type
Enumeration for the event types of adlib.
Definition: adlib.h:81
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.
EXPORT_API adlib_err adview_banner_set_refresh_interval(Evas_Object *banner_ad_obj, double duration)
This api will set the auto refresh interval for the ad. Minimum refresh interval should be greater th...
EXPORT_API void adlib_set_date_of_birth(char *dob)
Set the user's date of birth for targeting purposes.
void(* on_interstitial_ad_opened_event_cb)(void *user_data)
Called when the interstitial ad is clicked.
Definition: adlib.h:235
_adlib_state_type
Enumeration for the state types of adlib.
Definition: adlib.h:93
struct interstitial_ad_event_cb interstitial_ad_event_callback_s
Interstitial ad event callbacks.
void(* on_interstitial_request_succeeded_event_cb)(void *user_data)
Called when the interstitial ad load is succeeded.
Definition: adlib.h:207
void(* on_banner_ad_opened_event_cb)(Evas_Object *banner_ad_obj, void *user_data)
Called when the banner ad is clicked.
Definition: adlib.h:194
EXPORT_API void adlib_set_education(char *education)
Set the user's education for targeting purposes.
EXPORT_API void adlib_set_location(char *location)
Set the user's location for targeting purposes.
enum adlib_event_type adlib_event_type_e
Enumeration for the event types of adlib.
_banner_ad_size
Enumeration for the size to set in banner ads.
Definition: adlib.h:138
on_interstitial_ad_opened_event_cb interstitial_ad_opened
Definition: adlib.h:269
void(* on_interstitial_ad_closed_event_cb)(void *user_data)
Called when the interstitial ad is closed.
Definition: adlib.h:248
EXPORT_API void adlib_set_income(char *income)
Set the user's income group for targeting purposes.
enum _adlib_gender adlib_gender_e
Enumeration for the gender used in adlib.
on_interstitial_ad_closed_event_cb interstitial_ad_closed
Definition: adlib.h:270
enum _banner_ad_size banner_ad_size_e
Enumeration for the size to set in banner ads.
void(* on_banner_request_succeeded_event_cb)(Evas_Object *banner_ad_obj, void *user_data)
Called when the banner ad load is succeeded.
Definition: adlib.h:165
EXPORT_API void adlib_set_interests(char *interests)
Set the user's interests for targeting purposes.
on_banner_request_failed_event_cb banner_ad_load_request_failed
Definition: adlib.h:257
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.
Definition: adlib.h:180
EXPORT_API void adlib_deinit()
Disconnects adlib core and clears networkconnection.
on_banner_request_succeeded_event_cb banner_ad_load_request_succeeded
Definition: adlib.h:256
Banner ad event callbacks.
Definition: adlib.h:254
_adlib_err
Enumeration for the error codes of adlib.
Definition: adlib.h:65
EXPORT_API void adlib_set_area_code(char *areaCode)
Set the user's area code for targeting purposes.
EXPORT_API adlib_err adview_add_interstitial_ad(Evas_Object *eo)
This api will add the interstitial ad on the parent received.
EXPORT_API void adlib_set_postal_code(char *postalCode)
Set the user's postal code for targeting purposes.
EXPORT_API adlib_err adview_banner_ad_set_position(Evas_Object *banner_ad_obj, banner_adposition_e pos)
Sets the position of the ad. Application can set the position of the ad to the predefined positions d...
EXPORT_API void adlib_set_age(int age)
Set the user's age for targeting purposes.
EXPORT_API adlib_err adview_interstitial_load(void)
Loads the interstitial ad. Returns the success or failure result to the listener callbacks. Please see OnLoadFailed and OnLoadSucceeded callbacks.
on_interstitial_request_succeeded_event_cb interstitial_ad_load_request_succeeded
Definition: adlib.h:267
on_banner_ad_opened_event_cb banner_ad_opened
Definition: adlib.h:258
struct banner_ad_event_cb banner_ad_event_callback_s
Banner ad event callbacks.
EXPORT_API adlib_err adview_banner_load(Evas_Object *banner_ad_obj)
Loads and shows the ad. Returns the success or failure result to the listener callbacks.
Interstitial ad event callbacks.
Definition: adlib.h:265
EXPORT_API adlib_err adview_banner_set_enable_auto_refresh(Evas_Object *banner_ad_obj, Eina_Bool enable)
This api will set the auto refresh feature to either enabled or disabled. If set to disabled ads will...
EXPORT_API adlib_err adview_add_banner_ad(Evas_Object **banner_ad_obj, Evas_Object *eo, banner_ad_size_e size)
This api will add the banner ad on the parent received.
EXPORT_API adlib_err adview_interstitial_ad_register_callbacks(interstitial_ad_event_callback_s *callback, void *user_data)
Adds the interstitial ad callback handler.