line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyright 2020, Google LLC |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); |
4
|
|
|
|
|
|
|
# you may not use this file except in compliance with the License. |
5
|
|
|
|
|
|
|
# You may obtain a copy of the License at |
6
|
|
|
|
|
|
|
# |
7
|
|
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0 |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software |
10
|
|
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, |
11
|
|
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12
|
|
|
|
|
|
|
# See the License for the specific language governing permissions and |
13
|
|
|
|
|
|
|
# limitations under the License. |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
use strict; |
17
|
1
|
|
|
1
|
|
739
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
31
|
|
18
|
1
|
|
|
1
|
|
6
|
use base qw(Google::Ads::GoogleAds::BaseEntity); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
19
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
67
|
|
20
|
|
|
|
|
|
|
use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; |
21
|
1
|
|
|
1
|
|
8
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
251
|
|
22
|
|
|
|
|
|
|
my ($class, $args) = @_; |
23
|
|
|
|
|
|
|
my $self = { |
24
|
0
|
|
|
0
|
0
|
|
adSchedule => $args->{adSchedule}, |
25
|
|
|
|
|
|
|
ageRange => $args->{ageRange}, |
26
|
|
|
|
|
|
|
bidModifier => $args->{bidModifier}, |
27
|
|
|
|
|
|
|
campaign => $args->{campaign}, |
28
|
|
|
|
|
|
|
carrier => $args->{carrier}, |
29
|
|
|
|
|
|
|
combinedAudience => $args->{combinedAudience}, |
30
|
|
|
|
|
|
|
contentLabel => $args->{contentLabel}, |
31
|
|
|
|
|
|
|
criterionId => $args->{criterionId}, |
32
|
|
|
|
|
|
|
customAffinity => $args->{customAffinity}, |
33
|
|
|
|
|
|
|
customAudience => $args->{customAudience}, |
34
|
|
|
|
|
|
|
device => $args->{device}, |
35
|
|
|
|
|
|
|
displayName => $args->{displayName}, |
36
|
|
|
|
|
|
|
gender => $args->{gender}, |
37
|
|
|
|
|
|
|
incomeRange => $args->{incomeRange}, |
38
|
|
|
|
|
|
|
ipBlock => $args->{ipBlock}, |
39
|
|
|
|
|
|
|
keyword => $args->{keyword}, |
40
|
|
|
|
|
|
|
keywordTheme => $args->{keywordTheme}, |
41
|
|
|
|
|
|
|
language => $args->{language}, |
42
|
|
|
|
|
|
|
listingScope => $args->{listingScope}, |
43
|
|
|
|
|
|
|
location => $args->{location}, |
44
|
|
|
|
|
|
|
locationGroup => $args->{locationGroup}, |
45
|
|
|
|
|
|
|
mobileAppCategory => $args->{mobileAppCategory}, |
46
|
|
|
|
|
|
|
mobileApplication => $args->{mobileApplication}, |
47
|
|
|
|
|
|
|
mobileDevice => $args->{mobileDevice}, |
48
|
|
|
|
|
|
|
negative => $args->{negative}, |
49
|
|
|
|
|
|
|
operatingSystemVersion => $args->{operatingSystemVersion}, |
50
|
|
|
|
|
|
|
parentalStatus => $args->{parentalStatus}, |
51
|
|
|
|
|
|
|
placement => $args->{placement}, |
52
|
|
|
|
|
|
|
proximity => $args->{proximity}, |
53
|
|
|
|
|
|
|
resourceName => $args->{resourceName}, |
54
|
|
|
|
|
|
|
status => $args->{status}, |
55
|
|
|
|
|
|
|
topic => $args->{topic}, |
56
|
|
|
|
|
|
|
type => $args->{type}, |
57
|
|
|
|
|
|
|
userInterest => $args->{userInterest}, |
58
|
|
|
|
|
|
|
userList => $args->{userList}, |
59
|
|
|
|
|
|
|
webpage => $args->{webpage}, |
60
|
|
|
|
|
|
|
youtubeChannel => $args->{youtubeChannel}, |
61
|
|
|
|
|
|
|
youtubeVideo => $args->{youtubeVideo}}; |
62
|
|
|
|
|
|
|
|
63
|
0
|
|
|
|
|
|
# Delete the unassigned fields in this object for a more concise JSON payload |
64
|
|
|
|
|
|
|
remove_unassigned_fields($self, $args); |
65
|
|
|
|
|
|
|
|
66
|
0
|
|
|
|
|
|
bless $self, $class; |
67
|
|
|
|
|
|
|
return $self; |
68
|
0
|
|
|
|
|
|
} |
69
|
0
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
1; |