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 contains 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.
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.