场景化广告

声景化广告由SDK去加载H5的小游戏,广告展示也是由H5与SDK的交互调用,只需要入口进入界面就行。

创建UNADGameViewController

  self.gameViewController =  [[UNADGameViewController alloc]initWithUnitID:UNAD_TEST_UNIT_ID];

            __weak __typeof(self)weakSelf = self;
//如果游戏场景中需要微信登录,由APP去登录微信后,返回微信的ID给SDK.
            self.gameViewController.wxLoginBlock = ^{
                [weakSelf.gameViewController testWxLoginCallBack:@"8821"];
            };

            self.gameViewController.modalPresentationStyle = UIModalPresentationFullScreen;
            [self presentViewController:self.gameViewController animated:YES completion:nil];

results matching ""

    No results matching ""