Menu

Shake Configuration

1. Shake Configuration Feature Description

You can configure the shake and twist functionality for certain ad networks through code.

SDK version >= v6.4.90 supports this feature

2. Support Scope

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

3. Usage Steps

  1. Import header file #import <AnyThinkSDK/AnyThinkSDK.h>
  2. Call [[ATSDKGlobalSetting sharedManager] setNetworkSensorType: networkSensorList:]; after SDK initialization
  3. If you don't call [[ATSDKGlobalSetting sharedManager] setNetworkSensorType: networkSensorList:];, the default values of ad networks will be used

4. Sample Code

Note: The following code operations only take effect for ad sources within the supported scope

4.1 Disable All

objc Copy
[[ATSDKGlobalSetting sharedManager] setNetworkSensorType:ATNetworkSensorTypeForbidAll networkSensorList:nil];

4.2 Enable All

objc Copy
[[ATSDKGlobalSetting sharedManager] setNetworkSensorType:ATNetworkSensorTypeAllowAll networkSensorList:nil];

4.3 Enable Some, Disable Others

  • 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
objc Copy
[[ATSDKGlobalSetting sharedManager] setNetworkSensorType:ATNetworkSensorTypeAllowNetwork networkSensorList:@[@(15),@(8)]];

4.4 Use Ad Network Default Values

For default values, please check the table above

objc Copy
[[ATSDKGlobalSetting sharedManager] setNetworkSensorType:ATNetworkSensorTypeDefaultNetwork networkSensorList:nil];
Previous
One-Click Mute
Next
Privacy Policy
Last modified: 2025-08-07Powered by