V23/Common/Segments.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
« V23/Common/SearchVolumeRange.pm ↑ Summary V23/Common/ShoppingComparisonListingAdInfo.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::V23::Common::Segments;
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 activityAccountId => $args->{activityAccountId},
27 activityCity => $args->{activityCity},
28 activityCountry => $args->{activityCountry},
29 activityRating => $args->{activityRating},
30 activityState => $args->{activityState},
31 adDestinationType => $args->{adDestinationType},
32 adFormatType => $args->{adFormatType},
33 adGroup => $args->{adGroup},
34 adNetworkType => $args->{adNetworkType},
35 adSubNetworkType => $args->{adSubNetworkType},
36 adUsingProductData => $args->{adUsingProductData},
37 adUsingVideo => $args->{adUsingVideo},
38 adjustedAgeRange => $args->{adjustedAgeRange},
39 adjustedGender => $args->{adjustedGender},
40 assetGroup => $args->{assetGroup},
41 assetInteractionTarget => $args->{assetInteractionTarget},
42 auctionInsightDomain => $args->{auctionInsightDomain},
43 budgetCampaignAssociationStatus => $args->{budgetCampaignAssociationStatus},
44 campaign => $args->{campaign},
45 clickType => $args->{clickType},
46 conversionAction => $args->{conversionAction},
47 conversionActionCategory => $args->{conversionActionCategory},
48 conversionActionName => $args->{conversionActionName},
49 conversionAdjustment => $args->{conversionAdjustment},
50 conversionAttributionEventType => $args->{conversionAttributionEventType},
51 conversionLagBucket => $args->{conversionLagBucket},
52 conversionOrAdjustmentLagBucket => $args->{conversionOrAdjustmentLagBucket},
53 conversionValueRulePrimaryDimension =>
54 $args->{conversionValueRulePrimaryDimension},
55 date => $args->{date},
56 dayOfWeek => $args->{dayOfWeek},
57 device => $args->{device},
58 externalActivityId => $args->{externalActivityId},
59 externalConversionSource => $args->{externalConversionSource},
60 geoTargetAirport => $args->{geoTargetAirport},
61 geoTargetCanton => $args->{geoTargetCanton},
62 geoTargetCity => $args->{geoTargetCity},
63 geoTargetCountry => $args->{geoTargetCountry},
64 geoTargetCounty => $args->{geoTargetCounty},
65 geoTargetDistrict => $args->{geoTargetDistrict},
66 geoTargetMetro => $args->{geoTargetMetro},
67 geoTargetMostSpecificLocation => $args->{geoTargetMostSpecificLocation},
68 geoTargetPostalCode => $args->{geoTargetPostalCode},
69 geoTargetProvince => $args->{geoTargetProvince},
70 geoTargetRegion => $args->{geoTargetRegion},
71 geoTargetState => $args->{geoTargetState},
72 hotelBookingWindowDays => $args->{hotelBookingWindowDays},
73 hotelCenterId => $args->{hotelCenterId},
74 hotelCheckInDate => $args->{hotelCheckInDate},
75 hotelCheckInDayOfWeek => $args->{hotelCheckInDayOfWeek},
76 hotelCity => $args->{hotelCity},
77 hotelClass => $args->{hotelClass},
78 hotelCountry => $args->{hotelCountry},
79 hotelDateSelectionType => $args->{hotelDateSelectionType},
80 hotelLengthOfStay => $args->{hotelLengthOfStay},
81 hotelPriceBucket => $args->{hotelPriceBucket},
82 hotelRateRuleId => $args->{hotelRateRuleId},
83 hotelRateType => $args->{hotelRateType},
84 hotelState => $args->{hotelState},
85 hour => $args->{hour},
86 interactionOnThisExtension => $args->{interactionOnThisExtension},
87 keyword => $args->{keyword},
88 landingPageSource => $args->{landingPageSource},
89 matchType => $args->{matchType},
90 month => $args->{month},
91 monthOfYear => $args->{monthOfYear},
92 newVersusReturningCustomers => $args->{newVersusReturningCustomers},
93 partnerHotelId => $args->{partnerHotelId},
94 productAggregatorId => $args->{productAggregatorId},
95 productBrand => $args->{productBrand},
96 productCategoryLevel1 => $args->{productCategoryLevel1},
97 productCategoryLevel2 => $args->{productCategoryLevel2},
98 productCategoryLevel3 => $args->{productCategoryLevel3},
99 productCategoryLevel4 => $args->{productCategoryLevel4},
100 productCategoryLevel5 => $args->{productCategoryLevel5},
101 productChannel => $args->{productChannel},
102 productChannelExclusivity => $args->{productChannelExclusivity},
103 productCondition => $args->{productCondition},
104 productCountry => $args->{productCountry},
105 productCustomAttribute0 => $args->{productCustomAttribute0},
106 productCustomAttribute1 => $args->{productCustomAttribute1},
107 productCustomAttribute2 => $args->{productCustomAttribute2},
108 productCustomAttribute3 => $args->{productCustomAttribute3},
109 productCustomAttribute4 => $args->{productCustomAttribute4},
110 productFeedLabel => $args->{productFeedLabel},
111 productItemId => $args->{productItemId},
112 productLanguage => $args->{productLanguage},
113 productMerchantId => $args->{productMerchantId},
114 productStoreId => $args->{productStoreId},
115 productTitle => $args->{productTitle},
116 productTypeL1 => $args->{productTypeL1},
117 productTypeL2 => $args->{productTypeL2},
118 productTypeL3 => $args->{productTypeL3},
119 productTypeL4 => $args->{productTypeL4},
120 productTypeL5 => $args->{productTypeL5},
121 quarter => $args->{quarter},
122 recommendationType => $args->{recommendationType},
123 searchEngineResultsPageType => $args->{searchEngineResultsPageType},
124 searchSubcategory => $args->{searchSubcategory},
125 searchTerm => $args->{searchTerm},
126 searchTermMatchSource => $args->{searchTermMatchSource},
127 searchTermMatchType => $args->{searchTermMatchType},
128 searchTermTargetingStatus => $args->{searchTermTargetingStatus},
129 skAdNetworkAdEventType => $args->{skAdNetworkAdEventType},
130 skAdNetworkAttributionCredit => $args->{skAdNetworkAttributionCredit},
131 skAdNetworkCoarseConversionValue =>
132 $args->{skAdNetworkCoarseConversionValue},
133 skAdNetworkFineConversionValue => $args->{skAdNetworkFineConversionValue},
134 skAdNetworkPostbackSequenceIndex =>
135 $args->{skAdNetworkPostbackSequenceIndex},
136 skAdNetworkRedistributedFineConversionValue =>
137 $args->{skAdNetworkRedistributedFineConversionValue},
138 skAdNetworkSourceApp => $args->{skAdNetworkSourceApp},
139 skAdNetworkSourceDomain => $args->{skAdNetworkSourceDomain},
140 skAdNetworkSourceType => $args->{skAdNetworkSourceType},
141 skAdNetworkUserType => $args->{skAdNetworkUserType},
142 skAdNetworkVersion => $args->{skAdNetworkVersion},
143 slot => $args->{slot},
144 travelDestinationCity => $args->{travelDestinationCity},
145 travelDestinationCountry => $args->{travelDestinationCountry},
146 travelDestinationRegion => $args->{travelDestinationRegion},
147 verticalAdsEventParticipantDisplayNames =>
148 $args->{verticalAdsEventParticipantDisplayNames},
149 verticalAdsHotelClass => $args->{verticalAdsHotelClass},
150 verticalAdsListing => $args->{verticalAdsListing},
151 verticalAdsListingBrand => $args->{verticalAdsListingBrand},
152 verticalAdsListingCity => $args->{verticalAdsListingCity},
153 verticalAdsListingCountry => $args->{verticalAdsListingCountry},
154 verticalAdsListingRegion => $args->{verticalAdsListingRegion},
155 verticalAdsPartnerAccount => $args->{verticalAdsPartnerAccount},
156 verticalAdsVertical => $args->{verticalAdsVertical},
157 webpage => $args->{webpage},
158 week => $args->{week},
159 0 year => $args->{year}};
160  
161 # Delete the unassigned fields in this object for a more concise JSON payload
162 0 remove_unassigned_fields($self, $args);
163  
164 0 bless $self, $class;
165 0 return $self;
166 }
167  
168 1 1;
« V23/Common/SearchVolumeRange.pm ↑ Summary V23/Common/ShoppingComparisonListingAdInfo.pm »