The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Google::Ads::GoogleAds::GoogleAdsException

SYNOPSIS

  my $api_client = Google::Ads::GoogleAds::Client->new();
  $api_client->set_die_on_faults(0);

  my $response = $api_client->AdGroupAdService()->mutate($mutate_request);

  if ($response->isa("Google::Ads::GoogleAds::GoogleAdsException")) {
    my $google_ads_failure = $response->get_google_ads_failure();

    # Do something with the GoogleAdsFailure object.
  }

DESCRIPTION

The class represents the exception message from Google Ads API server.

ATTRIBUTES

There is a get_ method associated with each attribute for retrieving them dynamically.

code

The HTTP response code.

message

A human-readable description of this exception.

status

The status code of this exception.

details

The detailed information of this exception, which may contain failure messages.

METHODS

get_google_ads_failure

Extracts a Google::Ads::GoogleAds::VX::Errors::GoogleAdsFailure object from the "details" attribute of the current exception object.

Returns

A Google::Ads::GoogleAds::VX::Errors::GoogleAdsFailure object or undef if not found.

LICENSE AND COPYRIGHT

Copyright 2019 Google LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

REPOSITORY INFORMATION

 $Rev: $
 $LastChangedBy: $
 $Id: $