« blib/lib/Google/Ads/AdWords/v201710/DataService/DataServiceInterfacePort.pm
↑ Summary
blib/lib/Google/Ads/AdWords/v201806/DataService/DataServiceInterfacePort.pm »
| 1 | package Google::Ads::AdWords::v201802::DataService::DataServiceInterfacePort; | ||
| 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::v201802::TypeMaps::DataService | ||
| 10 | if not Google::Ads::AdWords::v201802::TypeMaps::DataService->can('get_class'); | ||
| 11 | |||
| 12 | sub START { | ||
| 13 | $_[0]->set_proxy('https://adwords.google.com/api/adwords/cm/v201802/DataService') if not $_[2]->{proxy}; | ||
| 14 | $_[0]->set_class_resolver('Google::Ads::AdWords::v201802::TypeMaps::DataService') | ||
| 15 | if not $_[2]->{class_resolver}; | ||
| 16 | |||
| 17 | $_[0]->set_prefix($_[2]->{use_prefix}) if exists $_[2]->{use_prefix}; | ||
| 18 | } | ||
| 19 | |||
| 20 | sub getAdGroupBidLandscape { | ||
| 21 | my ($self, $body, $header) = @_; | ||
| 22 | die "getAdGroupBidLandscape must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 23 | return $self->SUPER::call({ | ||
| 24 | operation => 'getAdGroupBidLandscape', | ||
| 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::v201802::DataService::getAdGroupBidLandscape )], | ||
| 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::v201802::DataService::RequestHeader )], | ||
| 43 | }, | ||
| 44 | headerfault => { | ||
| 45 | |||
| 46 | } | ||
| 47 | }, $body, $header); | ||
| 48 | } | ||
| 49 | |||
| 50 | |||
| 51 | sub getCampaignCriterionBidLandscape { | ||
| 52 | my ($self, $body, $header) = @_; | ||
| 53 | die "getCampaignCriterionBidLandscape must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 54 | return $self->SUPER::call({ | ||
| 55 | operation => 'getCampaignCriterionBidLandscape', | ||
| 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::v201802::DataService::getCampaignCriterionBidLandscape )], | ||
| 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::v201802::DataService::RequestHeader )], | ||
| 74 | }, | ||
| 75 | headerfault => { | ||
| 76 | |||
| 77 | } | ||
| 78 | }, $body, $header); | ||
| 79 | } | ||
| 80 | |||
| 81 | |||
| 82 | sub getCriterionBidLandscape { | ||
| 83 | my ($self, $body, $header) = @_; | ||
| 84 | die "getCriterionBidLandscape must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 85 | return $self->SUPER::call({ | ||
| 86 | operation => 'getCriterionBidLandscape', | ||
| 87 | soap_action => '', | ||
| 88 | style => 'document', | ||
| 89 | body => { | ||
| 90 | |||
| 91 | |||
| 92 | 'use' => 'literal', | ||
| 93 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 94 | encodingStyle => '', | ||
| 95 | parts => [qw( Google::Ads::AdWords::v201802::DataService::getCriterionBidLandscape )], | ||
| 96 | }, | ||
| 97 | header => { | ||
| 98 | |||
| 99 | |||
| 100 | |||
| 101 | 'use' => 'literal', | ||
| 102 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 103 | encodingStyle => '', | ||
| 104 | parts => [qw( Google::Ads::AdWords::v201802::DataService::RequestHeader )], | ||
| 105 | }, | ||
| 106 | headerfault => { | ||
| 107 | |||
| 108 | } | ||
| 109 | }, $body, $header); | ||
| 110 | } | ||
| 111 | |||
| 112 | |||
| 113 | sub getDomainCategory { | ||
| 114 | my ($self, $body, $header) = @_; | ||
| 115 | die "getDomainCategory must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 116 | return $self->SUPER::call({ | ||
| 117 | operation => 'getDomainCategory', | ||
| 118 | soap_action => '', | ||
| 119 | style => 'document', | ||
| 120 | body => { | ||
| 121 | |||
| 122 | |||
| 123 | 'use' => 'literal', | ||
| 124 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 125 | encodingStyle => '', | ||
| 126 | parts => [qw( Google::Ads::AdWords::v201802::DataService::getDomainCategory )], | ||
| 127 | }, | ||
| 128 | header => { | ||
| 129 | |||
| 130 | |||
| 131 | |||
| 132 | 'use' => 'literal', | ||
| 133 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 134 | encodingStyle => '', | ||
| 135 | parts => [qw( Google::Ads::AdWords::v201802::DataService::RequestHeader )], | ||
| 136 | }, | ||
| 137 | headerfault => { | ||
| 138 | |||
| 139 | } | ||
| 140 | }, $body, $header); | ||
| 141 | } | ||
| 142 | |||
| 143 | |||
| 144 | sub queryAdGroupBidLandscape { | ||
| 145 | my ($self, $body, $header) = @_; | ||
| 146 | die "queryAdGroupBidLandscape must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 147 | return $self->SUPER::call({ | ||
| 148 | operation => 'queryAdGroupBidLandscape', | ||
| 149 | soap_action => '', | ||
| 150 | style => 'document', | ||
| 151 | body => { | ||
| 152 | |||
| 153 | |||
| 154 | 'use' => 'literal', | ||
| 155 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 156 | encodingStyle => '', | ||
| 157 | parts => [qw( Google::Ads::AdWords::v201802::DataService::queryAdGroupBidLandscape )], | ||
| 158 | }, | ||
| 159 | header => { | ||
| 160 | |||
| 161 | |||
| 162 | |||
| 163 | 'use' => 'literal', | ||
| 164 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 165 | encodingStyle => '', | ||
| 166 | parts => [qw( Google::Ads::AdWords::v201802::DataService::RequestHeader )], | ||
| 167 | }, | ||
| 168 | headerfault => { | ||
| 169 | |||
| 170 | } | ||
| 171 | }, $body, $header); | ||
| 172 | } | ||
| 173 | |||
| 174 | |||
| 175 | sub queryCampaignCriterionBidLandscape { | ||
| 176 | my ($self, $body, $header) = @_; | ||
| 177 | die "queryCampaignCriterionBidLandscape must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 178 | return $self->SUPER::call({ | ||
| 179 | operation => 'queryCampaignCriterionBidLandscape', | ||
| 180 | soap_action => '', | ||
| 181 | style => 'document', | ||
| 182 | body => { | ||
| 183 | |||
| 184 | |||
| 185 | 'use' => 'literal', | ||
| 186 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 187 | encodingStyle => '', | ||
| 188 | parts => [qw( Google::Ads::AdWords::v201802::DataService::queryCampaignCriterionBidLandscape )], | ||
| 189 | }, | ||
| 190 | header => { | ||
| 191 | |||
| 192 | |||
| 193 | |||
| 194 | 'use' => 'literal', | ||
| 195 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 196 | encodingStyle => '', | ||
| 197 | parts => [qw( Google::Ads::AdWords::v201802::DataService::RequestHeader )], | ||
| 198 | }, | ||
| 199 | headerfault => { | ||
| 200 | |||
| 201 | } | ||
| 202 | }, $body, $header); | ||
| 203 | } | ||
| 204 | |||
| 205 | |||
| 206 | sub queryCriterionBidLandscape { | ||
| 207 | my ($self, $body, $header) = @_; | ||
| 208 | die "queryCriterionBidLandscape must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 209 | return $self->SUPER::call({ | ||
| 210 | operation => 'queryCriterionBidLandscape', | ||
| 211 | soap_action => '', | ||
| 212 | style => 'document', | ||
| 213 | body => { | ||
| 214 | |||
| 215 | |||
| 216 | 'use' => 'literal', | ||
| 217 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 218 | encodingStyle => '', | ||
| 219 | parts => [qw( Google::Ads::AdWords::v201802::DataService::queryCriterionBidLandscape )], | ||
| 220 | }, | ||
| 221 | header => { | ||
| 222 | |||
| 223 | |||
| 224 | |||
| 225 | 'use' => 'literal', | ||
| 226 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 227 | encodingStyle => '', | ||
| 228 | parts => [qw( Google::Ads::AdWords::v201802::DataService::RequestHeader )], | ||
| 229 | }, | ||
| 230 | headerfault => { | ||
| 231 | |||
| 232 | } | ||
| 233 | }, $body, $header); | ||
| 234 | } | ||
| 235 | |||
| 236 | |||
| 237 | sub queryDomainCategory { | ||
| 238 | my ($self, $body, $header) = @_; | ||
| 239 | die "queryDomainCategory must be called as object method (\$self is <$self>)" if not blessed($self); | ||
| 240 | return $self->SUPER::call({ | ||
| 241 | operation => 'queryDomainCategory', | ||
| 242 | soap_action => '', | ||
| 243 | style => 'document', | ||
| 244 | body => { | ||
| 245 | |||
| 246 | |||
| 247 | 'use' => 'literal', | ||
| 248 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 249 | encodingStyle => '', | ||
| 250 | parts => [qw( Google::Ads::AdWords::v201802::DataService::queryDomainCategory )], | ||
| 251 | }, | ||
| 252 | header => { | ||
| 253 | |||
| 254 | |||
| 255 | |||
| 256 | 'use' => 'literal', | ||
| 257 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 258 | encodingStyle => '', | ||
| 259 | parts => [qw( Google::Ads::AdWords::v201802::DataService::RequestHeader )], | ||
| 260 | }, | ||
| 261 | headerfault => { | ||
| 262 | |||
| 263 | } | ||
| 264 | }, $body, $header); | ||
| 265 | } | ||
| 266 | |||
| 267 | |||
| 268 | |||
| 269 | |||
| 270 | 1; | ||
| 271 | |||
| 272 | |||
| 273 | |||
| 274 | __END__ | ||
| 275 | |||
| 276 | =pod | ||
| 277 | |||
| 278 | =head1 NAME | ||
| 279 | |||
| 280 | Google::Ads::AdWords::v201802::DataService::DataServiceInterfacePort - SOAP Interface for the DataService Web Service | ||
| 281 | |||
| 282 | =head1 SYNOPSIS | ||
| 283 | |||
| 284 | use Google::Ads::AdWords::v201802::DataService::DataServiceInterfacePort; | ||
| 285 | my $interface = Google::Ads::AdWords::v201802::DataService::DataServiceInterfacePort->new(); | ||
| 286 | |||
| 287 | my $response; | ||
| 288 | $response = $interface->getAdGroupBidLandscape(); | ||
| 289 | $response = $interface->getCampaignCriterionBidLandscape(); | ||
| 290 | $response = $interface->getCriterionBidLandscape(); | ||
| 291 | $response = $interface->getDomainCategory(); | ||
| 292 | $response = $interface->queryAdGroupBidLandscape(); | ||
| 293 | $response = $interface->queryCampaignCriterionBidLandscape(); | ||
| 294 | $response = $interface->queryCriterionBidLandscape(); | ||
| 295 | $response = $interface->queryDomainCategory(); | ||
| 296 | |||
| 297 | |||
| 298 | |||
| 299 | =head1 DESCRIPTION | ||
| 300 | |||
| 301 | SOAP Interface for the DataService web service | ||
| 302 | located at https://adwords.google.com/api/adwords/cm/v201802/DataService. | ||
| 303 | |||
| 304 | =head1 SERVICE DataService | ||
| 305 | |||
| 306 | |||
| 307 | |||
| 308 | =head2 Port DataServiceInterfacePort | ||
| 309 | |||
| 310 | |||
| 311 | |||
| 312 | =head1 METHODS | ||
| 313 | |||
| 314 | =head2 General methods | ||
| 315 | |||
| 316 | =head3 new | ||
| 317 | |||
| 318 | Constructor. | ||
| 319 | |||
| 320 | All arguments are forwarded to L<SOAP::WSDL::Client|SOAP::WSDL::Client>. | ||
| 321 | |||
| 322 | =head2 SOAP Service methods | ||
| 323 | |||
| 324 | Method synopsis is displayed with hash refs as parameters. | ||
| 325 | |||
| 326 | The commented class names in the method's parameters denote that objects | ||
| 327 | of the corresponding class can be passed instead of the marked hash ref. | ||
| 328 | |||
| 329 | You may pass any combination of objects, hash and list refs to these | ||
| 330 | methods, as long as you meet the structure. | ||
| 331 | |||
| 332 | List items (i.e. multiple occurences) are not displayed in the synopsis. | ||
| 333 | You may generally pass a list ref of hash refs (or objects) instead of a hash | ||
| 334 | ref - this may result in invalid XML if used improperly, though. Note that | ||
| 335 | SOAP::WSDL always expects list references at maximum depth position. | ||
| 336 | |||
| 337 | XML attributes are not displayed in this synopsis and cannot be set using | ||
| 338 | hash refs. See the respective class' documentation for additional information. | ||
| 339 | |||
| 340 | |||
| 341 | |||
| 342 | =head3 getAdGroupBidLandscape | ||
| 343 | |||
| 344 | Returns a list of {@link AdGroupBidLandscape}s for the ad groups specified in the selector. In the result, the returned {@link LandscapePoint}s are grouped into {@link AdGroupBidLandscape}s by their ad groups, and numberResults of paging limits the total number of {@link LandscapePoint}s instead of number of {@link AdGroupBidLandscape}s. @param serviceSelector Selects the entities to return bid landscapes for. @return A list of bid landscapes. @throws ApiException when there is at least one error with the request. | ||
| 345 | |||
| 346 | Returns a L<Google::Ads::AdWords::v201802::DataService::getAdGroupBidLandscapeResponse|Google::Ads::AdWords::v201802::DataService::getAdGroupBidLandscapeResponse> object. | ||
| 347 | |||
| 348 | $response = $interface->getAdGroupBidLandscape( { | ||
| 349 | serviceSelector => $a_reference_to, # see Google::Ads::AdWords::v201802::Selector | ||
| 350 | },, | ||
| 351 | ); | ||
| 352 | |||
| 353 | =head3 getCampaignCriterionBidLandscape | ||
| 354 | |||
| 355 | Returns a list of {@link CriterionBidLandscape}s for the campaign criteria specified in the selector. In the result, the returned {@link LandscapePoint}s are grouped into {@link CriterionBidLandscape}s by their campaign id and criterion id, and numberResults of paging limits the total number of {@link LandscapePoint}s instead of number of {@link CriterionBidLandscape}s. @param serviceSelector Selects the entities to return bid landscapes for. @return A list of bid landscapes. @throws ApiException when there is at least one error with the request. | ||
| 356 | |||
| 357 | Returns a L<Google::Ads::AdWords::v201802::DataService::getCampaignCriterionBidLandscapeResponse|Google::Ads::AdWords::v201802::DataService::getCampaignCriterionBidLandscapeResponse> object. | ||
| 358 | |||
| 359 | $response = $interface->getCampaignCriterionBidLandscape( { | ||
| 360 | serviceSelector => $a_reference_to, # see Google::Ads::AdWords::v201802::Selector | ||
| 361 | },, | ||
| 362 | ); | ||
| 363 | |||
| 364 | =head3 getCriterionBidLandscape | ||
| 365 | |||
| 366 | Returns a list of {@link CriterionBidLandscape}s for the criteria specified in the selector. In the result, the returned {@link LandscapePoint}s are grouped into {@link CriterionBidLandscape}s by their criteria, and numberResults of paging limits the total number of {@link LandscapePoint}s instead of number of {@link CriterionBidLandscape}s. @param serviceSelector Selects the entities to return bid landscapes for. @return A list of bid landscapes. @throws ApiException when there is at least one error with the request. | ||
| 367 | |||
| 368 | Returns a L<Google::Ads::AdWords::v201802::DataService::getCriterionBidLandscapeResponse|Google::Ads::AdWords::v201802::DataService::getCriterionBidLandscapeResponse> object. | ||
| 369 | |||
| 370 | $response = $interface->getCriterionBidLandscape( { | ||
| 371 | serviceSelector => $a_reference_to, # see Google::Ads::AdWords::v201802::Selector | ||
| 372 | },, | ||
| 373 | ); | ||
| 374 | |||
| 375 | =head3 getDomainCategory | ||
| 376 | |||
| 377 | Returns a list of domain categories that can be used to create {@link WebPage} criterion. @param serviceSelector Selects the entities to return domain categories for. @return A list of domain categories. @throws ApiException when there is at least one error with the request. | ||
| 378 | |||
| 379 | Returns a L<Google::Ads::AdWords::v201802::DataService::getDomainCategoryResponse|Google::Ads::AdWords::v201802::DataService::getDomainCategoryResponse> object. | ||
| 380 | |||
| 381 | $response = $interface->getDomainCategory( { | ||
| 382 | serviceSelector => $a_reference_to, # see Google::Ads::AdWords::v201802::Selector | ||
| 383 | },, | ||
| 384 | ); | ||
| 385 | |||
| 386 | =head3 queryAdGroupBidLandscape | ||
| 387 | |||
| 388 | Returns a list of {@link AdGroupBidLandscape}s for the ad groups that match the query. In the result, the returned {@link LandscapePoint}s are grouped into {@link AdGroupBidLandscape}s by their ad groups, and numberResults of paging limits the total number of {@link LandscapePoint}s instead of number of {@link AdGroupBidLandscape}s. @param query The SQL-like AWQL query string. @return A list of bid landscapes. @throws ApiException if problems occur while parsing the query or fetching bid landscapes. | ||
| 389 | |||
| 390 | Returns a L<Google::Ads::AdWords::v201802::DataService::queryAdGroupBidLandscapeResponse|Google::Ads::AdWords::v201802::DataService::queryAdGroupBidLandscapeResponse> object. | ||
| 391 | |||
| 392 | $response = $interface->queryAdGroupBidLandscape( { | ||
| 393 | query => $some_value, # string | ||
| 394 | },, | ||
| 395 | ); | ||
| 396 | |||
| 397 | =head3 queryCampaignCriterionBidLandscape | ||
| 398 | |||
| 399 | Returns a list of {@link CriterionBidLandscape}s for the campaign criteria that match the query. In the result, the returned {@link LandscapePoint}s are grouped into {@link CriterionBidLandscape}s by their campaign id and criterion id, and numberResults of paging limits the total number of {@link LandscapePoint}s instead of number of {@link CriterionBidLandscape}s. @param query The SQL-like AWQL query string. @return A list of bid landscapes. @throws ApiException if problems occur while parsing the query or fetching bid landscapes. | ||
| 400 | |||
| 401 | Returns a L<Google::Ads::AdWords::v201802::DataService::queryCampaignCriterionBidLandscapeResponse|Google::Ads::AdWords::v201802::DataService::queryCampaignCriterionBidLandscapeResponse> object. | ||
| 402 | |||
| 403 | $response = $interface->queryCampaignCriterionBidLandscape( { | ||
| 404 | query => $some_value, # string | ||
| 405 | },, | ||
| 406 | ); | ||
| 407 | |||
| 408 | =head3 queryCriterionBidLandscape | ||
| 409 | |||
| 410 | Returns a list of {@link CriterionBidLandscape}s for the criteria that match the query. In the result, the returned {@link LandscapePoint}s are grouped into {@link CriterionBidLandscape}s by their criteria, and numberResults of paging limits the total number of {@link LandscapePoint}s instead of number of {@link CriterionBidLandscape}s. @param query The SQL-like AWQL query string. @return A list of bid landscapes. @throws ApiException if problems occur while parsing the query or fetching bid landscapes. | ||
| 411 | |||
| 412 | Returns a L<Google::Ads::AdWords::v201802::DataService::queryCriterionBidLandscapeResponse|Google::Ads::AdWords::v201802::DataService::queryCriterionBidLandscapeResponse> object. | ||
| 413 | |||
| 414 | $response = $interface->queryCriterionBidLandscape( { | ||
| 415 | query => $some_value, # string | ||
| 416 | },, | ||
| 417 | ); | ||
| 418 | |||
| 419 | =head3 queryDomainCategory | ||
| 420 | |||
| 421 | Returns a list of domain categories that can be used to create {@link WebPage} criterion. @param query The SQL-like AWQL query string. @return A list of domain categories. @throws ApiException if problems occur while parsing the query or fetching domain categories. | ||
| 422 | |||
| 423 | Returns a L<Google::Ads::AdWords::v201802::DataService::queryDomainCategoryResponse|Google::Ads::AdWords::v201802::DataService::queryDomainCategoryResponse> object. | ||
| 424 | |||
| 425 | $response = $interface->queryDomainCategory( { | ||
| 426 | query => $some_value, # string | ||
| 427 | },, | ||
| 428 | ); | ||
| 429 | |||
| 430 | |||
| 431 | |||
| 432 | =head1 AUTHOR | ||
| 433 | |||
| 434 | Generated by SOAP::WSDL on Mon Feb 26 21:10:01 2018 | ||
| 435 | |||
| 436 | =cut |