line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Duadua::Parser::Bot::GooglebotAd; |
2
|
6
|
|
|
6
|
|
43
|
use strict; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
173
|
|
3
|
6
|
|
|
6
|
|
29
|
use warnings; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
133
|
|
4
|
6
|
|
|
6
|
|
28
|
use Duadua::Util; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
929
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub try { |
7
|
339
|
|
|
339
|
1
|
634
|
my ($class, $d) = @_; |
8
|
|
|
|
|
|
|
|
9
|
339
|
100
|
|
|
|
615
|
return unless index($d->ua, 'Google') > -1; |
10
|
|
|
|
|
|
|
|
11
|
22
|
100
|
|
|
|
54
|
if ( index($d->ua, 'Mediapartners-Google') > -1 ) { |
12
|
3
|
|
|
|
|
11
|
my $h = { |
13
|
|
|
|
|
|
|
name => 'Mediapartners-Google', |
14
|
|
|
|
|
|
|
is_bot => 1, |
15
|
|
|
|
|
|
|
}; |
16
|
|
|
|
|
|
|
|
17
|
3
|
|
|
|
|
11
|
return Duadua::Util->set_os($d, $h); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
19
|
100
|
|
|
|
58
|
if ( index($d->ua, 'AdsBot-Google') > -1 ) { |
21
|
|
|
|
|
|
|
return { |
22
|
1
|
|
|
|
|
7
|
name => 'AdsBot-Google', |
23
|
|
|
|
|
|
|
is_bot => 1, |
24
|
|
|
|
|
|
|
}; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |