Customize error Handling

42 views
Skip to first unread message

cv

unread,
Mar 26, 2018, 7:46:04 AM3/26/18
to AdWords API Forum
Hello,

I was handling error for Un supported Reporting fields through API.
I am seeing that new Lib is using monolog for error logging.

When I am using Log level as ERROR it is not giving me that ERROR logs using API.
This should Log me INVALID_FIELD_NAME_FOR_REPORT error.

Should I need to do customize the Error Handling?

Thanks,

Vincent Racaza (AdWords API Team)

unread,
Mar 26, 2018, 9:48:49 AM3/26/18
to AdWords API Forum
Hi,

Could you try to change the log level to DEBUG and let me know if the error is still not logged? The DEBUG log level means that you are logging for success and failed requests. You can see more information here regarding logging in PHP client library.

Thanks,
Vincent
AdWords API Team

cv

unread,
Apr 17, 2018, 5:56:46 AM4/17/18
to AdWords API Forum
Hello Vincent,

It is not making any difference while set the DEBUG or INFO under the .ini file for report download.

Can you please guide me I need to look at Error Catching here?

Thanks,

Vincent Racaza (AdWords API Team)

unread,
Apr 17, 2018, 7:44:59 AM4/17/18
to AdWords API Forum
Hi,

The DEBUG log level is the only level to log both the success and error requests. However, since this is more on the PHP client library, I suggest to post you concern here so the library owners can provide further assistance on this.
Reply all
Reply to author
Forward
0 new messages