lib/Google/Ads/AdWords/v201809/PolicyViolationError.pm

filter: Statementstmt 81.8% 9 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod n/a totaltotal 75.0% 12 / 16 CC 1 SCAR 3.4
CC
1
Cov
82%
get_xmlns
2.0
__get_attr_class
2.0
BEGIN
1.0
CRAP 1.4
« lib/Google/Ads/AdWords/v201809/PolicyFindingError.pm ↑ Summary lib/Google/Ads/AdWords/v201809/PreferredContent.pm »
1 package Google::Ads::AdWords::v201809::PolicyViolationError;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5  
6 __PACKAGE__->_set_element_form_qualified(1);
7  
8 0 ▶sub get_xmlns { 'https://adwords.google.com/api/adwords/cm/v201809' };
Subroutine get_xmlns: not called CC=1 SCAR=6.9
9  
10 our $XML_ATTRIBUTE_CLASS;
11 undef $XML_ATTRIBUTE_CLASS;
12  
13 0 ▶sub __get_attr_class {
Subroutine __get_attr_class: not called CC=1 SCAR=6.9
14 0 return $XML_ATTRIBUTE_CLASS;
15 }
16  
17  
18 2 ▶use base qw(Google::Ads::AdWords::v201809::ApiError);
Subroutine BEGIN: called CC=1 SCAR=0.0
19 # Variety: sequence
20 use Class::Std::Fast::Storable constructor => 'none';
21 use base qw(Google::Ads::SOAP::Typelib::ComplexType);
22  
23 { # BLOCK to scope variables
24  
25 my %fieldPath_of :ATTR(:get<fieldPath>);
26 my %fieldPathElements_of :ATTR(:get<fieldPathElements>);
27 my %trigger_of :ATTR(:get<trigger>);
28 my %errorString_of :ATTR(:get<errorString>);
29 my %ApiError__Type_of :ATTR(:get<ApiError__Type>);
30 my %key_of :ATTR(:get<key>);
31 my %externalPolicyName_of :ATTR(:get<externalPolicyName>);
32 my %externalPolicyUrl_of :ATTR(:get<externalPolicyUrl>);
33 my %externalPolicyDescription_of :ATTR(:get<externalPolicyDescription>);
34 my %isExemptable_of :ATTR(:get<isExemptable>);
35 my %violatingParts_of :ATTR(:get<violatingParts>);
36  
37 __PACKAGE__->_factory(
38 [ qw( fieldPath
39 fieldPathElements
40 trigger
41 errorString
42 ApiError__Type
43 key
44 externalPolicyName
45 externalPolicyUrl
46 externalPolicyDescription
47 isExemptable
48 violatingParts
49  
50 ) ],
51 {
52 'fieldPath' => \%fieldPath_of,
53 'fieldPathElements' => \%fieldPathElements_of,
54 'trigger' => \%trigger_of,
55 'errorString' => \%errorString_of,
56 'ApiError__Type' => \%ApiError__Type_of,
57 'key' => \%key_of,
58 'externalPolicyName' => \%externalPolicyName_of,
59 'externalPolicyUrl' => \%externalPolicyUrl_of,
60 'externalPolicyDescription' => \%externalPolicyDescription_of,
61 'isExemptable' => \%isExemptable_of,
62 'violatingParts' => \%violatingParts_of,
63 },
64 {
65 'fieldPath' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
66 'fieldPathElements' => 'Google::Ads::AdWords::v201809::FieldPathElement',
67 'trigger' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
68 'errorString' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
69 'ApiError__Type' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
70 'key' => 'Google::Ads::AdWords::v201809::PolicyViolationKey',
71 'externalPolicyName' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
72 'externalPolicyUrl' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
73 'externalPolicyDescription' => 'SOAP::WSDL::XSD::Typelib::Builtin::string',
74 'isExemptable' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean',
75 'violatingParts' => 'Google::Ads::AdWords::v201809::PolicyViolationError::Part',
76 },
77 {
78  
79 'fieldPath' => 'fieldPath',
80 'fieldPathElements' => 'fieldPathElements',
81 'trigger' => 'trigger',
82 'errorString' => 'errorString',
83 'ApiError__Type' => 'ApiError.Type',
84 'key' => 'key',
85 'externalPolicyName' => 'externalPolicyName',
86 'externalPolicyUrl' => 'externalPolicyUrl',
87 'externalPolicyDescription' => 'externalPolicyDescription',
88 'isExemptable' => 'isExemptable',
89 'violatingParts' => 'violatingParts',
90 }
91 );
92  
93 } # end BLOCK
94  
95  
96  
97  
98  
99  
100  
101 1;
102  
103  
104 =pod
105  
106 =head1 NAME
107  
108 Google::Ads::AdWords::v201809::PolicyViolationError
109  
110 =head1 DESCRIPTION
111  
112 Perl data type class for the XML Schema defined complexType
113 PolicyViolationError from the namespace https://adwords.google.com/api/adwords/cm/v201809.
114  
115 Represents violations of a single policy by some text in a field. Violations of a single policy by the same string in multiple places within a field is reported in one instance of this class and only one exemption needs to be filed. Violations of a single policy by two different strings is reported as two separate instances of this class. e.g. If 'ACME' violates 'capitalization' and occurs twice in a text ad it would be represented by one instance. If the ad also contains 'INC' which also violates 'capitalization' it would be represented in a separate instance.
116  
117  
118  
119  
120 =head2 PROPERTIES
121  
122 The following properties may be accessed using get_PROPERTY / set_PROPERTY
123 methods:
124  
125 =over
126  
127 =item * key
128  
129  
130 =item * externalPolicyName
131  
132  
133 =item * externalPolicyUrl
134  
135  
136 =item * externalPolicyDescription
137  
138  
139 =item * isExemptable
140  
141  
142 =item * violatingParts
143  
144  
145  
146  
147 =back
148  
149  
150 =head1 METHODS
151  
152 =head2 new
153  
154 Constructor. The following data structure may be passed to new():
155  
156  
157  
158  
159  
160  
161 =head1 AUTHOR
162  
163 Generated by SOAP::WSDL
164  
165 =cut
166  
« lib/Google/Ads/AdWords/v201809/PolicyFindingError.pm ↑ Summary lib/Google/Ads/AdWords/v201809/PreferredContent.pm »