V25/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
« V25/Common/SearchVolumeRange.pm ↑ Summary V25/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::V25::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 adSubFormatType => $args->{adSubFormatType},
36 adSubNetworkType => $args->{adSubNetworkType},
37 adUsingProductData => $args->{adUsingProductData},
38 adUsingVideo => $args->{adUsingVideo},
39 adjustedAgeRange => $args->{adjustedAgeRange},
40 adjustedGender => $args->{adjustedGender},
41 advanceBookingWindow => $args->{advanceBookingWindow},
42 ageRange => $args->{ageRange},
43 assetGroup => $args->{assetGroup},
44 assetInteractionTarget => $args->{assetInteractionTarget},
45 auctionInsightDomain => $args->{auctionInsightDomain},
46 brandLiftMeasurementType => $args->{brandLiftMeasurementType},
47 budgetCampaignAssociationStatus => $args->{budgetCampaignAssociationStatus},
48 campaign => $args->{campaign},
49 clickType => $args->{clickType},
50 conversionAction => $args->{conversionAction},
51 conversionActionCategory => $args->{conversionActionCategory},
52 conversionActionName => $args->{conversionActionName},
53 conversionAdjustment => $args->{conversionAdjustment},
54 conversionAttributionEventType => $args->{conversionAttributionEventType},
55 conversionLagBucket => $args->{conversionLagBucket},
56 conversionLiftConversionCategory => $args->{conversionLiftConversionCategory},
57 conversionLiftEndDate => $args->{conversionLiftEndDate},
58 conversionLiftIncludedConversionActionTypes => $args->{conversionLiftIncludedConversionActionTypes},
59 conversionLiftStartDate => $args->{conversionLiftStartDate},
60 conversionOrAdjustmentLagBucket => $args->{conversionOrAdjustmentLagBucket},
61 conversionValueRulePrimaryDimension => $args->{conversionValueRulePrimaryDimension},
62 country => $args->{country},
63 countryLocalizedName => $args->{countryLocalizedName},
64 date => $args->{date},
65 dayOfWeek => $args->{dayOfWeek},
66 device => $args->{device},
67 experimentArm => $args->{experimentArm},
68 externalActivityId => $args->{externalActivityId},
69 externalConversionSource => $args->{externalConversionSource},
70 gender => $args->{gender},
71 geoTargetAirport => $args->{geoTargetAirport},
72 geoTargetCanton => $args->{geoTargetCanton},
73 geoTargetCity => $args->{geoTargetCity},
74 geoTargetCountry => $args->{geoTargetCountry},
75 geoTargetCounty => $args->{geoTargetCounty},
76 geoTargetDistrict => $args->{geoTargetDistrict},
77 geoTargetMetro => $args->{geoTargetMetro},
78 geoTargetMostSpecificLocation => $args->{geoTargetMostSpecificLocation},
79 geoTargetPostalCode => $args->{geoTargetPostalCode},
80 geoTargetProvince => $args->{geoTargetProvince},
81 geoTargetRegion => $args->{geoTargetRegion},
82 geoTargetState => $args->{geoTargetState},
83 hotelBookingWindowDays => $args->{hotelBookingWindowDays},
84 hotelCenterId => $args->{hotelCenterId},
85 hotelCheckInDate => $args->{hotelCheckInDate},
86 hotelCheckInDayOfWeek => $args->{hotelCheckInDayOfWeek},
87 hotelCity => $args->{hotelCity},
88 hotelClass => $args->{hotelClass},
89 hotelCountry => $args->{hotelCountry},
90 hotelDateSelectionType => $args->{hotelDateSelectionType},
91 hotelLengthOfStay => $args->{hotelLengthOfStay},
92 hotelPriceBucket => $args->{hotelPriceBucket},
93 hotelRateRuleId => $args->{hotelRateRuleId},
94 hotelRateType => $args->{hotelRateType},
95 hotelState => $args->{hotelState},
96 hour => $args->{hour},
97 interactionOnThisExtension => $args->{interactionOnThisExtension},
98 keyword => $args->{keyword},
99 landingPageSource => $args->{landingPageSource},
100 lengthOfBooking => $args->{lengthOfBooking},
101 loyaltyMembership => $args->{loyaltyMembership},
102 matchType => $args->{matchType},
103 mobileDevicePlatform => $args->{mobileDevicePlatform},
104 month => $args->{month},
105 monthOfYear => $args->{monthOfYear},
106 newVersusReturningCustomers => $args->{newVersusReturningCustomers},
107 partnerHotelId => $args->{partnerHotelId},
108 productAggregatorId => $args->{productAggregatorId},
109 productBrand => $args->{productBrand},
110 productCategoryLevel1 => $args->{productCategoryLevel1},
111 productCategoryLevel2 => $args->{productCategoryLevel2},
112 productCategoryLevel3 => $args->{productCategoryLevel3},
113 productCategoryLevel4 => $args->{productCategoryLevel4},
114 productCategoryLevel5 => $args->{productCategoryLevel5},
115 productChannel => $args->{productChannel},
116 productChannelExclusivity => $args->{productChannelExclusivity},
117 productCondition => $args->{productCondition},
118 productCountry => $args->{productCountry},
119 productCustomAttribute0 => $args->{productCustomAttribute0},
120 productCustomAttribute1 => $args->{productCustomAttribute1},
121 productCustomAttribute2 => $args->{productCustomAttribute2},
122 productCustomAttribute3 => $args->{productCustomAttribute3},
123 productCustomAttribute4 => $args->{productCustomAttribute4},
124 productFeedLabel => $args->{productFeedLabel},
125 productItemId => $args->{productItemId},
126 productLanguage => $args->{productLanguage},
127 productMerchantId => $args->{productMerchantId},
128 productSoldBrand => $args->{productSoldBrand},
129 productSoldCategoryLevel1 => $args->{productSoldCategoryLevel1},
130 productSoldCategoryLevel2 => $args->{productSoldCategoryLevel2},
131 productSoldCategoryLevel3 => $args->{productSoldCategoryLevel3},
132 productSoldCategoryLevel4 => $args->{productSoldCategoryLevel4},
133 productSoldCategoryLevel5 => $args->{productSoldCategoryLevel5},
134 productSoldCondition => $args->{productSoldCondition},
135 productSoldCustomAttribute0 => $args->{productSoldCustomAttribute0},
136 productSoldCustomAttribute1 => $args->{productSoldCustomAttribute1},
137 productSoldCustomAttribute2 => $args->{productSoldCustomAttribute2},
138 productSoldCustomAttribute3 => $args->{productSoldCustomAttribute3},
139 productSoldCustomAttribute4 => $args->{productSoldCustomAttribute4},
140 productSoldItemId => $args->{productSoldItemId},
141 productSoldTitle => $args->{productSoldTitle},
142 productSoldTypeL1 => $args->{productSoldTypeL1},
143 productSoldTypeL2 => $args->{productSoldTypeL2},
144 productSoldTypeL3 => $args->{productSoldTypeL3},
145 productSoldTypeL4 => $args->{productSoldTypeL4},
146 productSoldTypeL5 => $args->{productSoldTypeL5},
147 productStoreId => $args->{productStoreId},
148 productTitle => $args->{productTitle},
149 productTypeL1 => $args->{productTypeL1},
150 productTypeL2 => $args->{productTypeL2},
151 productTypeL3 => $args->{productTypeL3},
152 productTypeL4 => $args->{productTypeL4},
153 productTypeL5 => $args->{productTypeL5},
154 quarter => $args->{quarter},
155 recommendationType => $args->{recommendationType},
156 searchEngineResultsPageType => $args->{searchEngineResultsPageType},
157 searchSubcategory => $args->{searchSubcategory},
158 searchTerm => $args->{searchTerm},
159 searchTermMatchSource => $args->{searchTermMatchSource},
160 searchTermMatchType => $args->{searchTermMatchType},
161 searchTermTargetingStatus => $args->{searchTermTargetingStatus},
162 skAdNetworkAdEventType => $args->{skAdNetworkAdEventType},
163 skAdNetworkAttributionCredit => $args->{skAdNetworkAttributionCredit},
164 skAdNetworkCoarseConversionValue => $args->{skAdNetworkCoarseConversionValue},
165 skAdNetworkFineConversionValue => $args->{skAdNetworkFineConversionValue},
166 skAdNetworkPostbackSequenceIndex => $args->{skAdNetworkPostbackSequenceIndex},
167 skAdNetworkRedistributedFineConversionValue => $args->{skAdNetworkRedistributedFineConversionValue},
168 skAdNetworkSourceApp => $args->{skAdNetworkSourceApp},
169 skAdNetworkSourceDomain => $args->{skAdNetworkSourceDomain},
170 skAdNetworkSourceType => $args->{skAdNetworkSourceType},
171 skAdNetworkUserType => $args->{skAdNetworkUserType},
172 skAdNetworkVersion => $args->{skAdNetworkVersion},
173 slot => $args->{slot},
174 startDate => $args->{startDate},
175 startDayOfWeek => $args->{startDayOfWeek},
176 travelDestinationCity => $args->{travelDestinationCity},
177 travelDestinationCountry => $args->{travelDestinationCountry},
178 travelDestinationRegion => $args->{travelDestinationRegion},
179 userSetDates => $args->{userSetDates},
180 verticalAdsEventParticipantDisplayNames => $args->{verticalAdsEventParticipantDisplayNames},
181 verticalAdsHotelClass => $args->{verticalAdsHotelClass},
182 verticalAdsListing => $args->{verticalAdsListing},
183 verticalAdsListingBrand => $args->{verticalAdsListingBrand},
184 verticalAdsListingCity => $args->{verticalAdsListingCity},
185 verticalAdsListingCountry => $args->{verticalAdsListingCountry},
186 verticalAdsListingRegion => $args->{verticalAdsListingRegion},
187 verticalAdsListingUserRating => $args->{verticalAdsListingUserRating},
188 verticalAdsListingVenue => $args->{verticalAdsListingVenue},
189 verticalAdsPartnerAccount => $args->{verticalAdsPartnerAccount},
190 verticalAdsPriceTier => $args->{verticalAdsPriceTier},
191 verticalAdsRateRuleId => $args->{verticalAdsRateRuleId},
192 verticalAdsRateType => $args->{verticalAdsRateType},
193 verticalAdsVertical => $args->{verticalAdsVertical},
194 webpage => $args->{webpage},
195 week => $args->{week},
196 year => $args->{year}
197 0 };
198  
199 # Delete the unassigned fields in this object for a more concise JSON payload
200 0 remove_unassigned_fields($self, $args);
201  
202 0 bless $self, $class;
203 0 return $self;
204 }
205  
206 1 1;
« V25/Common/SearchVolumeRange.pm ↑ Summary V25/Common/ShoppingComparisonListingAdInfo.pm »