Android Coupang Network Ad Block Guide[ENG] - bidmad/Bidmad-Android GitHub Wiki

Ad Blocking Interface Guide (AOS)

 This guide provides information on how to use the ad block status information interface. When an app user clicks on a Coupang ad, it changes to an ad block state for a set period of time. BidmadSDK provides a status property (status) and callback (AdFreeEventListener) to deliver the status information to the SDK user. BidmadSDK does not block ads, and ad block functionality must be implemented by the SDK user.  If you would like to set up ad block, please contact the TechLabs Platform Division operations team.

Implementation of ad block

Check if ads are blocked

Before receiving the callback as shown below, you can check the status of ad blocking through the following interface.

AdFreeInformation adFreeInformation = AdFreeInformation.getInstance();
if(adFreeInformation.getAdFreeStatus()){
    // ad block

}else {
    // ad not block
}

Callback implementation

You need to set up a listener to get a callback when the ad blocking status changes.

adFreeInformation.setOnAdFreeListener(new AdFreeInformation.AdFreeEventListener() {
    @Override
    public void onAdStatus(boolean isFree) {
        // Receive ad block status isFree.
    }
}