Hi,

Looks like this is a known issue, see
http://code.google.com/p/google-api-adwords-php/issues/detail?id=13.

For now, you can go for one of the following workarounds:

- The logging is turned on by calling $user->LogDefaults();, so you
could turn off logging on your production server.

- If you can modify the library code at your end, then another thing
you can do is to add a flag to log only when exceptions happen. The
place to look for is
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php#198.
You can add a check like:

if ($logOnlyErrors) {    // your flag for controlling logging
behaviour.
    if (isset($e)) {
      $this->LogSoapXml();
      $this->LogRequestInfo();
    }
} else {
   $this->LogSoapXml();
   $this->LogRequestInfo();
}

Could you please open a bug at 
http://code.google.com/p/google-api-adwords-php/issues/list
requesting the ability to restrict logs only for errors?

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Sep 8, 1:01 am, phpguy <cpwils...@gmail.com> wrote:
> It seems like I've encountered this a few times now but I wanted to
> post this message for either development purposes, FAQ or just a heads
> up for anyone having similar problems.
>
> My script has been tested and works great.  Every now and then it
> stops running.  I try to start back up but no dice.  It gets to trying
> to connect to the API and completely stops or it'll be executing the
> script perfectly and stop in the middle.
>
> I then have to delete the API client library (PHP, in my case) and re-
> upload it.  Then it runs fine.
>
> I just figured out the problem today.  I decided to delete the log
> files and sure enough that was the block.  Not sure if this is
> personal server settings or a problem elsewhere but if my log file
> gets to big it stops the entire script and won't let me start it back
> up.
>
> So the resolution is either make some server-based changes (maybe) or
> delete the log file or stop the script from writing to it once you're
> script executes properly.  The problem is it's harder to diagnose
> issues but that's the point I'm at now.
>
> Let me know if anyone knows where a server setting/preference for this
> would be or if it's something on the AdWords API-side.
>
> Thanks!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

Reply via email to