API control for enabling/disabling shake ads is now supported. For details, please refer to Shake Configuration
Currently, Adx, Baidu, CSJ, TencentGDT, and Kuaishou have launched native feed shake ads
Ad Platform | Platform Permission Required | Taku SDK Version Requirement | Taku Backend Configuration | Notes |
---|---|---|---|---|
Adx | Required | Taku SDK v6.2.85 and above | None | Contact Taku operations to enable |
Baidu | Required | Taku SDK v6.2.60 and above | None | Refer to code settings below for integration |
Kuaishou | Required | Taku iOS SDK v6.4.56 and above | Yes | Click here to view. After enabling shake, you need to add shake icon manually. |
CSJ | Open by default. Can be enabled when creating native feed | None | None | View |
TencentGDT | Required | None | None | Contact GDT to obtain |
(1) You need to apply to the ad platform for native feed self-rendering shake ad feature permissions and third-party ad placement IDs with this functionality.
(2) Your app needs to add shake interaction for native feeds. When using third-party ad placements that support shake, native feed ads must display "shake" interaction. Otherwise, when users shake their phones without seeing "shake" related prompts, it will trigger ad platform clicks and redirects, which does not comply with regulatory compliance requirements. Shake interaction can refer to Pangle's example:
(3) If the shake interaction display area can trigger ad clicks, the recommended text configuration is Click or shake to jump to details page or third-party app 4. Add traffic groups in Taku backend (using app version rules), and add third-party ad placement IDs that support shake functionality for app versions that already support native feed "shake" interaction 5. Please contact the ad platform AM to adjust shake sensitivity configuration
When using ad platforms' native feed self-rendering shake functionality, your app needs to add shake interaction. It is recommended that you only configure corresponding third-party ad placement IDs for apps that support native feed shake interaction. If you use corresponding third-party ad placement IDs on apps that do not support native feed shake interaction, your app will not comply with regulatory compliance requirements.
You can use Taku's traffic groups to configure corresponding third-party ad placement IDs for app versions that support native feed shake interaction.
(1) When using Kuaishou native feed self-rendering shake functionality, you need to turn on the shake switch when adding Kuaishou native feed ad sources
(2) If your account doesn't have this switch, please contact Taku to enable it.
(1) Baidu shake View requires developers to call code to render it to the layout to trigger shake. Sample code is as follows:
//Self-rendering ad display, call rendering
[offer rendererWithConfiguration:config selfRenderView:selfRenderView nativeADView:nativeADView];
// Shake
UIView *shakeView;
if (Enable shake) {
shakeView = [nativeADView getNetworkShakeViewWithFrame:CGRectMake(kScreenW * 0.5 - 50, 175, 100, 80)];
shakeView.tag = 999999;
shakeView.layer.masksToBounds = YES;
[nativeADView addSubview:shakeView];
} else if (Enable slide) {
// Slide
BaiduMobAdNativeSlideView *slideView = (BaiduMobAdNativeSlideView *)[nativeADView getNetworkSlideViewWithFrame:CGRectMake(0, 0, 100, 80) repeat:-1 animationWidth:100 animationHeight:80];
slideView.delegate = self;
slideView.tag = 12345678;
[nativeADView addSubview:slideView];
[slideView startSlideAnimation];
}
......
//After nativeADView object is added to superView
if ([shakeView isKindOfClass:[BaiduMobAdNativeShakeView class]]) {
BaiduMobAdNativeShakeView *baiduMobAdNativeShakeView = (BaiduMobAdNativeShakeView *)shakeView;
[baiduMobAdNativeShakeView startShake];
}
Tip: CSJ, TencentGDT, and Kuaishou platforms do not require additional code settings for shake View. Adx will render shake View by default, and you can also control the shake View position through the above code