-
示例
-
配置
-
导入aar open_ad_sdk.aar 下载open_ad_sdk
-
根目录build.gradle maven配置 查看
-
项目build.gradle implementation 'com.yc.adsdk:aar:1.0.0'
-
AndroidManifest.xml 权限配置 查看
-
-
代码
- 生成对象
- AdPlatformSDK adPlatformSDK = AdPlatformSDK.getInstance(this);
- 设置默认广告默认值
- adPlatformSDK.setAdConfigInfo()
- 初始化
- adPlatformSDK.init()
- 调用广告
- 开屏
- adPlatformSDK.showSplashAd()
- 信息流
- adPlatformSDK.showExpressAd()
- 横屏
- adPlatformSDK.showBannerAd()
- 激励视频
- 竖屏
- adPlatformSDK.showRewardVideoVerticalAd()
- 横屏
- adPlatformSDK.showRewardVideoHorizontalAd()
- 竖屏
- 全屏视频
- 竖屏
- adPlatformSDK.showFullScreenVideoVerticalAd()
- 横屏
- adPlatformSDK.showFullScreenVideoHorizontalAd()
- 竖屏
- 插屏
- adPlatformSDK.showInsertAd()
- 开屏
- 生成对象