API Logging not working

64 views
Skip to first unread message

rentca...@gmail.com

unread,
Feb 6, 2018, 7:18:55 PM2/6/18
to AdWords API Forum
I'm getting the following error even though I'm passing a correct address:

Error: CriterionError.INVALID_PROXIMITY_ADDRESS

I know you require the SOAP request in order to help resolve the issue unfortunately I'm unable to get the logging working.  Below is what I added to my web.config file for logging.  However it does not log to the specified files.  What am I missing?

<system.diagnostics>
  <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="C:\Logs\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="C:\Logs\request_info.log" />
        <remove name="Default" />
      </listeners>
    </source>
  </sources>
  <switches>
    <!-- Use this trace switch to control the SOAP XML logs written by Ads*
        .NET libraries. The default level is set to Off. Logs are generated at
        both the Error and Information levels. -->
    <add name="AdsClientLibs.SoapXmlLogs" value="Information"/>
    <!-- Use this trace switch to control the Request Info logs written by
        Ads* .NET libraries. The default level is set to Off. Logs are
        generated at both the Error and Information levels. -->
    <add name="AdsClientLibs.RequestInfoLogs" value="Information"/>
  </switches>
</system.diagnostics>

KDJ

Luis Xander Talag (AdWords API Team)

unread,
Feb 7, 2018, 1:09:37 AM2/7/18
to AdWords API Forum
Hi,

Apologies for the inconvenience. Currently, we have an ongoing issue regarding the Proximity in the criterion service and our team are actively working on this right now. We will keep you updated on this matter once this issue is fixed.

Regarding your API logging, for proper configuration, you may check this guide for reference.

Thank and regards,
Luis
AdWords API Team

rentca...@gmail.com

unread,
Feb 7, 2018, 11:17:12 AM2/7/18
to AdWords API Forum
Luis,

Thank you for your response regarding Proximity in the criterion service.  Is there an estimate on when this will be fixed?

In regards to SOAP logging, I used the guide you referenced before I contacted you, with no success.  Is there something I'm missing?

KDJ

Luis Xander Talag (AdWords API Team)

unread,
Feb 7, 2018, 10:42:48 PM2/7/18
to AdWords API Forum
Hi,

We cannot provide an estimate on when the issue in Proximity will be fixed but will keep you updated as soon as we hear back from the team.

With regards to your logging concern, you may post it here to the client library owners of .NET as they are the one whose more equipped to assist you in this matter.

Regards,
Luis
AdWords API Team

CFJ

unread,
Oct 11, 2018, 1:05:20 PM10/11/18
to AdWords API and Google Ads API Forum
Just curious if you ever got SOAP logging working?  I followed the guide exactly as you did adding all the appropriate settings to my app.config, but no luck.  No log files get generated.
Reply all
Reply to author
Forward
0 new messages