Error reading reports using PHP APIlity 1.13.1 library

2 views
Skip to first unread message

v

unread,
Nov 8, 2009, 8:23:38 AM11/8/09
to AdWords API Forum
My APIlity 1.13.1 PHP scripts were working fine last month, and now
when I try to read the Content Network Report, it gives me this error:

Warning: APIlity PHP library => Warning: Cache file for:
https://adwords.google.com/api/adwords/v13/ReportService?wsdl has an
invalid file size in /usr/www/virtual/vge/lib/WsdlCache.php on line
156

Here is the PHP script I am using to get the report:

$apilityUser = new APIlityUser();
$apilityUser->setClientEmail($client_email);
get_content_network_report();
function get_content_network_report() {
$res=getContentPlacementXmlReport(
"Content Network Report",
"2009-01-01",
"2019-12-31",
array
("Campaign","AdGroup","PlacementDomain","SiteTargeted","Clicks","Cost","Conversions"),
array("AdGroup","Domain","Summary"),
array(),
array(),
array(),
array(),
array(),
array(),
"ContentOnly",
"",
false,
array(),
true, # includeZeroImpression
30,
false,
false
);
print $res;
}

When I change the Sleep Time from 30 to 300, then it gives me a 300000
millisecond timeout error, with only 276 bytes received. What could be
wrong?

Victor

AdWords API Advisor

unread,
Nov 10, 2009, 11:43:57 AM11/10/09
to AdWords API Forum
Hi Victor,

This message appears to be a warning that the cached version of the
WSDL is out of date. Please clear out your wsdl_cache folder and try
again.

Best,
- Eric Koleda, AdWords API Team

On Nov 8, 8:23 am, v <v...@krishnadesign.com> wrote:
> My APIlity 1.13.1 PHP scripts were working fine last month, and now
> when I try to read the Content Network Report, it gives me this error:
>
> Warning: APIlity PHP library => Warning: Cache file for:https://adwords.google.com/api/adwords/v13/ReportService?wsdlhas an
> invalid file size in /usr/www/virtual/vge/lib/WsdlCache.php on line
> 156
>
> Here is the PHP script I am using to get the report:
>
> $apilityUser = new APIlityUser();
> $apilityUser->setClientEmail($client_email);
> get_content_network_report();
> function get_content_network_report() {
>    $res=getContentPlacementXmlReport(
>   "Content Network Report",
>   "2009-01-01",
>   "2019-12-31",
>   array
> ("Campaign","AdGroup","PlacementDomain","SiteTargeted","Clicks","Cost","Con versions"),

v

unread,
Nov 11, 2009, 6:05:35 AM11/11/09
to AdWords API Forum
Nope. I tried it just now, deleting all the files from /wsdl_cache/
folder and then trying to read the report. It gave the same error as
before, and no file was written to /wsdl_cache/

Fortunately, I got the following message from Thomas Steiner of
APIlity fame. He said, "Could you try to turn off WSDL caching? It
should work then. Something has changed on the server side, not sure
yet what, though..."

I did that, which simply means editing settings.ini to:
WSDL_Cache_Enabled = no

After that, I run the reports and they work with no problem.

Victor


On Nov 10, 9:43 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:
> > Victor- Hide quoted text -
>
> - Show quoted text -

scrat

unread,
Nov 26, 2009, 7:18:24 AM11/26/09
to AdWords API Forum
Hi,

i got the same problems since a few days ago. Unfortunetaly the only
solution currently works is to deactivate wsdl caching in
settings.ini.

But if Caching is off, there will be much more network traffic. So
don't know if that's the number 1 solution.

Best Regards

Andreas
Reply all
Reply to author
Forward
0 new messages