| 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::Recommendation; | ||
| 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 | adGroup => $args->{adGroup}, | ||
| 27 | callAssetRecommendation => $args->{callAssetRecommendation}, | ||
| 28 | calloutAssetRecommendation => $args->{calloutAssetRecommendation}, | ||
| 29 | campaign => $args->{campaign}, | ||
| 30 | campaignBudget => $args->{campaignBudget}, | ||
| 31 | campaignBudgetRecommendation => $args->{campaignBudgetRecommendation}, | ||
| 32 | campaignSpecificAppGoalRecommendation => $args->{campaignSpecificAppGoalRecommendation}, | ||
| 33 | campaigns => $args->{campaigns}, | ||
| 34 | customAudienceOptInRecommendation => $args->{customAudienceOptInRecommendation}, | ||
| 35 | dismissed => $args->{dismissed}, | ||
| 36 | displayExpansionOptInRecommendation => $args->{displayExpansionOptInRecommendation}, | ||
| 37 | dynamicImageExtensionOptInRecommendation => $args->{dynamicImageExtensionOptInRecommendation}, | ||
| 38 | enhancedCpcOptInRecommendation => $args->{enhancedCpcOptInRecommendation}, | ||
| 39 | forecastingCampaignBudgetRecommendation => $args->{forecastingCampaignBudgetRecommendation}, | ||
| 40 | forecastingSetTargetCpaRecommendation => $args->{forecastingSetTargetCpaRecommendation}, | ||
| 41 | forecastingSetTargetRoasRecommendation => $args->{forecastingSetTargetRoasRecommendation}, | ||
| 42 | impact => $args->{impact}, | ||
| 43 | improveDemandGenAdStrengthRecommendation => $args->{improveDemandGenAdStrengthRecommendation}, | ||
| 44 | improveGoogleTagCoverageRecommendation => $args->{improveGoogleTagCoverageRecommendation}, | ||
| 45 | improvePerformanceMaxAdStrengthRecommendation => $args->{improvePerformanceMaxAdStrengthRecommendation}, | ||
| 46 | keywordMatchTypeRecommendation => $args->{keywordMatchTypeRecommendation}, | ||
| 47 | keywordRecommendation => $args->{keywordRecommendation}, | ||
| 48 | leadFormAssetRecommendation => $args->{leadFormAssetRecommendation}, | ||
| 49 | lowerTargetRoasPerformanceBidTooLowRecommendation => $args->{lowerTargetRoasPerformanceBidTooLowRecommendation}, | ||
| 50 | lowerTargetRoasRecommendation => $args->{lowerTargetRoasRecommendation}, | ||
| 51 | marginalRoiCampaignBudgetRecommendation => $args->{marginalRoiCampaignBudgetRecommendation}, | ||
| 52 | maximizeClicksOptInRecommendation => $args->{maximizeClicksOptInRecommendation}, | ||
| 53 | maximizeConversionValueOptInRecommendation => $args->{maximizeConversionValueOptInRecommendation}, | ||
| 54 | maximizeConversionsOptInRecommendation => $args->{maximizeConversionsOptInRecommendation}, | ||
| 55 | migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation => $args->{migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation}, | ||
| 56 | moveUnusedBudgetRecommendation => $args->{moveUnusedBudgetRecommendation}, | ||
| 57 | optimizeAdRotationRecommendation => $args->{optimizeAdRotationRecommendation}, | ||
| 58 | performanceMaxFinalUrlOptInRecommendation => $args->{performanceMaxFinalUrlOptInRecommendation}, | ||
| 59 | performanceMaxOptInRecommendation => $args->{performanceMaxOptInRecommendation}, | ||
| 60 | raiseTargetCpaBidTooLowRecommendation => $args->{raiseTargetCpaBidTooLowRecommendation}, | ||
| 61 | raiseTargetCpaPerformanceBidTooLowRecommendation => $args->{raiseTargetCpaPerformanceBidTooLowRecommendation}, | ||
| 62 | raiseTargetCpaRecommendation => $args->{raiseTargetCpaRecommendation}, | ||
| 63 | refreshCustomerMatchListRecommendation => $args->{refreshCustomerMatchListRecommendation}, | ||
| 64 | resourceName => $args->{resourceName}, | ||
| 65 | responsiveSearchAdAssetRecommendation => $args->{responsiveSearchAdAssetRecommendation}, | ||
| 66 | responsiveSearchAdImproveAdStrengthRecommendation => $args->{responsiveSearchAdImproveAdStrengthRecommendation}, | ||
| 67 | responsiveSearchAdRecommendation => $args->{responsiveSearchAdRecommendation}, | ||
| 68 | searchPartnersOptInRecommendation => $args->{searchPartnersOptInRecommendation}, | ||
| 69 | setTargetCpaRecommendation => $args->{setTargetCpaRecommendation}, | ||
| 70 | setTargetRoasRecommendation => $args->{setTargetRoasRecommendation}, | ||
| 71 | shoppingAddAgeGroupRecommendation => $args->{shoppingAddAgeGroupRecommendation}, | ||
| 72 | shoppingAddColorRecommendation => $args->{shoppingAddColorRecommendation}, | ||
| 73 | shoppingAddGenderRecommendation => $args->{shoppingAddGenderRecommendation}, | ||
| 74 | shoppingAddGtinRecommendation => $args->{shoppingAddGtinRecommendation}, | ||
| 75 | shoppingAddMoreIdentifiersRecommendation => $args->{shoppingAddMoreIdentifiersRecommendation}, | ||
| 76 | shoppingAddProductsToCampaignRecommendation => $args->{shoppingAddProductsToCampaignRecommendation}, | ||
| 77 | shoppingAddSizeRecommendation => $args->{shoppingAddSizeRecommendation}, | ||
| 78 | shoppingFixDisapprovedProductsRecommendation => $args->{shoppingFixDisapprovedProductsRecommendation}, | ||
| 79 | shoppingFixMerchantCenterAccountSuspensionWarningRecommendation => $args->{shoppingFixMerchantCenterAccountSuspensionWarningRecommendation}, | ||
| 80 | shoppingFixSuspendedMerchantCenterAccountRecommendation => $args->{shoppingFixSuspendedMerchantCenterAccountRecommendation}, | ||
| 81 | shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation => $args->{shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation}, | ||
| 82 | shoppingTargetAllOffersRecommendation => $args->{shoppingTargetAllOffersRecommendation}, | ||
| 83 | sitelinkAssetRecommendation => $args->{sitelinkAssetRecommendation}, | ||
| 84 | targetCpaOptInRecommendation => $args->{targetCpaOptInRecommendation}, | ||
| 85 | targetRoasOptInRecommendation => $args->{targetRoasOptInRecommendation}, | ||
| 86 | textAdRecommendation => $args->{textAdRecommendation}, | ||
| 87 | type => $args->{type}, | ||
| 88 | upgradeLocalCampaignToPerformanceMaxRecommendation => $args->{upgradeLocalCampaignToPerformanceMaxRecommendation}, | ||
| 89 | upgradeSmartShoppingCampaignToPerformanceMaxRecommendation => $args->{upgradeSmartShoppingCampaignToPerformanceMaxRecommendation}, | ||
| 90 | useBroadMatchKeywordRecommendation => $args->{useBroadMatchKeywordRecommendation} | ||
| 91 | 0 | }; | |
| 92 | |||
| 93 | # Delete the unassigned fields in this object for a more concise JSON payload | ||
| 94 | 0 | remove_unassigned_fields($self, $args); | |
| 95 | |||
| 96 | 0 | bless $self, $class; | |
| 97 | 0 | return $self; | |
| 98 | } | ||
| 99 | |||
| 100 | 1 | 1; | |