Hi Najmudheen,

If you make a request, then the field names should match what is listed 
on https://developers.google.com/adwords/api/docs/appendix/reports#account. 
For instance, Status is not a valid column in that report type.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Monday, April 21, 2014 7:48:02 AM UTC-4, Najmudheen Chalakkandi wrote:
>
> HI Danial
>
> Thanx for your reply and successfully downloaded the report but now am 
> facing another issue
>
> I was trying to download 'Account Performance Report' and am using the 
> following code but getting the error 
> 'ReportDefinitionError.INVALID_FIELD_NAME_FOR_REPORT'
>
>
> /*---------------------------------------------------------------------------------------------*/
>
> Using *googleads-php-lib-master*
> Version* v201402*
>
> $user = new AdWordsUser(NULL, NULL, NULL, NULL, NULL,NULL, $client_id, 
> NULL, NULL, NULL);
> $user->LogAll();
> $user->LoadService('ReportDefinitionService', 'v201402');
> $selector = new Selector();
> $selector->fields =array("Clicks","Impressions");
> $selector->dateRange = new DateRange($start_date, $end_date);
> $selector->predicates[] = new Predicate('Status', 'NOT_IN', 
> array('DELETED'));
>
> // Create report definition.
> $reportDefinition = new ReportDefinition();
> $reportDefinition->selector = $selector;
> $reportDefinition->reportName = 'Adccount performance report #' . time();
> $reportDefinition->dateRangeType = 'CUSTOM_DATE';
> $reportDefinition->reportType = 'ACCOUNT_PERFORMANCE_REPORT';
> $reportDefinition->downloadFormat = 'CSV';
> $reportDefinition->includeZeroImpressions = FALSE;
> $options = array('version' => 'v201402', 'returnMoneyInMicros' => TRUE);
>
> // Download report.
> ReportUtils::DownloadReport($reportDefinition, $path, $user, $options);
>
>
> /*----------------------------------------------------------------------------------------------------------*/
>
> Can you help me please?
>
> On Monday, April 21, 2014 3:05:15 PM UTC+5:30, Danial Klimkin wrote:
>>
>> Hello Najmudheen,
>>
>>
>> As per the error message, AdWords API v201306 is discontinued and no 
>> longer supported. Please migrate to a later API version.
>>
>> See this post for more details:
>>
>>   
>> http://googleadsdeveloper.blogspot.com/2014/03/reminder-adwords-api-v201306-and-ad.html
>>
>> Also, note the sunset schedule here:
>>
>>   https://developers.google.com/adwords/api/docs/sunset-dates
>>
>>
>> -Danial, AdWords API Team.
>>
>>
>> On Saturday, April 19, 2014 1:04:42 PM UTC+4, Najmudheen Chalakkandi 
>> wrote:
>>>
>>>
>>> I am using the Google Adword Api (v201306) - PHP client library  to  . 
>>> Since last three dyas, getting an error message 
>>>
>>> "Report download failed. Underlying errors are Type = 
>>> 'RequestError.INVALID_INPUT', Trigger = 'You are accessing an AdWords API 
>>> version v201306 that has been discontinued. Calls to this version may fail. 
>>> Please visit the AdWords API blog for information on migration to the new 
>>> AdWords API version.', FieldPath = ''.
>>>
>>> any information?
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to