Query on Google Ads API Logging

157 views
Skip to first unread message

Saurabh Suman

unread,
Mar 11, 2022, 1:38:30 AM3/11/22
to Google Ads API and AdWords API Forum
Hi Team,
     We are trying to log Google Ads API calls request and response  similar to we had in Adwords API call. We already have required maven dependencies configured in pom.xml like below . Also in log4j.xml we are trying to have the logs redirected to our local. But we are not getting the  logs:
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.25</version>
<type>jar</type>
<scope>compile</scope>
</dependency>

Log4j.xml(config)
<appender name="ABC" class="org.apache.log4j.RollingFileAppender">
                <param name="File" value="C:/ABC.log" /

Google Ads API Forum Advisor

unread,
Mar 11, 2022, 8:53:44 AM3/11/22
to saurabhs...@gmail.com, adwor...@googlegroups.com

Hi there,

Thanks for reaching out to the Google Ads API Forum.

I can see that you’re using ​​Log4j 1.2 (legacy) version. I do not see the added dependency for the slf4j-jdk14 library in your pom. You may verify if your configuration has already completed the steps mentioned in this logging guide. If you are still unable to generate, then I recommend you to reach out to the Java client library owner by filing an issue on the issue tracker on the Issue tab of your client library on github, so that they can provide guidance on it.  

Let us know if you have any additional questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2XnZHM:ref
Reply all
Reply to author
Forward
0 new messages