: t' u+ K0 T! t3 n这是Campaign列表页,因为还没有上线跑过,所以更多的数据没有展示出来,今天晚上我会新建一个popads广告,用来测试并填充数据。 5 F' z" u9 m4 f( r4 A ( G% L$ A6 o* z5 c o " ~) u7 U' k: d& B# B$ o% i! f i; Z# P! F+ V8 _6 q
新建Campaign的表单,目前我选择了popads 3个参数,所以我这边也只传递3个参数过来。这个地方需要填写你追踪系统的地址。% V. l: _; n2 Z+ g
) G. t$ R# ~1 ^ O; B- |# g; R5 U6 g$ p: q
( `/ G; v8 t' ~2 J( n操作按钮,view reports界面就先不放出来了,没有数据空荡荡的,等我跑完广告再上这个界面。( [, i, F* Y) X+ O+ ~ a
6 U g% O' q- s3 [# Z! V7 B
1 k2 w" z, a1 r& a: d) a4 f2 r" f% f# b* y# x3 U
最终生成的广告地址,我没有做缩短链接处理,直接新注册了一个域名用来做这个系统,减少dns请求以及跳转次数,提高系统的响应速度。3 T2 }( @3 U, \9 L2 }
8 m" j3 b0 G- {( Y4 s$ x, x; U! p2 F
% N. H; @ l. \. m+ A) r6 g, D
" J5 D' ^+ |8 D这个代码用来检测用户行为并且与我们的系统进行通讯,必须安装到所有能访问的页面,以提高数据准确性。 7 s0 }' o# |9 y$ l, h9 N. h7 g% W4 S% K 5 X- [! y% a& S$ n - H, ]; U1 d5 s* Z' H以上就是今天完成的内容,明天继续更新。 5 m1 }! z) m# `& ~+ X: Q) B" J5 f6 x6 ~' d
3 N9 ^9 Q, L2 T. a% n% w5 q
2 L* w6 i! D" c- J0 \以下为开发工具的原因 $ Q+ B) W1 ?6 I------------------------------- ! a5 f3 N u! |业务需要,去popads买了一堆流量, ( K5 F$ z) V( b2 B结果效果奇差无比,看了一下统计,二次访问连千分之一的比例都没有。 1 q4 m" j% \& U | # b1 S% L$ i# \; b3 m) e基本上都是一些垃圾流量、或者是刷的流量。& B( }. T) z& O# ]
# t6 {* @5 u1 f6 R. s8 O3 q
所以我需要一个识别popads假流量的东西,然后输出可疑的websiteID,方便我屏蔽这些网站。 % W) S4 t+ T( t5 r! ?& G" s3 F. z2 E5 y* a/ j
我本来想去搭建一个im或者买一个voluum,但是我只需要单一的功能,所以打算自己做一个。 ! E- P# d( g X6 E! @$ U$ I : b! u& d g" l& ]+ p- S, }我看到popads提供如下参数 + F) ^7 ^, J! f% Z, p$ l' h2 Q" P/ R7 n) z* c
[WEBSITEID] - ID of the website that was source of the popunder, / @. T* K6 y: a" C9 u/ x# {* z [CATEGORYID] - ID of the category of traffic source website,9 G9 w _4 V) J' L3 O' {
[CATEGORYNAME] - Name of the category of traffic source website,% _' B+ D; d! N" P" S+ ?6 @
[ISPID] - ID of ISP of visitor, + B! _& A9 a, e1 v; G0 v: Y5 O [ISPNAME] - Name of ISP of visitor, ) g: E+ h" h9 i" Q [COUNTRY] - country of the visitor., Y! U0 T6 E9 P9 ~. j
[QUALITY] - Quality score of the website from which the impression orignated. It is a number, from 1 to 10, where 1 means lowest quality website (All websites) and 10 means highest quality website (top 10% of our publisher websites), 2 n" H7 f7 E' t; B [BID] - price of the impression. - z$ ], \4 K0 d6 N3 H3 n [SCREENRESOLUTION] - Detected screen resolution of the visitor,$ M3 o* p5 y) C' Y
[OSNAME] - Operating System name, for example Windows 8.1,+ R% m$ }" e$ `6 e8 _
[BROWSERNAME] - Browser name, for example Firefox 32, " R+ {' v* x+ h. H u [FORMFACTORNAME] - Form factor name, for example Smartphone or Tablet, ! E. v7 n# O. j& c' n9 {& ?# n [DEVICENAME] - Name of the device that visitor uses to browse the Internet, for example Apple iPhone,' d* L M- h8 K1 U8 ~* B
[CAMPAIGNID] - ID of campaign,& u1 Z+ Q' L- I( L5 ~9 V# _
[CAMPAIGNNAME] - Name of campaign, 0 ?4 @8 h# l) o1 k j- q. G3 M [OSID] - ID of Operating System (for future use), , \4 E( \6 Q8 L [BROWSERID] - ID of Browser (for future use), $ m `7 ?/ i; a9 v [FORMFACTORID] - ID of Form Factor (for future use),$ t- L" }& x. {# o& I% G
[DEVICEID] - ID of Device (for future use),. w, ?5 P" K6 e
[IMPRESSIONID] - unique ID of the impression. This can be used for troubleshooting/debugging process in case of traffic mistargeting as well as for conversion tracking (S2S). ' \7 Q! X/ |% \2 V [ADBLOCK] - is set to 1 when visitor uses AdBlock or 0 otherwise,, n3 s' x4 z J$ p$ c6 ^
[IP] - IP address of the visitor (used for XML feeds), 1 M% O) l, ?4 e! j/ h4 I [USERAGENT] - value of User-Agent header of the visitor (used for XML feeds)," u+ D- r D3 R6 ?9 t N( g% I
[LANG] - value of Accept-Language header of the visitors (used for XML feeds). ) v/ S) H# A8 l% [! j9 h 9 i- w6 p8 F* v- V! C6 |" c i A# G' a1 @$ }4 D我设想是 在popads设置广告地址为我系统的地址,将以上参数全部传递给我,我通过技术手段识别出质量差的网站id,然后输出到我的后台。3 P2 v7 n# x3 M5 \( i2 p2 H
% S0 d/ r" j% M" o) c
然后我就可以在popads内屏蔽网站id了。2 J, X( J0 o" F: a( U, l% c) J
& V5 W! `& j$ `% s2 u/ E
不知道这样的东西你们需要不?" n8 S# J$ S6 ^; R& A9 B+ f
+ x( j% |. }+ g+ l% k ^
如果有开发建议的话可以加我qq 76762,提供建议的朋友免费开放给你使用。 % v/ z: g. V2 J- |) w+ k3 V7 L" ~ ( Y( r% q# S% K, m, X. |; G/ m6 ` t
3 U5 a F4 D, n2 s7 w# J4 r / i& U+ t4 y3 n3 @3 _ 8 t" W5 y0 a) \/ p0 U* p