File Coverage

blib/lib/Google/Ads/GoogleAds/V11/Errors/ErrorCode.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   747 use warnings;
  1         2  
  1         22  
18 1     1   4 use base qw(Google::Ads::GoogleAds::BaseEntity);
  1         2  
  1         22  
19 1     1   6  
  1         2  
  1         68  
20             use Google::Ads::GoogleAds::Utils::GoogleAdsHelper;
21 1     1   12  
  1         3  
  1         620  
22             my ($class, $args) = @_;
23             my $self = {
24 0     0 0   accessInvitationError => $args->{accessInvitationError},
25             accountBudgetProposalError => $args->{accountBudgetProposalError},
26             accountLinkError => $args->{accountLinkError},
27             adCustomizerError => $args->{adCustomizerError},
28             adError => $args->{adError},
29             adGroupAdError => $args->{adGroupAdError},
30             adGroupBidModifierError => $args->{adGroupBidModifierError},
31             adGroupCriterionCustomizerError => $args->{adGroupCriterionCustomizerError},
32             adGroupCriterionError => $args->{adGroupCriterionError},
33             adGroupCustomizerError => $args->{adGroupCustomizerError},
34             adGroupError => $args->{adGroupError},
35             adGroupFeedError => $args->{adGroupFeedError},
36             adParameterError => $args->{adParameterError},
37             adSharingError => $args->{adSharingError},
38             adxError => $args->{adxError},
39             assetError => $args->{assetError},
40             assetGroupAssetError => $args->{assetGroupAssetError},
41             assetGroupError => $args->{assetGroupError},
42             assetGroupListingGroupFilterError =>
43             $args->{assetGroupListingGroupFilterError},
44             assetLinkError => $args->{assetLinkError},
45             assetSetAssetError => $args->{assetSetAssetError},
46             assetSetError => $args->{assetSetError},
47             assetSetLinkError => $args->{assetSetLinkError},
48             audienceError => $args->{audienceError},
49             audienceInsightsError => $args->{audienceInsightsError},
50             authenticationError => $args->{authenticationError},
51             authorizationError => $args->{authorizationError},
52             batchJobError => $args->{batchJobError},
53             biddingError => $args->{biddingError},
54             biddingStrategyError => $args->{biddingStrategyError},
55             billingSetupError => $args->{billingSetupError},
56             campaignBudgetError => $args->{campaignBudgetError},
57             campaignConversionGoalError => $args->{campaignConversionGoalError},
58             campaignCriterionError => $args->{campaignCriterionError},
59             campaignCustomizerError => $args->{campaignCustomizerError},
60             campaignDraftError => $args->{campaignDraftError},
61             campaignError => $args->{campaignError},
62             campaignExperimentError => $args->{campaignExperimentError},
63             campaignFeedError => $args->{campaignFeedError},
64             campaignSharedSetError => $args->{campaignSharedSetError},
65             changeEventError => $args->{changeEventError},
66             changeStatusError => $args->{changeStatusError},
67             collectionSizeError => $args->{collectionSizeError},
68             contextError => $args->{contextError},
69             conversionActionError => $args->{conversionActionError},
70             conversionAdjustmentUploadError => $args->{conversionAdjustmentUploadError},
71             conversionCustomVariableError => $args->{conversionCustomVariableError},
72             conversionGoalCampaignConfigError =>
73             $args->{conversionGoalCampaignConfigError},
74             conversionUploadError => $args->{conversionUploadError},
75             conversionValueRuleError => $args->{conversionValueRuleError},
76             conversionValueRuleSetError => $args->{conversionValueRuleSetError},
77             countryCodeError => $args->{countryCodeError},
78             criterionError => $args->{criterionError},
79             currencyCodeError => $args->{currencyCodeError},
80             customAudienceError => $args->{customAudienceError},
81             customConversionGoalError => $args->{customConversionGoalError},
82             customInterestError => $args->{customInterestError},
83             customerClientLinkError => $args->{customerClientLinkError},
84             customerCustomizerError => $args->{customerCustomizerError},
85             customerError => $args->{customerError},
86             customerFeedError => $args->{customerFeedError},
87             customerManagerLinkError => $args->{customerManagerLinkError},
88             customerUserAccessError => $args->{customerUserAccessError},
89             customizerAttributeError => $args->{customizerAttributeError},
90             databaseError => $args->{databaseError},
91             dateError => $args->{dateError},
92             dateRangeError => $args->{dateRangeError},
93             distinctError => $args->{distinctError},
94             enumError => $args->{enumError},
95             experimentArmError => $args->{experimentArmError},
96             experimentError => $args->{experimentError},
97             extensionFeedItemError => $args->{extensionFeedItemError},
98             extensionSettingError => $args->{extensionSettingError},
99             feedAttributeReferenceError => $args->{feedAttributeReferenceError},
100             feedError => $args->{feedError},
101             feedItemError => $args->{feedItemError},
102             feedItemSetError => $args->{feedItemSetError},
103             feedItemSetLinkError => $args->{feedItemSetLinkError},
104             feedItemTargetError => $args->{feedItemTargetError},
105             feedItemValidationError => $args->{feedItemValidationError},
106             feedMappingError => $args->{feedMappingError},
107             fieldError => $args->{fieldError},
108             fieldMaskError => $args->{fieldMaskError},
109             functionError => $args->{functionError},
110             functionParsingError => $args->{functionParsingError},
111             geoTargetConstantSuggestionError =>
112             $args->{geoTargetConstantSuggestionError},
113             headerError => $args->{headerError},
114             idError => $args->{idError},
115             imageError => $args->{imageError},
116             internalError => $args->{internalError},
117             invoiceError => $args->{invoiceError},
118             keywordPlanAdGroupError => $args->{keywordPlanAdGroupError},
119             keywordPlanAdGroupKeywordError => $args->{keywordPlanAdGroupKeywordError},
120             keywordPlanCampaignError => $args->{keywordPlanCampaignError},
121             keywordPlanCampaignKeywordError => $args->{keywordPlanCampaignKeywordError},
122             keywordPlanError => $args->{keywordPlanError},
123             keywordPlanIdeaError => $args->{keywordPlanIdeaError},
124             labelError => $args->{labelError},
125             languageCodeError => $args->{languageCodeError},
126             listOperationError => $args->{listOperationError},
127             managerLinkError => $args->{managerLinkError},
128             mediaBundleError => $args->{mediaBundleError},
129             mediaFileError => $args->{mediaFileError},
130             mediaUploadError => $args->{mediaUploadError},
131             merchantCenterError => $args->{merchantCenterError},
132             multiplierError => $args->{multiplierError},
133             mutateError => $args->{mutateError},
134             newResourceCreationError => $args->{newResourceCreationError},
135             notAllowlistedError => $args->{notAllowlistedError},
136             notEmptyError => $args->{notEmptyError},
137             nullError => $args->{nullError},
138             offlineUserDataJobError => $args->{offlineUserDataJobError},
139             operationAccessDeniedError => $args->{operationAccessDeniedError},
140             operatorError => $args->{operatorError},
141             partialFailureError => $args->{partialFailureError},
142             paymentsAccountError => $args->{paymentsAccountError},
143             policyFindingError => $args->{policyFindingError},
144             policyValidationParameterError => $args->{policyValidationParameterError},
145             policyViolationError => $args->{policyViolationError},
146             queryError => $args->{queryError},
147             quotaError => $args->{quotaError},
148             rangeError => $args->{rangeError},
149             reachPlanError => $args->{reachPlanError},
150             recommendationError => $args->{recommendationError},
151             regionCodeError => $args->{regionCodeError},
152             requestError => $args->{requestError},
153             resourceAccessDeniedError => $args->{resourceAccessDeniedError},
154             resourceCountLimitExceededError => $args->{resourceCountLimitExceededError},
155             settingError => $args->{settingError},
156             sharedCriterionError => $args->{sharedCriterionError},
157             sharedSetError => $args->{sharedSetError},
158             sizeLimitError => $args->{sizeLimitError},
159             stringFormatError => $args->{stringFormatError},
160             stringLengthError => $args->{stringLengthError},
161             thirdPartyAppAnalyticsLinkError => $args->{thirdPartyAppAnalyticsLinkError},
162             timeZoneError => $args->{timeZoneError},
163             urlFieldError => $args->{urlFieldError},
164             userDataError => $args->{userDataError},
165             userListError => $args->{userListError},
166             youtubeVideoRegistrationError => $args->{youtubeVideoRegistrationError}};
167              
168 0           # Delete the unassigned fields in this object for a more concise JSON payload
169             remove_unassigned_fields($self, $args);
170              
171 0           bless $self, $class;
172             return $self;
173 0           }
174 0            
175             1;