CUID Setting Guide[ENG] - bidmad/Bidmad-Android GitHub Wiki

CUID Setting Guide

CUID is a unique user identifier set by the app owner. Pass your CUID to Bidmad for better data accuracy and targeting.


Precautions when sending CUID

To protect the privacy of app users, configure CUIDs to exclude information that can directly identify users. You must not include email address, name, phone number, or Social Security number.

Also, it is recommended to use hashing of SHA256 or higher when configuring the CUID to be sent to Bidmad.


Development

Configure the CUID before calling the load function and set it through the setCUID function. setCUID is provided in each ad type class. For details, check Reference.

  • Example 1 (2.X.X Ver )
    BidmadRewardAd mReward = new BidmadRewardAd(this,"YOUR ZONE ID");

    ...

    mReward.setCUID(SHA256.encrypt("CUIDTEXT"));

    mReward.load();
  • Example 2 (3.X.X Ver ) You can use Cuid value as User identifier in the server-side callback.
    BidmadRewardAd mReward = new BidmadRewardAd(this,"YOUR ZONE ID");

    ...
	
	AdOption adOpt = AdOption.getInstance();  
	// adOpt.setUseServerSideCallback(true); (Optional)
	adOpt.setCuid(SHA256.encrypt("CUIDTEXT"));

    mReward.load();