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 thie GoogleAdsFailure object.
  }

DESCRIPTION

The class representing 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 details information of this exception, which may contains 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.