File Coverage

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