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