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
|
|
814
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
18
|
1
|
|
|
1
|
|
4
|
use base qw(Google::Ads::GoogleAds::BaseEntity); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
24
|
|
19
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
118
|
|
20
|
|
|
|
|
|
|
use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; |
21
|
1
|
|
|
1
|
|
9
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
193
|
|
22
|
|
|
|
|
|
|
my ($class, $args) = @_; |
23
|
|
|
|
|
|
|
my $self = { |
24
|
0
|
|
|
0
|
0
|
|
autoTaggingEnabled => $args->{autoTaggingEnabled}, |
25
|
|
|
|
|
|
|
callReportingSetting => $args->{callReportingSetting}, |
26
|
|
|
|
|
|
|
conversionTrackingSetting => $args->{conversionTrackingSetting}, |
27
|
|
|
|
|
|
|
currencyCode => $args->{currencyCode}, |
28
|
|
|
|
|
|
|
descriptiveName => $args->{descriptiveName}, |
29
|
|
|
|
|
|
|
finalUrlSuffix => $args->{finalUrlSuffix}, |
30
|
|
|
|
|
|
|
hasPartnersBadge => $args->{hasPartnersBadge}, |
31
|
|
|
|
|
|
|
id => $args->{id}, |
32
|
|
|
|
|
|
|
manager => $args->{manager}, |
33
|
|
|
|
|
|
|
optimizationScore => $args->{optimizationScore}, |
34
|
|
|
|
|
|
|
optimizationScoreWeight => $args->{optimizationScoreWeight}, |
35
|
|
|
|
|
|
|
payPerConversionEligibilityFailureReasons => |
36
|
|
|
|
|
|
|
$args->{payPerConversionEligibilityFailureReasons}, |
37
|
|
|
|
|
|
|
remarketingSetting => $args->{remarketingSetting}, |
38
|
|
|
|
|
|
|
resourceName => $args->{resourceName}, |
39
|
|
|
|
|
|
|
status => $args->{status}, |
40
|
|
|
|
|
|
|
testAccount => $args->{testAccount}, |
41
|
|
|
|
|
|
|
timeZone => $args->{timeZone}, |
42
|
|
|
|
|
|
|
trackingUrlTemplate => $args->{trackingUrlTemplate}}; |
43
|
|
|
|
|
|
|
|
44
|
0
|
|
|
|
|
|
# Delete the unassigned fields in this object for a more concise JSON payload |
45
|
|
|
|
|
|
|
remove_unassigned_fields($self, $args); |
46
|
|
|
|
|
|
|
|
47
|
0
|
|
|
|
|
|
bless $self, $class; |
48
|
|
|
|
|
|
|
return $self; |
49
|
0
|
|
|
|
|
|
} |
50
|
0
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |