Hi Ben,

Sorry, I didn't notice you had specified the binding in your original post. 
I see you're using JDK logging. Could you address the last two questions in 
my post?

Are you seeing other log messages written to stderr as well?
Could you share the configuration file you are using for your SLF4J binding?

Thanks,
Josh, AdWords API Team

On Monday, July 21, 2014 10:39:11 AM UTC-4, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi Ben,
>
> The change to log reporting requests was requested in issue #12 
> <https://github.com/googleads/googleads-java-lib/issues/12> and released 
> in 1.28.0 
> <https://github.com/googleads/googleads-java-lib/releases/tag/1.28.0>. 
> With that change, the library will log successful reporting requests 
> (header and payload) to INFO and failed reporting requests (header and 
> payload) to WARN. Prior to that change, the library would not log reporting 
> requests at all.
>
> You can control this report-specific logging by setting the log level for 
> *com.google.api.ads.adwords.lib.utils.report_download*. For example, if 
> you are using JDK logging then you could set the following if you only 
> wanted failed requests logged.
>
> com.google.api.ads.adwords.lib.utils.report_download=WARNING
>
> As to why this is being logged to stderr, which SLF4J binding do you have 
> on your classpath <http://www.slf4j.org/manual.html#swapping>? 
> We recently upgraded to SLF4J 1.7.7, which included some changes to how 
> SLF4J handles missing bindings 
> <http://www.slf4j.org/manual.html#libraries>, although the fact that 
> you're getting messages logged to stderr suggests that you do have a 
> binding present. Are you seeing other log messages written to stderr as 
> well? Could you share the configuration file you are using for your SLF4J 
> binding?
>
> Thanks,
> Josh Radcliff, AdWords API Team
>
> On Friday, July 18, 2014 4:47:47 AM UTC-4, Ben Marengo wrote:
>>
>> ps. this is also being logged to stderror - which i find quite odd 
>> considering it is just info
>>
>>
>>
>> On Friday, 18 July 2014 10:42:07 UTC+2, Ben Marengo wrote:
>>>
>>> hi all
>>>
>>> i have just upgraded my account performance report download script to 
>>> the new api (details of version numbers used below) and it has suddenly 
>>> started logging a lot more stuff than before (log below).
>>>
>>> does anyone know how to get control of / stop what is being logged?
>>>
>>> log messages are being triggered by the line of code:
>>> ReportDownloadResponse response = new ReportDownloader(session).
>>> downloadReport(reportDefinition);
>>>
>>> thanks
>>> ben
>>>
>>> ----
>>>
>>> com.google.api-ads
>>> ads-lib = 1.30.0
>>> adwords-axis = 1.30.0
>>>
>>> org.slf4j
>>> slf4j-api = 1.7.7
>>> slf4j-jdk14 = 1.7.7
>>>
>>> Jul 18, 2014 3:42:11 AM com.google.api.ads.adwords.lib.utils.logging.
>>> ReportServiceLogger log
>>> INFO: Request made: POST https://
>>> adwords.google.com//api/adwords/reportdownload/v201406
>>>
>>>
>>> Jul 18, 2014 3:42:11 AM com.google.api.ads.adwords.lib.utils.logging.
>>> ReportServiceLogger log
>>> INFO: accept-encoding: [gzip]
>>> authorization: REDACTED
>>> user-agent: [fetch-report (AwApi-Java, Common-Java/1.30.0, Java/1.6.0_31
>>> , maven)]
>>> developertoken: REDACTED
>>> clientcustomerid: XXXX
>>>
>>>
>>> Parameters:
>>> __rdxml: <?xml version="1.0" encoding="UTF-8" 
>>> standalone="yes"?><reportDefinition 
>>> xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201406";><ns2:
>>> selector><ns2:fields>Date<
>>> /ns2:fields><ns2:fields>AccountDescriptiveName</ns2:fields><ns2:fields>
>>> ExternalCustomerId</ns2:fields><ns2:fields>AccountCurrencyCode</ns2:
>>> fields><ns2:fields>Device</ns2:fields><ns2:fields>AverageCpc</ns2:fields
>>> ><ns2:fields>AverageCpm</ns2:fields><ns2:fields>AveragePosition</ns2:
>>> fields><ns2:fields>Impressions</ns2:fields><ns2:fields>Clicks</ns2:
>>> fields><ns2:fields>Cost</ns2:fields><ns2:fields>Ctr</ns2:fields><ns2:
>>> fields>ConversionsManyPerClick<
>>> /ns2:fields><ns2:dateRange><ns2:min>20140101</ns2:min><ns2:max>20141231<
>>> /ns2:max></ns2:dateRange></ns2:selector><ns2:reportName>Account 
>>> performance report<
>>> /ns2:reportName><ns2:reportType>ACCOUNT_PERFORMANCE_REPORT</ns2:
>>> reportType><ns2:dateRangeType>CUSTOM_DATE<
>>> /ns2:dateRangeType><ns2:downloadFormat>CSV</ns2:downloadFormat><ns2:
>>> includeZeroImpressions>false</ns
>>>  2:includeZeroImpressions></reportDefinition>
>>>
>>>
>>> Jul 18, 2014 3:42:11 AM com.google.api.ads.adwords.lib.utils.logging.
>>> ReportServiceLogger log
>>> INFO: Response received with status code 200 and message: OK
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to