V24/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
« V24/Common/SearchVolumeRange.pm ↑ Summary V24/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::V24::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 mobileDevicePlatform => $args->{mobileDevicePlatform},
91 month => $args->{month},
92 monthOfYear => $args->{monthOfYear},
93 newVersusReturningCustomers => $args->{newVersusReturningCustomers},
94 partnerHotelId => $args->{partnerHotelId},
95 productAggregatorId => $args->{productAggregatorId},
96 productBrand => $args->{productBrand},
97 productCategoryLevel1 => $args->{productCategoryLevel1},
98 productCategoryLevel2 => $args->{productCategoryLevel2},
99 productCategoryLevel3 => $args->{productCategoryLevel3},
100 productCategoryLevel4 => $args->{productCategoryLevel4},
101 productCategoryLevel5 => $args->{productCategoryLevel5},
102 productChannel => $args->{productChannel},
103 productChannelExclusivity => $args->{productChannelExclusivity},
104 productCondition => $args->{productCondition},
105 productCountry => $args->{productCountry},
106 productCustomAttribute0 => $args->{productCustomAttribute0},
107 productCustomAttribute1 => $args->{productCustomAttribute1},
108 productCustomAttribute2 => $args->{productCustomAttribute2},
109 productCustomAttribute3 => $args->{productCustomAttribute3},
110 productCustomAttribute4 => $args->{productCustomAttribute4},
111 productFeedLabel => $args->{productFeedLabel},
112 productItemId => $args->{productItemId},
113 productLanguage => $args->{productLanguage},
114 productMerchantId => $args->{productMerchantId},
115 productSoldBrand => $args->{productSoldBrand},
116 productSoldCategoryLevel1 => $args->{productSoldCategoryLevel1},
117 productSoldCategoryLevel2 => $args->{productSoldCategoryLevel2},
118 productSoldCategoryLevel3 => $args->{productSoldCategoryLevel3},
119 productSoldCategoryLevel4 => $args->{productSoldCategoryLevel4},
120 productSoldCategoryLevel5 => $args->{productSoldCategoryLevel5},
121 productSoldCondition => $args->{productSoldCondition},
122 productSoldCustomAttribute0 => $args->{productSoldCustomAttribute0},
123 productSoldCustomAttribute1 => $args->{productSoldCustomAttribute1},
124 productSoldCustomAttribute2 => $args->{productSoldCustomAttribute2},
125 productSoldCustomAttribute3 => $args->{productSoldCustomAttribute3},
126 productSoldCustomAttribute4 => $args->{productSoldCustomAttribute4},
127 productSoldItemId => $args->{productSoldItemId},
128 productSoldTitle => $args->{productSoldTitle},
129 productSoldTypeL1 => $args->{productSoldTypeL1},
130 productSoldTypeL2 => $args->{productSoldTypeL2},
131 productSoldTypeL3 => $args->{productSoldTypeL3},
132 productSoldTypeL4 => $args->{productSoldTypeL4},
133 productSoldTypeL5 => $args->{productSoldTypeL5},
134 productStoreId => $args->{productStoreId},
135 productTitle => $args->{productTitle},
136 productTypeL1 => $args->{productTypeL1},
137 productTypeL2 => $args->{productTypeL2},
138 productTypeL3 => $args->{productTypeL3},
139 productTypeL4 => $args->{productTypeL4},
140 productTypeL5 => $args->{productTypeL5},
141 quarter => $args->{quarter},
142 recommendationType => $args->{recommendationType},
143 searchEngineResultsPageType => $args->{searchEngineResultsPageType},
144 searchSubcategory => $args->{searchSubcategory},
145 searchTerm => $args->{searchTerm},
146 searchTermMatchSource => $args->{searchTermMatchSource},
147 searchTermMatchType => $args->{searchTermMatchType},
148 searchTermTargetingStatus => $args->{searchTermTargetingStatus},
149 skAdNetworkAdEventType => $args->{skAdNetworkAdEventType},
150 skAdNetworkAttributionCredit => $args->{skAdNetworkAttributionCredit},
151 skAdNetworkCoarseConversionValue =>
152 $args->{skAdNetworkCoarseConversionValue},
153 skAdNetworkFineConversionValue => $args->{skAdNetworkFineConversionValue},
154 skAdNetworkPostbackSequenceIndex =>
155 $args->{skAdNetworkPostbackSequenceIndex},
156 skAdNetworkRedistributedFineConversionValue =>
157 $args->{skAdNetworkRedistributedFineConversionValue},
158 skAdNetworkSourceApp => $args->{skAdNetworkSourceApp},
159 skAdNetworkSourceDomain => $args->{skAdNetworkSourceDomain},
160 skAdNetworkSourceType => $args->{skAdNetworkSourceType},
161 skAdNetworkUserType => $args->{skAdNetworkUserType},
162 skAdNetworkVersion => $args->{skAdNetworkVersion},
163 slot => $args->{slot},
164 travelDestinationCity => $args->{travelDestinationCity},
165 travelDestinationCountry => $args->{travelDestinationCountry},
166 travelDestinationRegion => $args->{travelDestinationRegion},
167 verticalAdsEventParticipantDisplayNames =>
168 $args->{verticalAdsEventParticipantDisplayNames},
169 verticalAdsHotelClass => $args->{verticalAdsHotelClass},
170 verticalAdsListing => $args->{verticalAdsListing},
171 verticalAdsListingBrand => $args->{verticalAdsListingBrand},
172 verticalAdsListingCity => $args->{verticalAdsListingCity},
173 verticalAdsListingCountry => $args->{verticalAdsListingCountry},
174 verticalAdsListingRegion => $args->{verticalAdsListingRegion},
175 verticalAdsListingUserRating => $args->{verticalAdsListingUserRating},
176 verticalAdsListingVenue => $args->{verticalAdsListingVenue},
177 verticalAdsPartnerAccount => $args->{verticalAdsPartnerAccount},
178 verticalAdsVertical => $args->{verticalAdsVertical},
179 webpage => $args->{webpage},
180 week => $args->{week},
181 0 year => $args->{year}};
182  
183 # Delete the unassigned fields in this object for a more concise JSON payload
184 0 remove_unassigned_fields($self, $args);
185  
186 0 bless $self, $class;
187 0 return $self;
188 }
189  
190 1 1;
« V24/Common/SearchVolumeRange.pm ↑ Summary V24/Common/ShoppingComparisonListingAdInfo.pm »