File Coverage

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