SOAP request and response logs

84 views
Skip to first unread message

Alan Coleman

unread,
Feb 15, 2018, 7:22:01 AM2/15/18
to AdWords API Forum
Hello everyone,

We're using the latest library of the Google AdWords API as documented here: https://github.com/googleads/googleads-php-lib/blob/master/UPGRADING.md

I'm confused about SOAP Logging, which is documented here: https://github.com/googleads/googleads-php-lib/blob/master/README.md#logging

Say for example I'm running a simple CampaignService, how would I create and view a SOAP Log for that request?

I can see that there are some settings in the adsapi_php.ini, are these used alongside Monolog, or are they enough to create a SOAP Log in their own right?

Also, if I am going to use Monolog, how would I go about logging a SOAP Response?

Any help would be appreciated.

Many thanks

// add records to the log $log->[?]([?]);

Milind Sankeshware (AdWords API Team)

unread,
Feb 15, 2018, 3:20:09 PM2/15/18
to AdWords API Forum
Hi Alan,

To enable the logs, you just need to do some changes in adsapi_php.ini file as mention in this guide. You can view your SOAP logs in file which is mention in soapLogFilePath filed of your configuration file (adsapi_php.ini). Changes in configuration file are enough to generate SOAP log for your API operation. Let me know if you have any further questions.

Thanks,
Milind, AdWords API Team.

Alan Coleman

unread,
Feb 16, 2018, 11:56:23 AM2/16/18
to AdWords API Forum
Thanks again for your help.
Reply all
Reply to author
Forward
0 new messages