Menu

Filter ad sources

You can pass the list of ad sources to be filtered for this request through the API before calling the Load method for a placement. The ad sources in this list will be filtered during ad loading. The specific configuration is as follows:

Copy
// Filter the loading of a specific ad source within the placement ID
[[ATAdManager sharedManager] setExludePlacementid:@"you placement id" unitIDArray:@[@"3628" ]];

// Filter the loading of ads from certain platforms within the placement ID
[[ATAdManager sharedManager] setExludePlacementid:@"you placement id" networkFirmIDArray:@[@(ATNetworkFirmIDTypeFacebook),
                                                                                                 @(ATNetworkFirmIDTypeAdmob),
                                                                                                 @(ATNetworkFirmIDTypeCSJ)]];

Notes:

  1. unitID is your ad source ID in the TopOn dashboard, as shown in the image: Article Image

  2. networkFirmID is defined in the ATAPI header file. Please go to the ATNetworkFirmIDType enum in ATAPI.h to view the mapping. For Swift projects, please first <span class="s1"><strong>import</strong></span> AnyThinkSDK, then click into import AnyThinkSDK.ATAPI to view the definition of this enum.

    For Custom Adapters, you need to go to Dashboard -> Left Menu -> Ad Networks to view the ad network ID (i.e., networkFirmID).

Previous
Filter cross-promotion apps
Next
One-Click Mute
Last modified: 2026-07-08Powered by