File Coverage

blib/lib/Google/Ads/GoogleAds/V9/Services/GoogleAdsService/MutateOperationResponse.pm
Criterion Covered Total %
statement 12 17 70.5
branch n/a
condition n/a
subroutine 4 5 80.0
pod 0 1 0.0
total 16 23 69.5


line stmt bran cond sub pod time code
1             # Copyright 2020, 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              
16             use strict;
17 1     1   761 use warnings;
  1         2  
  1         82  
18 1     1   6 use base qw(Google::Ads::GoogleAds::BaseEntity);
  1         2  
  1         25  
19 1     1   4  
  1         2  
  1         66  
20             use Google::Ads::GoogleAds::Utils::GoogleAdsHelper;
21 1     1   7  
  1         2  
  1         348  
22             my ($class, $args) = @_;
23             my $self = {
24 0     0 0   adGroupAdLabelResult => $args->{adGroupAdLabelResult},
25             adGroupAdResult => $args->{adGroupAdResult},
26             adGroupAssetResult => $args->{adGroupAssetResult},
27             adGroupBidModifierResult => $args->{adGroupBidModifierResult},
28             adGroupCriterionCustomizerResult =>
29             $args->{adGroupCriterionCustomizerResult},
30             adGroupCriterionLabelResult => $args->{adGroupCriterionLabelResult},
31             adGroupCriterionResult => $args->{adGroupCriterionResult},
32             adGroupCustomizerResult => $args->{adGroupCustomizerResult},
33             adGroupExtensionSettingResult => $args->{adGroupExtensionSettingResult},
34             adGroupFeedResult => $args->{adGroupFeedResult},
35             adGroupLabelResult => $args->{adGroupLabelResult},
36             adGroupResult => $args->{adGroupResult},
37             adParameterResult => $args->{adParameterResult},
38             adResult => $args->{adResult},
39             assetGroupAssetResult => $args->{assetGroupAssetResult},
40             assetGroupListingGroupFilterResult =>
41             $args->{assetGroupListingGroupFilterResult},
42             assetGroupResult => $args->{assetGroupResult},
43             assetResult => $args->{assetResult},
44             assetSetAssetResult => $args->{assetSetAssetResult},
45             assetSetResult => $args->{assetSetResult},
46             biddingDataExclusionResult => $args->{biddingDataExclusionResult},
47             biddingSeasonalityAdjustmentResult =>
48             $args->{biddingSeasonalityAdjustmentResult},
49             biddingStrategyResult => $args->{biddingStrategyResult},
50             campaignAssetResult => $args->{campaignAssetResult},
51             campaignAssetSetResult => $args->{campaignAssetSetResult},
52             campaignBidModifierResult => $args->{campaignBidModifierResult},
53             campaignBudgetResult => $args->{campaignBudgetResult},
54             campaignConversionGoalResult => $args->{campaignConversionGoalResult},
55             campaignCriterionResult => $args->{campaignCriterionResult},
56             campaignCustomizerResult => $args->{campaignCustomizerResult},
57             campaignDraftResult => $args->{campaignDraftResult},
58             campaignExperimentResult => $args->{campaignExperimentResult},
59             campaignExtensionSettingResult => $args->{campaignExtensionSettingResult},
60             campaignFeedResult => $args->{campaignFeedResult},
61             campaignLabelResult => $args->{campaignLabelResult},
62             campaignResult => $args->{campaignResult},
63             campaignSharedSetResult => $args->{campaignSharedSetResult},
64             conversionActionResult => $args->{conversionActionResult},
65             conversionCustomVariableResult => $args->{conversionCustomVariableResult},
66             conversionGoalCampaignConfigResult =>
67             $args->{conversionGoalCampaignConfigResult},
68             conversionValueRuleResult => $args->{conversionValueRuleResult},
69             conversionValueRuleSetResult => $args->{conversionValueRuleSetResult},
70             customConversionGoalResult => $args->{customConversionGoalResult},
71             customerAssetResult => $args->{customerAssetResult},
72             customerConversionGoalResult => $args->{customerConversionGoalResult},
73             customerCustomizerResult => $args->{customerCustomizerResult},
74             customerExtensionSettingResult => $args->{customerExtensionSettingResult},
75             customerFeedResult => $args->{customerFeedResult},
76             customerLabelResult => $args->{customerLabelResult},
77             customerNegativeCriterionResult => $args->{customerNegativeCriterionResult},
78             customerResult => $args->{customerResult},
79             customizerAttributeResult => $args->{customizerAttributeResult},
80             extensionFeedItemResult => $args->{extensionFeedItemResult},
81             feedItemResult => $args->{feedItemResult},
82             feedItemSetLinkResult => $args->{feedItemSetLinkResult},
83             feedItemSetResult => $args->{feedItemSetResult},
84             feedItemTargetResult => $args->{feedItemTargetResult},
85             feedMappingResult => $args->{feedMappingResult},
86             feedResult => $args->{feedResult},
87             keywordPlanAdGroupKeywordResult => $args->{keywordPlanAdGroupKeywordResult},
88             keywordPlanAdGroupResult => $args->{keywordPlanAdGroupResult},
89             keywordPlanCampaignKeywordResult =>
90             $args->{keywordPlanCampaignKeywordResult},
91             keywordPlanCampaignResult => $args->{keywordPlanCampaignResult},
92             keywordPlanResult => $args->{keywordPlanResult},
93             labelResult => $args->{labelResult},
94             mediaFileResult => $args->{mediaFileResult},
95             remarketingActionResult => $args->{remarketingActionResult},
96             sharedCriterionResult => $args->{sharedCriterionResult},
97             sharedSetResult => $args->{sharedSetResult},
98             smartCampaignSettingResult => $args->{smartCampaignSettingResult},
99             userListResult => $args->{userListResult}};
100              
101 0           # Delete the unassigned fields in this object for a more concise JSON payload
102             remove_unassigned_fields($self, $args);
103              
104 0           bless $self, $class;
105             return $self;
106 0           }
107 0            
108             1;