Google  \  Ads  \  GoogleAds  \  Lib  \  V12  \  GoogleAdsException

225 views
Skip to first unread message

Turkmeks DEV

unread,
Dec 20, 2022, 6:10:19 AM12/20/22
to Google Ads API and AdWords API Forum
How can ı solve this probleme ads_system\vendor\googleads\google-ads-php\src\Google\Ads\GoogleAds\Lib\V12\GoogleAdsExceptionTrait.php : 76

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

self::$GOOGLE_ADS_FAILURE_BINARY_KEY ) ); } if (isset($metadata[self::$GOOGLE_ADS_FAILURE_JSON_KEY])) { throw $this->createGoogleAdsException( $exception, $statusMetadataExtractor->extractGoogleAdsFailure( $metadata, self::$GOOGLE_ADS_FAILURE_JSON_KEY ) ); } } private function createGoogleAdsException( ApiException $exception, GoogleAdsFailure $googleAdsFailure ) { $optionalArgs = [ 'previous' => $exception->getPrevious(), 'metadata' => $exception->getMetadata(), 'basicMessage' => $exception->getBasicMessage() ]; var_dump($optionalArgs); return new GoogleAdsException($exception, $googleAdsFailure, $optionalArgs); }

Google Ads API Forum Advisor

unread,
Dec 20, 2022, 6:53:33 AM12/20/22
to devtu...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for raising this concern to the Google Ads API support team.

It appears that your concerns are discussed in this code examples for handling policy violations. However, to check this in our end regarding to the error that you encountered, could you please provide the complete API request and response logs with request ID and request header that generated on your end? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. This information will help our team to better check this.

You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsapi-support@google.com.


Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2hLrC6:ref
Reply all
Reply to author
Forward
0 new messages