Re: ReportDefinition "Cost" field format change?

2014-07-07 Thread stiggywigget
. > > > On Sunday, July 6, 2014 5:59:29 AM UTC+4, stiggywigget wrote: >> >> Cost field is a decimal value "7.44" in XML format for API v201309 (PHP) >> Cost field is a integer value "744" in XML for

Re: ReportDefinition "Cost" field format change?

2014-07-06 Thread stiggywigget
Minor correction. $xml = ReportUtils::DownloadReport($reportDefinition, $filepath = NULL, $user, NULL); On Sunday, July 6, 2014 12:14:00 PM UTC-4, stiggywigget wrote: > > The docs clearly state that for a CAMPAIGN_PERFORMANCE_REPORT field "Cost" > is type Money. >

Re: ReportDefinition "Cost" field format change?

2014-07-06 Thread stiggywigget
;reportType = 'CAMPAIGN_PERFORMANCE_REPORT'; $reportDefinition->downloadFormat = 'XML'; $reportDefinition->selector = $selector; $xml_data = DownloadReport($user, $reportDefinition); For v201309: For v201402: Please help! On Saturday, July 5, 2014 9:59:29 PM UTC-4,

ReportDefinition "Cost" field format change?

2014-07-05 Thread stiggywigget
Cost field is a decimal value "7.44" in XML format for API v201309 (PHP) Cost field is a integer value "744" in XML format for API v201402 (PHP) I haven't found an explanation for this change. TIA. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+:

PHP Api v.4.5.0 breaks ClientLogin

2013-07-28 Thread stiggywigget
Our existing application uses the AdWordsUser class constructor to send email/pass OR authentication token. It sends $oauth2Info = NULL. This has worked fine until the current php api release (necessary for 201302/201306 support). Now it throws an oAuth2 Exception. I'm aware that ClientLogin is

Continued intermittent failures with InfoService

2012-10-29 Thread stiggywigget
v201209 PHP api v.3.2.0 I've had this problem since last Thursday. $myObject = $infoService->get($selector); // OK; returns the object $myObject->apiUsageRecords is null. // Bad; should be an array This occurs perhaps 20% of the calls using the identical login. Intermittent and seemly random. A

Re: InfoService error, downtime?

2012-10-25 Thread stiggywigget
Sorry, v201209. On Thursday, October 25, 2012 11:04:24 AM UTC-4, stiggywigget wrote: > > $myObject = $infoService->get($selector); > > $myObject->apiUsageRecords is null. When I run again it has the data > expected. Service problem? Down

InfoService error, downtime?

2012-10-25 Thread stiggywigget
$myObject = $infoService->get($selector); $myObject->apiUsageRecords is null. When I run again it has the data expected. Service problem? Downtime posted somewhere? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.co

Re: PHP client libraries downloads

2012-02-13 Thread stiggywigget
Sorry, I found the 2.7.1 libraries. Now to see if they work with this old (14 months!) code. Kirk On Feb 13, 10:33 pm, stiggywigget wrote: > Need to fix the issue with requiring DeveloperTokens (as of 2/7/12). > Stated required libraries is 2.7.1. Where can I find this version. Or >

PHP client libraries downloads

2012-02-13 Thread stiggywigget
Need to fix the issue with requiring DeveloperTokens (as of 2/7/12). Stated required libraries is 2.7.1. Where can I find this version. Or anything older than v3.0.0. It appears to me that v.3 is going to break the application and force significant rewrites. I'm using 201008 v.2.3.0 now. Thanks!

Re: need translation from accountTimeZoneId to the common timezone format

2011-03-21 Thread stiggywigget
Want to second this request. Using a keyword like 'LAST_7_DAYS' makes reports sensitive to timezone. Is there really no mapping of ids to timezones? Just +-GMT? Thanks. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot

How to sort a report

2011-03-06 Thread stiggywigget
I'm trying to sort by date when defining and adding a report. In PHP: $selector->fields = array('CampaignId', 'CampaignName', 'Status', 'Clicks', 'Cost', 'Date'); $selector->ordering = array('Date'); // Is this correct? $reportDefinition = new ReportDefinition(); $reportDefinition->reportName = '

Re: Getting id of an existing report

2010-10-11 Thread stiggywigget
Thanks. I am doing the filtering on my end now, as you suggest. I think having a filter when requesting reports for a given client would be very useful. Adding that as a feature request would be great. But for now it's a solved problem. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also fin

Re: Getting id of an existing report

2010-10-10 Thread stiggywigget
FWIW, I've found it most efficient to store reportIds locally. There's no filter to determine that an existing report matches criteria (fields, predicates, date range) without iterating through all of them. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussio

Getting id of an existing report

2010-10-08 Thread stiggywigget
I'm new to AdWords and to the API. I'm writing a batch process that will create and download reports. And that's all fine. But I'd also like to be able to determine if a report with certain criteria already exists. I can get _all_ the reports for a client id but I can't get a report for a campaignI

PHP AuthToken error

2010-10-04 Thread stiggywigget
I'm trying to implement something like this: 1. ClientLogin with email/pass - OK 2. Get AuthToken - OK 3. Use AuthToken for all requests - OK But when the AuthToken expires (simulated by setting it to an incorrect value) I get a SoapFault which has no public properties. I can't recover from it an

PHP OAuth class missing

2010-10-04 Thread stiggywigget
Line 61 in OAuthUtils.php tries to create an instance of the OAuth class. But there isn't such a class in the library. Is OAuth in PHP possible? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.c

Re: PHP AuthToken error

2010-10-04 Thread stiggywigget
Just a note so as to not mislead anybody. Where I wrote: $new_token = $user->GetAuthToken(); // Now start over from the top, etc. Before requesting the new token I create a new $user but sending login email/pass. $user = new AdWordsUser(SEND EMAIL AND PASS); Then perform the same test. If there'

Re: PHP AuthToken error

2010-10-04 Thread stiggywigget
Thanks. I'm not trying to get information from the token. I'm trying to handle the SoapFault that occurs when a token expires. I found a solution. $user = new AdWordsUser(SEND THE TOKEN HERE); try { // test using the CampaignService. $campaignService = $user->GetCampaignService('v201008'); $sele