Re: Log Api Soap request

2018-05-09 Thread 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi VJ,

To check where your current log file is located, you may look into your 
*adsapi_php.ini *file and see the value of *soapLogFilePath *(this is the 
path where your logs is located). You may then change the path based on 
your preference. You may also check this guide 
 for more details 
on logging in PHP client library.

Thanks and regards,
Luis
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/87dfe723-4c6e-4842-a7ad-5ea42425a667%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Log Api Soap request

2018-05-09 Thread vj
I am downloading adwords api report using php adwords library.

I wants to keep soap api request log in file.

I am trying bellow code.

use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Monolog\Formatter\LineFormatter;

$log = new Logger('channel_name');
$stream = new StreamHandler(__DIR__.'/myRequest.log', Logger::INFO);
$stream->setFormatter(new LineFormatter(null, null, false, true));
$log->pushHandler($stream);

$session = (new AdWordsSessionBuilder())
->withDeveloperToken(DEVELOPERTOKEN)
->withOAuth2Credential($oAuth2Credential)
->withClientCustomerId($client_id)
->withSoapSettings($SoapSettingsBuilder)
->withReportSettings($reportSettings)
->withSoapLogger(new Logger('channel_name'))
->build();

but its not creating any log files or request.

Could you please help to log my all soap request using php lib??

If you provide me any example to log request than it would be great.

Thanks.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d21cbef1-0541-4a85-9e24-037f9169d6ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.