« blib/lib/Google/Ads/AdWords/v201809/TrafficEstimatorService/TrafficEstimatorServiceInterfacePort.pm
↑ Summary
blib/lib/Google/Ads/AdWords/v201809/AdCustomizerFeedService/AdCustomizerFeedServiceInterfacePort.pm »
| 1 | package Google::Ads::AdWords::v201809::AccountLabelService::AccountLabelServiceInterfacePort; | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | use Class::Std::Fast::Storable; | ||
| 5 | use Scalar::Util qw(blessed); | ||
| 6 | use base qw(SOAP::WSDL::Client::Base); | ||
| 7 | |||
| 8 | # only load if it hasn't been loaded before | ||
| 9 | require Google::Ads::AdWords::v201809::TypeMaps::AccountLabelService | ||
| 10 | if not Google::Ads::AdWords::v201809::TypeMaps::AccountLabelService->can('get_class'); | ||
| 11 | |||
| 12 | sub START { | ||
| 13 | $_[0]->set_proxy('https://adwords.google.com/api/adwords/mcm/v201809/AccountLabelService') if not $_[2]->{proxy}; | ||
| 14 | $_[0]->set_class_resolver('Google::Ads::AdWords::v201809::TypeMaps::AccountLabelService') | ||
| 15 | if not $_[2]->{class_resolver}; | ||
| 16 | |||
| 17 | $_[0]->set_prefix($_[2]->{use_prefix}) if exists $_[2]->{use_prefix}; | ||
| 18 | } | ||
| 19 | |||
| 20 | sub get { | ||
| 21 | my ($self, $body, $header) = @_; | ||
| 22 | die "get must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 23 | return $self->SUPER::call({ | ||
| 24 | operation => 'get', | ||
| 25 | soap_action => '', | ||
| 26 | style => 'document', | ||
| 27 | body => { | ||
| 28 | |||
| 29 | |||
| 30 | 'use' => 'literal', | ||
| 31 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 32 | encodingStyle => '', | ||
| 33 | parts => [qw( Google::Ads::AdWords::v201809::AccountLabelService::get )], | ||
| 34 | }, | ||
| 35 | header => { | ||
| 36 | |||
| 37 | |||
| 38 | |||
| 39 | 'use' => 'literal', | ||
| 40 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 41 | encodingStyle => '', | ||
| 42 | parts => [qw( Google::Ads::AdWords::v201809::AccountLabelService::RequestHeader )], | ||
| 43 | }, | ||
| 44 | headerfault => { | ||
| 45 | |||
| 46 | } | ||
| 47 | }, $body, $header); | ||
| 48 | } | ||
| 49 | |||
| 50 | |||
| 51 | sub mutate { | ||
| 52 | my ($self, $body, $header) = @_; | ||
| 53 | die "mutate must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 54 | return $self->SUPER::call({ | ||
| 55 | operation => 'mutate', | ||
| 56 | soap_action => '', | ||
| 57 | style => 'document', | ||
| 58 | body => { | ||
| 59 | |||
| 60 | |||
| 61 | 'use' => 'literal', | ||
| 62 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 63 | encodingStyle => '', | ||
| 64 | parts => [qw( Google::Ads::AdWords::v201809::AccountLabelService::mutate )], | ||
| 65 | }, | ||
| 66 | header => { | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | 'use' => 'literal', | ||
| 71 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 72 | encodingStyle => '', | ||
| 73 | parts => [qw( Google::Ads::AdWords::v201809::AccountLabelService::RequestHeader )], | ||
| 74 | }, | ||
| 75 | headerfault => { | ||
| 76 | |||
| 77 | } | ||
| 78 | }, $body, $header); | ||
| 79 | } | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | |||
| 84 | 1; | ||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | __END__ | ||
| 89 | |||
| 90 | =pod | ||
| 91 | |||
| 92 | =head1 NAME | ||
| 93 | |||
| 94 | Google::Ads::AdWords::v201809::AccountLabelService::AccountLabelServiceInterfacePort - SOAP Interface for the AccountLabelService Web Service | ||
| 95 | |||
| 96 | =head1 SYNOPSIS | ||
| 97 | |||
| 98 | use Google::Ads::AdWords::v201809::AccountLabelService::AccountLabelServiceInterfacePort; | ||
| 99 | my $interface = Google::Ads::AdWords::v201809::AccountLabelService::AccountLabelServiceInterfacePort->new(); | ||
| 100 | |||
| 101 | my $response; | ||
| 102 | $response = $interface->get(); | ||
| 103 | $response = $interface->mutate(); | ||
| 104 | |||
| 105 | |||
| 106 | |||
| 107 | =head1 DESCRIPTION | ||
| 108 | |||
| 109 | SOAP Interface for the AccountLabelService web service | ||
| 110 | located at https://adwords.google.com/api/adwords/mcm/v201809/AccountLabelService. | ||
| 111 | |||
| 112 | =head1 SERVICE AccountLabelService | ||
| 113 | |||
| 114 | |||
| 115 | |||
| 116 | =head2 Port AccountLabelServiceInterfacePort | ||
| 117 | |||
| 118 | |||
| 119 | |||
| 120 | =head1 METHODS | ||
| 121 | |||
| 122 | =head2 General methods | ||
| 123 | |||
| 124 | =head3 new | ||
| 125 | |||
| 126 | Constructor. | ||
| 127 | |||
| 128 | All arguments are forwarded to L<SOAP::WSDL::Client|SOAP::WSDL::Client>. | ||
| 129 | |||
| 130 | =head2 SOAP Service methods | ||
| 131 | |||
| 132 | Method synopsis is displayed with hash refs as parameters. | ||
| 133 | |||
| 134 | The commented class names in the method's parameters denote that objects | ||
| 135 | of the corresponding class can be passed instead of the marked hash ref. | ||
| 136 | |||
| 137 | You may pass any combination of objects, hash and list refs to these | ||
| 138 | methods, as long as you meet the structure. | ||
| 139 | |||
| 140 | List items (i.e. multiple occurences) are not displayed in the synopsis. | ||
| 141 | You may generally pass a list ref of hash refs (or objects) instead of a hash | ||
| 142 | ref - this may result in invalid XML if used improperly, though. Note that | ||
| 143 | SOAP::WSDL always expects list references at maximum depth position. | ||
| 144 | |||
| 145 | XML attributes are not displayed in this synopsis and cannot be set using | ||
| 146 | hash refs. See the respective class' documentation for additional information. | ||
| 147 | |||
| 148 | |||
| 149 | |||
| 150 | =head3 get | ||
| 151 | |||
| 152 | Returns a list of labels specified by the selector for the authenticated user. @param selector filters the list of labels to return @return response containing lists of labels that meet all the criteria of the selector @throws ApiException if a problem occurs fetching the information requested | ||
| 153 | |||
| 154 | Returns a L<Google::Ads::AdWords::v201809::AccountLabelService::getResponse|Google::Ads::AdWords::v201809::AccountLabelService::getResponse> object. | ||
| 155 | |||
| 156 | $response = $interface->get( { | ||
| 157 | selector => $a_reference_to, # see Google::Ads::AdWords::v201809::Selector | ||
| 158 | },, | ||
| 159 | ); | ||
| 160 | |||
| 161 | =head3 mutate | ||
| 162 | |||
| 163 | Possible actions: <ul> <li> Create a new label - create a new {@link Label} and call mutate with ADD operator <li> Edit the label name - set the appropriate fields in your {@linkplain Label} and call mutate with the SET operator. Null fields will be interpreted to mean "no change" <li> Delete the label - call mutate with REMOVE operator </ul> @param operations list of unique operations to be executed in a single transaction, in the order specified. @return the mutated labels, in the same order that they were in as the parameter @throws ApiException if problems occurs while modifying label information | ||
| 164 | |||
| 165 | Returns a L<Google::Ads::AdWords::v201809::AccountLabelService::mutateResponse|Google::Ads::AdWords::v201809::AccountLabelService::mutateResponse> object. | ||
| 166 | |||
| 167 | $response = $interface->mutate( { | ||
| 168 | operations => $a_reference_to, # see Google::Ads::AdWords::v201809::AccountLabelOperation | ||
| 169 | },, | ||
| 170 | ); | ||
| 171 | |||
| 172 | |||
| 173 | |||
| 174 | =head1 AUTHOR | ||
| 175 | |||
| 176 | Generated by SOAP::WSDL on Thu Sep 20 11:05:37 2018 | ||
| 177 | |||
| 178 | =cut |