0 }: F8 v% Z% D$ O8 ]这是Campaign列表页,因为还没有上线跑过,所以更多的数据没有展示出来,今天晚上我会新建一个popads广告,用来测试并填充数据。. d e- G' }- e9 Y/ E/ s
1 N2 b0 ]; b$ k* E( d3 f+ n) i! p! ~8 M: h0 L# W
" b9 o$ Z+ r' u' C3 Z0 f+ A2 z
新建Campaign的表单,目前我选择了popads 3个参数,所以我这边也只传递3个参数过来。这个地方需要填写你追踪系统的地址。 - l9 V0 ^3 \/ l. c: I 6 a0 m2 i/ Z" s. {$ K2 z; g1 d! M# h f; E8 a, b
( t- q+ `& z. m2 b1 r2 O* o% L操作按钮,view reports界面就先不放出来了,没有数据空荡荡的,等我跑完广告再上这个界面。 1 g5 b W/ Z2 [% g+ D" z2 ~$ I' J
6 G ?' n# ]' h! B* e+ I
) v- [# c+ U1 }7 @. h4 U; ?# d# l
最终生成的广告地址,我没有做缩短链接处理,直接新注册了一个域名用来做这个系统,减少dns请求以及跳转次数,提高系统的响应速度。 9 @5 f% W0 i$ b9 ]; K# L7 t! ]! f5 J$ o6 L4 f7 G& t2 P; L; y
, a) S$ J2 |; E5 J+ y4 j
7 R2 v* w, G6 U: R; c6 N
这个代码用来检测用户行为并且与我们的系统进行通讯,必须安装到所有能访问的页面,以提高数据准确性。5 \ h; ]0 s1 K9 t3 E6 c z
9 Y- f' m6 m. p- ~/ e* g
+ `7 n: W# \. q. n
以上就是今天完成的内容,明天继续更新。 1 V# m) J# E% y# ]" ?5 \, D7 N7 v( k
5 e/ W6 r' x. F/ |) n' v& @ - M* M6 K( C: c. i以下为开发工具的原因! _* w, |8 c# `7 u3 f2 v9 y
-------------------------------, d) {- _ o; Q) P$ f
业务需要,去popads买了一堆流量,$ z; s O/ g+ U6 W, Z4 |* Z9 A
结果效果奇差无比,看了一下统计,二次访问连千分之一的比例都没有。. Y* C k7 W! U8 f# a4 a
# `, \- U4 {# ]+ D+ g基本上都是一些垃圾流量、或者是刷的流量。 7 j' ~5 C; O/ c' |6 G/ A : j4 a6 d6 [6 R3 ] \$ U, U所以我需要一个识别popads假流量的东西,然后输出可疑的websiteID,方便我屏蔽这些网站。 3 h' K) v* G5 C, v ' v. ~# S6 E' o1 z我本来想去搭建一个im或者买一个voluum,但是我只需要单一的功能,所以打算自己做一个。: \1 O$ S7 H7 h; j* }5 B& x6 m
6 z( }. L/ l. D! ^
我看到popads提供如下参数, Q& O4 e3 P+ N$ P( L. Y0 C- T
" K4 r% w- B' y [WEBSITEID] - ID of the website that was source of the popunder,7 y- G. a9 w }% v
[CATEGORYID] - ID of the category of traffic source website, . X3 J( ~2 H7 Q% k [CATEGORYNAME] - Name of the category of traffic source website,) n. a$ ?5 I" R2 a" g
[ISPID] - ID of ISP of visitor, " Y! _5 a8 H) H. ^' w$ C" Y8 ] [ISPNAME] - Name of ISP of visitor,; a6 S9 R( r2 l; I
[COUNTRY] - country of the visitor./ L; h( Q% G' G! W2 Y5 h
[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), + P3 r9 l& B$ Q# u! ?% r& C) D [BID] - price of the impression. ! m7 S# x& F! w! a7 a3 O, o [SCREENRESOLUTION] - Detected screen resolution of the visitor, 9 p& L& p Y. T [OSNAME] - Operating System name, for example Windows 8.1, 9 q e- Z* ^, A! W& y% y, P [BROWSERNAME] - Browser name, for example Firefox 32,5 U- K. N: W; O; k b
[FORMFACTORNAME] - Form factor name, for example Smartphone or Tablet, & R, j3 s! K5 i# N: @ [DEVICENAME] - Name of the device that visitor uses to browse the Internet, for example Apple iPhone, 9 q. F! ` \9 F* [& | [CAMPAIGNID] - ID of campaign,. k4 J6 m1 W+ G/ N. E" w& f
[CAMPAIGNNAME] - Name of campaign, * Y4 `' H5 V1 O6 r; E# f4 O [OSID] - ID of Operating System (for future use), - @9 w! T* Z8 v9 X) I [BROWSERID] - ID of Browser (for future use), $ H$ z, Y) ]8 k/ c' K: w F! X [FORMFACTORID] - ID of Form Factor (for future use),- x# u) @# i+ e# f
[DEVICEID] - ID of Device (for future use),+ l% O7 B+ q0 J8 l( A0 {
[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).( r- O$ J. T% m4 B( K3 w
[ADBLOCK] - is set to 1 when visitor uses AdBlock or 0 otherwise,0 K9 |7 b; ]* ?/ Z1 }3 Q, S
[IP] - IP address of the visitor (used for XML feeds),; M6 E8 x+ ~& Y6 T
[USERAGENT] - value of User-Agent header of the visitor (used for XML feeds), 8 J8 a# d/ E( A( f+ V" `8 Y [LANG] - value of Accept-Language header of the visitors (used for XML feeds).0 f# L2 T) s4 a: [9 f4 F. k
/ M9 p9 i2 z" Z+ F0 U
8 N: B1 q% {! q: G
我设想是 在popads设置广告地址为我系统的地址,将以上参数全部传递给我,我通过技术手段识别出质量差的网站id,然后输出到我的后台。 s/ F& R( c ^
( D& M7 L% p4 q) a1 R- g
然后我就可以在popads内屏蔽网站id了。1 W/ P1 {& q6 f" f. b7 N