Error reading reports using PHP APIlity 1.13.1 library
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
v <v... @krishnadesign.com>
Date: Sun, 8 Nov 2009 05:23:38 -0800 (PST)
Local: Sun, Nov 8 2009 8:23 am
Subject: Error reading reports using PHP APIlity 1.13.1 library
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","Con versions"),
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
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
AdWords API Advisor <adwordsapiadvi... @google.com>
Date: Tue, 10 Nov 2009 08:43:57 -0800 (PST)
Local: Tues, Nov 10 2009 11:43 am
Subject: Re: Error reading reports using PHP APIlity 1.13.1 library
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"),
> 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
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
v <v... @krishnadesign.com>
Date: Wed, 11 Nov 2009 03:05:35 -0800 (PST)
Local: Wed, Nov 11 2009 6:05 am
Subject: Re: Error reading reports using PHP APIlity 1.13.1 library
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:
> 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?wsdlhasan
> > 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"),
> > 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- Hide quoted text -
> - Show quoted text -
You must
Sign in before you can post messages.
You do not have the permission required to post.