Skip to content

Commit

Permalink
编写百度开屏注释
Browse files Browse the repository at this point in the history
  • Loading branch information
fengchuanxiang committed May 21, 2016
1 parent de7e7a5 commit f1ce35c
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,27 @@ FCXDefine里面写了一些常用的宏定义,FCXCategory文件夹有常用的


##开屏广告
全开屏导入`AppDelegate+GS.h、AppDelegate+GS.m`文件;半开屏导入`AppDelegate+HalfGS.h、AppDelegate+HalfGS.m`文件,然后在`setupS`函数修改里面两个地方:
##百度开屏
导入`AppDelegate+BS.h、AppDelegate+BS.m`文件;然后在`setupS``publisherId`函数修改里面三个个地方:
* 1.修改时间(这个时间每次提交AppStore都要修改,时间修改为审核提交日往后退15天),这里的时间是为了用户第一次下载启动时获取不了友盟参数,这时默认不显示开屏广告,为了收益在获取不到参数时显示开屏.
```objc
showSplash = ([currentDateString compare:@"2016-04-26"] == NSOrderedDescending);
```
* 2.修改相应的AdUnitTag.
```objc
splash.AdUnitTag = [FCXOnlineConfig fcxGetConfigParams:@"BD_AdID" defaultValue:@"2058492"];
```

* 3.修改相应的publisherId.
```objc
return [FCXOnlineConfig fcxGetConfigParams:@"BD_AppID" defaultValue:@"ccb60059"];
```
##广点开屏
全开屏导入`AppDelegate+GS.h、AppDelegate+GS.m`文件;半开屏导入`AppDelegate+HalfGS.h、AppDelegate+HalfGS.m`文件,然后在`setupS`函数修改里面两个地方:
* 1.修改时间(这个时间每次提交AppStore都要修改,时间修改为审核提交日往后退15天),这里的时间是为了用户第一次下载启动时获取不了友盟参数,这时默认不显示开屏广告,为了收益在获取不到参数时显示开屏.
```objc
showSplash = ([currentDateString compare:@"2016-04-26"] == NSOrderedDescending);
```
* 2.修改相应的appKey、placementId.
```objc
Expand Down

0 comments on commit f1ce35c

Please sign in to comment.