API Returns "Internal Error" Message

75 views
Skip to first unread message

Kiyoko Hall

unread,
Jun 18, 2019, 9:48:35 AM6/18/19
to AdWords API and Google Ads API Forum
Hi all,

I use the PHP client library and just got set up to use the Google Ads API. I got to the "First Call: Get Campaigns" steps in the Google Ads API documentation, but when I make the call on the command line, I get the following output.

PHP Notice:  Undefined index: warning in /opt/bitnami/apache2/htdocs/core/libraries/google-ads-php/src/Google/Ads
/GoogleAds/Lib/V1/GoogleAdsUnaryCallLogger.php on line 129
ApiException was thrown with message '{
    "message": "Internal error encountered.",
    "code": 13,
    "status": "INTERNAL",
    "details": []
}'
.



I have tried this several times over the past 24 hours, and always receive the same result, so I believe it to be an issue on my end as opposed to the API. I setup the PHP client library by following the below instructions, so I'm not sure why I am receiving the undefined index warning and whether or not that is related to my API call failing: 

Please let me know what could be causing this issue. 

Thanks

Google Ads API Forum Advisor Prod

unread,
Jun 18, 2019, 4:38:40 PM6/18/19
to kiyoko...@gmail.com, adwor...@googlegroups.com
Hello Kiyoko, 

Could you please share the request and response logs for the API call to check this further? You can share the details privately via Reply privately to author option. Please check this guide on how to enable logging for PHP client library. 

Thanks,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UBnx09:ref

Kiyoko Hall

unread,
Jun 21, 2019, 5:24:29 PM6/21/19
to AdWords API and Google Ads API Forum
Message has been deleted

Google Ads API Forum Advisor Prod

unread,
Jun 24, 2019, 3:15:30 PM6/24/19
to kiyoko...@gmail.com, adwor...@googlegroups.com
Hi Kiyoko, 

Could you please confirm if you are receiving the internal errors? If so, could you please share the request and response logs where you are receiving this error? Please refer to the PHP logging guide for steps to enable logging. 
Reply all
Reply to author
Forward
0 new messages