Reward Video Ad奖励视频

Vungle的奖励广告是全屏视频广告。在播放完毕广告后,会自动跳转到落地页。在落地页用户可点击跳转到商店下载广告应用或游戏。

请求广告


NSError* error;
VungleSDK* sdk = [VungleSDK sharedSDK];
[sdk loadPlacementWithID:"YOUR_RWARD_PLACEMENT_ID" error:&error];

播放广告


VungleSDK* sdk = [VungleSDK sharedSDK];
// 静音播放
// sdk.muted = true;
if([sdk isAdCachedForPlacementID:@"YOUR_RWARD_PLACEMENT_ID"]){
    NSError* error;
    [sdk playAd:self options:nil placementID:@"YOUR_RWARD_PLACEMENT_ID" error:&error];
    if (error) {
        NSLog(@"Error encountered playing ad: %@", error);
    }
}
这篇文章有帮助吗?

Questions?

Need further assistance, feel free to reach out to us, we’re here to help!