SOAP Logs with Google AdWords

983 views
Skip to first unread message

testa...@geeks.ltd.uk

unread,
Oct 2, 2014, 11:24:40 AM10/2/14
to adwor...@googlegroups.com
I am trying to use SOAP Logs with Google AdWords to troubleshoot something.

I am able to connect with the server from my local machine and make changes via Visual Studio that will be immediately present in the UI, so, in that sense at least, there is not a connection problem (though there could be others that just aren't seen at the moment).

I am using the instructions in Option 1 (ie, using the web.config) to record the logs, and have copied and pasted the relevant code into my web.config. I have manually created the relevant directories, as well as the files. https://github.com/googleads/googleads-dotnet-lib/wiki/How-to-capture-SOAP-messages

Despite all of the above, no logs are produced. Is there something else I should be doing? Is there a setting that I am not enabling / disabling?

Any help on this would be much appreciated.

Thanks,
Conor

Alan Coleman

unread,
Oct 3, 2014, 6:54:48 AM10/3/14
to adwor...@googlegroups.com
Hello,

This may not be the answer to your problem but when using PHP the log options can be set in the user object:

$user = new AdWordsUser();
$user
->LogAll();

So your config may be correctly set but your user object may not.

Are you using .NET? If so VB or C# ?

Thanks

testa...@geeks.ltd.uk

unread,
Oct 3, 2014, 8:41:05 AM10/3/14
to adwor...@googlegroups.com

Hi Alan,

Thanks for your message.

I'm using C# but can't see an option anywhere in the ad words user object I'm using to log all. Do you know how it's accessed? Is that all I need in this case?

Thank you for your help.

Best wishes,
Conor

Anash P. Oommen (AdWords API Team)

unread,
Oct 3, 2014, 9:32:41 AM10/3/14
to adwor...@googlegroups.com
Hi Conor,

Did you update <add name="AdsClientLibs.SoapXmlLogs" value="Off"/> to Information level?

Thx,
Anash

testa...@geeks.ltd.uk

unread,
Oct 3, 2014, 9:47:50 AM10/3/14
to adwor...@googlegroups.com
Hi Anash,

Thanks for your message.

I have put the following into my web.config but still don't get any logs.

  <system.diagnostics>
    <trace autoflush="true"/>
    <sources>
      <source name="AdsClientLibs.SoapXmlLogs"
        switchName="AdsClientLibs.SoapXmlLogs"
        switchType="System.Diagnostics.SourceSwitch">
        <listeners>
          <!--Modify the initializeData attribute below to control the
              path to the SOAP XML log file.-->
          <add name="soapXmlLogListener"
            type="System.Diagnostics.TextWriterTraceListener"
            initializeData="soap_xml.log" />
          <remove name="Default" />
        </listeners>
      </source>
      <source name="AdsClientLibs.RequestInfoLogs"
        switchName="AdsClientLibs.RequestInfoLogs"
        switchType="System.Diagnostics.SourceSwitch">
        <listeners>
          <!--Modify the initializeData attribute below to control the
              path to the request info log file.-->
          <add name="requestInfoLogListener"
            type="System.Diagnostics.TextWriterTraceListener"
            initializeData="request_info.log" />
          <remove name="Default" />
        </listeners>
      </source>
    </sources>
    <switches>

      <add name="AdsClientLibs.SoapXmlLogs" value="Information level"/>

      <add name="AdsClientLibs.RequestInfoLogs" value="Information level"/>
    </switches>
  </system.diagnostics>

This is from the link you emailed to me a couple of days ago, except I changed the two values of the switches from 'Off' to 'Information Level'.

Do you have any other suggestions?

Did you get the raw SOAP data I sent you earlier from another method of logging? Was that any help? Have you had time to look at the other details I sent you that you asked for?

Thanks again for your help with all this. I really appreciate it.

Best wishes,
Conor

Anash P. Oommen (AdWords API Team)

unread,
Oct 3, 2014, 9:54:28 AM10/3/14
to adwor...@googlegroups.com
Hi Conor,

I guess the documentation can be improved in that wiki. Here's the MSDN document that shows what the values should be. http://msdn.microsoft.com/en-us/library/system.diagnostics.tracelevel(v=vs.110).aspx

Let me know if it works, and open a bug at https://github.com/googleads/googleads-dotnet-lib/issues to improve the documentation.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

testa...@geeks.ltd.uk

unread,
Oct 3, 2014, 10:24:51 AM10/3/14
to adwor...@googlegroups.com
Still can't get it to work, and I have tried Verbose and Info.

Are there any additional downloads that are needed? If I have the standard AdWords API, should that be enough?

Thanks,
Conor

Anash P. Oommen (AdWords API Team)

unread,
Oct 8, 2014, 10:41:19 AM10/8/14
to adwor...@googlegroups.com
Hi Conor,

Try setting the value to "Information".

Anash
Reply all
Reply to author
Forward
0 new messages