Hello Danial,
Thanks a lot for the reply.
I am using v201402 and when I tried changing DELETED to REMOVED, I got the
error :-
An error has occurred: Report download failed. Underlying errors are Type =
'SelectorError.INVALID_PREDICATE_ENUM_VALUE', Trigger = 'REMOVED',
FieldPath = 'selector'.Do you know why?Leejo
On Friday, 25 July 2014 17:50:56 UTC+5:30, Danial Klimkin wrote:
>
> Hello Leejo,
>
>
> What version of the API are you using? As of v201406, 'DELETED' status is
> called 'REMOVED'.
>
>
> -Danial, AdWords API Team.
>
>
> On Friday, July 25, 2014 9:58:48 AM UTC+4, Leejo P wrote:
>>
>> Hi,
>>
>> I am using the Adwords API and using the report
>> type=ADGROUP_PERFORMANCE_REPORT
>>
>> But the api does not return disabled ads.
>>
>> $dateRange = new DateRange();
>> $dateRange->min = date('Ymd', $datefrom);
>> $dateRange->max = date('Ymd', $dateto);
>> $selector->predicates[] = new Predicate('Status', 'IN',
>> array('ENABLED','PAUSED','DELETED'));
>> // Exclude criteria that haven't recieved any impressions over the date
>> range.
>> $reportDefinition->includeZeroImpressions = FALSE;
>>
>> // Set additional options.
>> $options = array('version' => ADWORDS_VERSION, 'returnMoneyInMicros' =>
>> FALSE);
>> // Download report.
>> ReportUtils::DownloadReport($reportDefinition, $filePath, $user,
>> $options);
>>
>> This only returns active ads and doe not return disabled ads.
>>
>> Can someone please help?
>>
>>
>>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.