You can configure the shake and twist functionality for certain ad networks through code.
SDK version >= v6.4.90 supports this feature
Supported Ad Networks | Supported Ad Formats | NetworkFirmID | Default Status |
---|---|---|---|
CSJ | All | 15 | Enabled |
Tencent Ad (GDT) | All | 8 | Enabled |
Kuaishou | Splash, Native | 28 | Enabled |
Tanx | All | 82 | Disabled |
Qumeng | All | 74 | Enabled |
Sigmob | All | 29 | Enabled |
Meishu | All | 93 | Enabled |
Taku ADX | All | 66 | Enabled |
Cross Promotion | All | 35 | Enabled |
Direct Ad | All | 67 | Enabled |
Note: Custom ad networks do not support this feature
#import <AnyThinkSDK/AnyThinkSDK.h>
[[ATSDKGlobalSetting sharedManager] setNetworkSensorType: networkSensorList:];
after SDK initialization[[ATSDKGlobalSetting sharedManager] setNetworkSensorType: networkSensorList:];
, the default values of ad networks will be usedNote: The following code operations only take effect for ad sources within the supported scope
[[ATSDKGlobalSetting sharedManager] setNetworkSensorType:ATNetworkSensorTypeForbidAll networkSensorList:nil];
[[ATSDKGlobalSetting sharedManager] setNetworkSensorType:ATNetworkSensorTypeAllowAll networkSensorList:nil];
- For NetworkFirmID passed in the networkSensorList parameter, please refer to the table above. Those passed in represent enabled, while those not passed in are disabled
- This example represents enabling only Pangle (NetworkFirmID==15) and Tencent Ad GDT (NetworkFirmID==8), while disabling other platforms
[[ATSDKGlobalSetting sharedManager] setNetworkSensorType:ATNetworkSensorTypeAllowNetwork networkSensorList:@[@(15),@(8)]];
For default values, please check the table above
[[ATSDKGlobalSetting sharedManager] setNetworkSensorType:ATNetworkSensorTypeDefaultNetwork networkSensorList:nil];