Plista广告对接

public static class Plista extends Nt_ClientBean<Base_Bean>{
                         /**
                         *
@param
lis             回调监听
                         */
                        
public Plista(String imei , Nt_HttpLinstener lis){
                                    String code = DesUtil.
randomNum()
;

//                                  url="http://farm.plista.com/api/recommendation/39382/app_android?publickey=8fcc74b1ebda9e955540b7fe&widgetname=app_android&count=4&adcount=2&objectid=398397&clientid="+imei;
                                    
url = "http://farm.plista.com/recommendation/?publickey=8fcc74b1ebda9e955540b7fe&widgetname=app_android&count=4&adcount=2&objectid=398397&clientid=357748050299729" ;
                                    
httptype = PLISTA ;
                                    
cls =Base_Bean. class;
                                    
linstener =lis ;

                        
}
            }
client .addHeader( "Accept" , "application/json" ) ;

<div data-widget= "plista_widget_mobile" style= " float:left; " ></div>

<script type= "text/javascript" >
           
if (!window.PLISTA || !PLISTA.publickey) {
                window.PLISTA = {
                    publickey: '8fcc74b1ebda9e955540b7fe',
                    item: {
                        objectid: "401064", //unique ID, alphanumeric 1137092b50
                        title: "今年65家上市公司遭交易所处分 公开谴责后一年内不得增发", //max 255 characters
                        text: "今年9月份的数据显示,两市共计11家公司以及相关当事人受到处分,而去年同期仅有4家深市上市公司受处分", //max 255 characters
                        url: "http://m.jiemian.com/article/401064.html", //max 1024 characters
                        img: "http://img.jiemian.com/101/original/20151011/144453691150927000_a290x166.jpg", //max 255 characters
                        category: '市场特写',
                        created_at: 1400000000 //UNIX timestamp
                    }
                };
                (function(){var n='script',d=document,s=d.createElement(n),s0=d.getElementsByTagName(n)[0];s.async='async';s.type='text/javascript';s.src=
(d.location.protocol==='https:'?'https:':'http:')+'//static.plista.com/async.js';s0.parentNode.insertBefore(s,s0)}());
            }
        //if possible place this script tag just before the closing body tag
            </script>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值