V25/Resources/CampaignCriterion.pm

filter: Statementstmt 72.2% 13 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 70.8% 17 / 24 CC 1 SCAR 1.8
CC
1
Cov
72%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« V25/Resources/CampaignConversionGoal.pm ↑ Summary V25/Resources/CampaignCriterionSimulation.pm »
1 # Copyright 2026, 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 package Google::Ads::GoogleAds::V25::Resources::CampaignCriterion;
16  
17 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use base qw(Google::Ads::GoogleAds::BaseEntity);
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 1 ▶use Google::Ads::GoogleAds::Utils::GoogleAdsHelper;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
24 0 my ($class, $args) = @_;
25 my $self = {
26 adSchedule => $args->{adSchedule},
27 ageRange => $args->{ageRange},
28 bidModifier => $args->{bidModifier},
29 brandList => $args->{brandList},
30 campaign => $args->{campaign},
31 carrier => $args->{carrier},
32 combinedAudience => $args->{combinedAudience},
33 contentLabel => $args->{contentLabel},
34 criterionId => $args->{criterionId},
35 customAffinity => $args->{customAffinity},
36 customAudience => $args->{customAudience},
37 device => $args->{device},
38 displayName => $args->{displayName},
39 extendedDemographic => $args->{extendedDemographic},
40 gender => $args->{gender},
41 incomeRange => $args->{incomeRange},
42 ipBlock => $args->{ipBlock},
43 keyword => $args->{keyword},
44 keywordTheme => $args->{keywordTheme},
45 language => $args->{language},
46 lifeEvent => $args->{lifeEvent},
47 listingScope => $args->{listingScope},
48 localServiceId => $args->{localServiceId},
49 location => $args->{location},
50 locationGroup => $args->{locationGroup},
51 mobileAppCategory => $args->{mobileAppCategory},
52 mobileApplication => $args->{mobileApplication},
53 mobileDevice => $args->{mobileDevice},
54 negative => $args->{negative},
55 operatingSystemVersion => $args->{operatingSystemVersion},
56 parentalStatus => $args->{parentalStatus},
57 placement => $args->{placement},
58 proximity => $args->{proximity},
59 resourceName => $args->{resourceName},
60 status => $args->{status},
61 topic => $args->{topic},
62 type => $args->{type},
63 userInterest => $args->{userInterest},
64 userList => $args->{userList},
65 videoLineup => $args->{videoLineup},
66 webpage => $args->{webpage},
67 webpageList => $args->{webpageList},
68 youtubeChannel => $args->{youtubeChannel},
69 youtubeVideo => $args->{youtubeVideo}
70 0 };
71  
72 # Delete the unassigned fields in this object for a more concise JSON payload
73 0 remove_unassigned_fields($self, $args);
74  
75 0 bless $self, $class;
76 0 return $self;
77 }
78  
79 1 1;
« V25/Resources/CampaignConversionGoal.pm ↑ Summary V25/Resources/CampaignCriterionSimulation.pm »