) _# H* o) M$ ]* W! N) g. {; O 7 r; P" L5 s# W! G) }; R/ x% S/ a最终生成的广告地址,我没有做缩短链接处理,直接新注册了一个域名用来做这个系统,减少dns请求以及跳转次数,提高系统的响应速度。0 E+ W! s1 f* }8 L. S, v: `4 `
- `. k1 o5 j8 @6 m6 V9 b
/ S7 x, Y1 S( s9 \9 A6 X
8 N; t# L7 E, @0 Y7 a: S
这个代码用来检测用户行为并且与我们的系统进行通讯,必须安装到所有能访问的页面,以提高数据准确性。% t# V; E8 X+ {+ O+ Z
. V/ o! L5 K; R6 Y, `% s \ + O; [7 G. ]2 P3 T! l; `以上就是今天完成的内容,明天继续更新。1 v- _: a3 ]6 ^1 N1 ~5 y+ F
0 Q9 X( Q1 u5 }) V
" l* i2 M. I, U- x( z6 ^
' r% v7 A1 T% l1 F
以下为开发工具的原因 , z% g) ~2 E5 D* k2 _3 R: \, |" `8 Y) e------------------------------- 0 d% u# {8 L4 s业务需要,去popads买了一堆流量,6 M; i& j, N+ _+ g V$ m5 [ h
结果效果奇差无比,看了一下统计,二次访问连千分之一的比例都没有。 1 ]( _; ?3 T' c0 v9 I5 g5 H 8 \' y# V; k8 i% [, t# z @基本上都是一些垃圾流量、或者是刷的流量。 * M; Q; F- ^4 N7 h3 M$ n- f% ~" I8 k$ K$ k2 n' [" S
所以我需要一个识别popads假流量的东西,然后输出可疑的websiteID,方便我屏蔽这些网站。 - o1 p0 \" ~. }" f8 j' f9 V- y. J! n8 R2 s# e- v* N# y
我本来想去搭建一个im或者买一个voluum,但是我只需要单一的功能,所以打算自己做一个。0 c" ~' y" ~2 F0 N- C9 e
3 v6 G# J# R! L9 \' k8 R
我看到popads提供如下参数 % @% x9 ^- ~9 H8 y' D [+ g6 W+ q1 H8 r/ U7 S
[WEBSITEID] - ID of the website that was source of the popunder,, f9 W/ @! a/ Y" U: f8 n& K
[CATEGORYID] - ID of the category of traffic source website,/ Z. b! w G3 E1 h/ D
[CATEGORYNAME] - Name of the category of traffic source website, * M( y$ A9 A& l/ ~$ Y: l+ q1 X [ISPID] - ID of ISP of visitor,7 I( Y4 F$ N1 b3 r5 e# v
[ISPNAME] - Name of ISP of visitor, : x0 h$ j$ q9 p/ I [COUNTRY] - country of the visitor.' `# q; \7 p; {
[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), h; u0 k' O2 ~ B1 { [BID] - price of the impression. i- k7 g& Z) p: B/ ]3 C [SCREENRESOLUTION] - Detected screen resolution of the visitor, : O* X; [- m$ C( x [OSNAME] - Operating System name, for example Windows 8.1,# s7 l+ T% s0 C) L
[BROWSERNAME] - Browser name, for example Firefox 32, ' B* {2 e" _7 W4 X9 |" U [FORMFACTORNAME] - Form factor name, for example Smartphone or Tablet, % m G4 X2 B, h1 T+ W [DEVICENAME] - Name of the device that visitor uses to browse the Internet, for example Apple iPhone,$ R9 b( ]. Q: u! M
[CAMPAIGNID] - ID of campaign, 8 ~3 h9 J# J) U! |2 T [CAMPAIGNNAME] - Name of campaign, & C3 p/ v2 A! R3 r [OSID] - ID of Operating System (for future use), K( i$ D3 Q/ [6 ?. ?
[BROWSERID] - ID of Browser (for future use), $ A3 G7 W( k) q( o8 j) q1 z: T, u& F8 V [FORMFACTORID] - ID of Form Factor (for future use), 0 `: L ?! t0 ` [DEVICEID] - ID of Device (for future use), , ^, C8 a. y9 o' o/ [ [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). 2 _: ?3 I, [2 O# }7 H M- Y [ADBLOCK] - is set to 1 when visitor uses AdBlock or 0 otherwise,0 Z' {9 _' U% k# I, Q
[IP] - IP address of the visitor (used for XML feeds), 2 c+ w* j+ ]5 V1 Q0 {. {- n [USERAGENT] - value of User-Agent header of the visitor (used for XML feeds), % v* k6 ]: ^, W, J1 q [LANG] - value of Accept-Language header of the visitors (used for XML feeds). 4 S# ^, |, s# L% P / O5 F T% x+ r* B0 Z g! b & a& ?$ ^2 f7 |6 M" x" m我设想是 在popads设置广告地址为我系统的地址,将以上参数全部传递给我,我通过技术手段识别出质量差的网站id,然后输出到我的后台。) X% L& ^ Y4 [ L0 d+ @. r* O
/ U. ]+ b2 i$ a
然后我就可以在popads内屏蔽网站id了。' U1 e* c9 `* [ ]& J9 B. g2 f
: c$ ]7 L* [4 i7 Q, M不知道这样的东西你们需要不? : k! ?) u3 e# s. J3 I$ w$ Q" \# p- {) I1 Y, D; ]
如果有开发建议的话可以加我qq 76762,提供建议的朋友免费开放给你使用。% I; d7 B7 }3 Z4 D- t) P# ^6 T
; n) K* X5 u6 V0 V 7 n) O* d1 z: ]! j " P0 f! {" E* d' q( C5 |: w3 Y+ V, v0 B. p+ { C