The vmaxsdk class provides global settings through which you can enable various features.
Targeting
The VMAX SDK allows you to pass extra data to identify users for serving targeted campaign ads. For example, if your app users sign in using an email address, you can send this information to the server and create a campaign to target only specific user email addresses with ads.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
vmaxsdk *vmax_sdk = vmaxsdk::shared_instance(); vmax_sdk->set_user_city("<USER_CITY>"); vmax_sdk->set_user_email("<USER_EMAIL>"); vmax_sdk->set_login_id("<LOGIN_ID>"); //possible values //vmax_age_18to24, vmax_age_25to34, vmax_age_35to44, vmax_age_45to54, vmax_age_55to64, vmax_age_above65 vmax_sdk->set_user_age(vmaxsdk::vmax_age_18to24); //possible values //vmax_user_male, vmax_user_female vmax_sdk->set_user_gender(vmaxsdk::vmax_user_female); //To set whether user did InApp Purchase vmax_sdk->set_user_did_iap(true); //To set whether user did Incent offers vmax_sdk->set_user_did_incent(true); |
Note: If invalid data is passed in any of the above parameters the SDK would ignore the data.