| 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::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 | campaigns => $args->{campaigns}, | ||
| 33 | customAudienceOptInRecommendation => | ||
| 34 | $args->{customAudienceOptInRecommendation}, | ||
| 35 | dismissed => $args->{dismissed}, | ||
| 36 | displayExpansionOptInRecommendation => | ||
| 37 | $args->{displayExpansionOptInRecommendation}, | ||
| 38 | dynamicImageExtensionOptInRecommendation => | ||
| 39 | $args->{dynamicImageExtensionOptInRecommendation}, | ||
| 40 | enhancedCpcOptInRecommendation => $args->{enhancedCpcOptInRecommendation}, | ||
| 41 | forecastingCampaignBudgetRecommendation => | ||
| 42 | $args->{forecastingCampaignBudgetRecommendation}, | ||
| 43 | forecastingSetTargetCpaRecommendation => | ||
| 44 | $args->{forecastingSetTargetCpaRecommendation}, | ||
| 45 | forecastingSetTargetRoasRecommendation => | ||
| 46 | $args->{forecastingSetTargetRoasRecommendation}, | ||
| 47 | impact => $args->{impact}, | ||
| 48 | improveDemandGenAdStrengthRecommendation => | ||
| 49 | $args->{improveDemandGenAdStrengthRecommendation}, | ||
| 50 | improveGoogleTagCoverageRecommendation => | ||
| 51 | $args->{improveGoogleTagCoverageRecommendation}, | ||
| 52 | improvePerformanceMaxAdStrengthRecommendation => | ||
| 53 | $args->{improvePerformanceMaxAdStrengthRecommendation}, | ||
| 54 | keywordMatchTypeRecommendation => $args->{keywordMatchTypeRecommendation}, | ||
| 55 | keywordRecommendation => $args->{keywordRecommendation}, | ||
| 56 | leadFormAssetRecommendation => $args->{leadFormAssetRecommendation}, | ||
| 57 | lowerTargetRoasRecommendation => $args->{lowerTargetRoasRecommendation}, | ||
| 58 | marginalRoiCampaignBudgetRecommendation => | ||
| 59 | $args->{marginalRoiCampaignBudgetRecommendation}, | ||
| 60 | maximizeClicksOptInRecommendation => | ||
| 61 | $args->{maximizeClicksOptInRecommendation}, | ||
| 62 | maximizeConversionValueOptInRecommendation => | ||
| 63 | $args->{maximizeConversionValueOptInRecommendation}, | ||
| 64 | maximizeConversionsOptInRecommendation => | ||
| 65 | $args->{maximizeConversionsOptInRecommendation}, | ||
| 66 | migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation => | ||
| 67 | $args->{migrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation}, | ||
| 68 | moveUnusedBudgetRecommendation => $args->{moveUnusedBudgetRecommendation}, | ||
| 69 | optimizeAdRotationRecommendation => | ||
| 70 | $args->{optimizeAdRotationRecommendation}, | ||
| 71 | performanceMaxFinalUrlOptInRecommendation => | ||
| 72 | $args->{performanceMaxFinalUrlOptInRecommendation}, | ||
| 73 | performanceMaxOptInRecommendation => | ||
| 74 | $args->{performanceMaxOptInRecommendation}, | ||
| 75 | raiseTargetCpaBidTooLowRecommendation => | ||
| 76 | $args->{raiseTargetCpaBidTooLowRecommendation}, | ||
| 77 | raiseTargetCpaRecommendation => $args->{raiseTargetCpaRecommendation}, | ||
| 78 | refreshCustomerMatchListRecommendation => | ||
| 79 | $args->{refreshCustomerMatchListRecommendation}, | ||
| 80 | resourceName => $args->{resourceName}, | ||
| 81 | responsiveSearchAdAssetRecommendation => | ||
| 82 | $args->{responsiveSearchAdAssetRecommendation}, | ||
| 83 | responsiveSearchAdImproveAdStrengthRecommendation => | ||
| 84 | $args->{responsiveSearchAdImproveAdStrengthRecommendation}, | ||
| 85 | responsiveSearchAdRecommendation => | ||
| 86 | $args->{responsiveSearchAdRecommendation}, | ||
| 87 | searchPartnersOptInRecommendation => | ||
| 88 | $args->{searchPartnersOptInRecommendation}, | ||
| 89 | setTargetCpaRecommendation => $args->{setTargetCpaRecommendation}, | ||
| 90 | setTargetRoasRecommendation => $args->{setTargetRoasRecommendation}, | ||
| 91 | shoppingAddAgeGroupRecommendation => | ||
| 92 | $args->{shoppingAddAgeGroupRecommendation}, | ||
| 93 | shoppingAddColorRecommendation => $args->{shoppingAddColorRecommendation}, | ||
| 94 | shoppingAddGenderRecommendation => $args->{shoppingAddGenderRecommendation}, | ||
| 95 | shoppingAddGtinRecommendation => $args->{shoppingAddGtinRecommendation}, | ||
| 96 | shoppingAddMoreIdentifiersRecommendation => | ||
| 97 | $args->{shoppingAddMoreIdentifiersRecommendation}, | ||
| 98 | shoppingAddProductsToCampaignRecommendation => | ||
| 99 | $args->{shoppingAddProductsToCampaignRecommendation}, | ||
| 100 | shoppingAddSizeRecommendation => $args->{shoppingAddSizeRecommendation}, | ||
| 101 | shoppingFixDisapprovedProductsRecommendation => | ||
| 102 | $args->{shoppingFixDisapprovedProductsRecommendation}, | ||
| 103 | shoppingFixMerchantCenterAccountSuspensionWarningRecommendation => | ||
| 104 | $args->{shoppingFixMerchantCenterAccountSuspensionWarningRecommendation}, | ||
| 105 | shoppingFixSuspendedMerchantCenterAccountRecommendation => | ||
| 106 | $args->{shoppingFixSuspendedMerchantCenterAccountRecommendation}, | ||
| 107 | shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation => | ||
| 108 | $args-> | ||
| 109 | {shoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation} | ||
| 110 | , | ||
| 111 | shoppingTargetAllOffersRecommendation => | ||
| 112 | $args->{shoppingTargetAllOffersRecommendation}, | ||
| 113 | sitelinkAssetRecommendation => $args->{sitelinkAssetRecommendation}, | ||
| 114 | targetCpaOptInRecommendation => $args->{targetCpaOptInRecommendation}, | ||
| 115 | targetRoasOptInRecommendation => $args->{targetRoasOptInRecommendation}, | ||
| 116 | textAdRecommendation => $args->{textAdRecommendation}, | ||
| 117 | type => $args->{type}, | ||
| 118 | upgradeLocalCampaignToPerformanceMaxRecommendation => | ||
| 119 | $args->{upgradeLocalCampaignToPerformanceMaxRecommendation}, | ||
| 120 | upgradeSmartShoppingCampaignToPerformanceMaxRecommendation => | ||
| 121 | $args->{upgradeSmartShoppingCampaignToPerformanceMaxRecommendation}, | ||
| 122 | useBroadMatchKeywordRecommendation => | ||
| 123 | 0 | $args->{useBroadMatchKeywordRecommendation}}; | |
| 124 | |||
| 125 | # Delete the unassigned fields in this object for a more concise JSON payload | ||
| 126 | 0 | remove_unassigned_fields($self, $args); | |
| 127 | |||
| 128 | 0 | bless $self, $class; | |
| 129 | 0 | return $self; | |
| 130 | } | ||
| 131 | |||
| 132 | 1 | 1; | |