Google::Ads::GoogleAds::GoogleAdsException
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. }
The class representing the exception message from Google Ads API server.
There is a get_ method associated with each attribute for retrieving them dynamically.
The HTTP response code.
A human-readable description of this exception.
The status code of this exception.
The details information of this exception, which may contain failure messages.
Extracts a Google::Ads::GoogleAds::VX::Errors::GoogleAdsFailure object from the "details" attribute of the current exception object.
A Google::Ads::GoogleAds::VX::Errors::GoogleAdsFailure object or undef if not found.
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.
$Rev: $ $LastChangedBy: $ $Id: $
To install Google::Ads::GoogleAds::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Google::Ads::GoogleAds::Client
CPAN shell
perl -MCPAN -e shell install Google::Ads::GoogleAds::Client
For more information on module installation, please visit the detailed CPAN module installation guide.