| | |
| | | private Activity context; |
| | | boolean hasAd; |
| | | String adPid; |
| | | String adType; |
| | | String notifyDesc; |
| | | String notifyUrl; |
| | | int platform; |
| | |
| | | return this; |
| | | } |
| | | |
| | | public Builder setAdPid(String pid) { |
| | | public Builder setAdInfo(String type, String pid) { |
| | | this.adType=type; |
| | | this.adPid = pid; |
| | | return this; |
| | | } |
| | |
| | | } |
| | | }); |
| | | //填充广告 |
| | | new ExpressAdManager(AdUtil.AD_TYPE.gdt2, context).loadGoodsJumpLoadingAd("", new ExpressAdManager.IAdLoadListener() { |
| | | new ExpressAdManager(AdUtil.AD_TYPE.valueOf(adType), context).loadGoodsJumpLoadingAd(adPid, new ExpressAdManager.IAdLoadListener() { |
| | | @Override |
| | | public void onSuccess(List<ExpressAdContainer> adList) { |
| | | if (adList != null && adList.size() > 0) { |