Hello Kiran,

The predicate looks correct (you may want to leave out "REMOVED" entry 
though).

Are you sure there are paused keywords under the given ad group with 
non-zero impressions?


-Danial, AdWords API Team.


On Monday, January 19, 2015 at 10:44:37 AM UTC+3, Kiran Kumar wrote:
>
>
>
> Hi,
>
> I am getting the keyword performance report only for keywords which are 
> enabled  and I want to get the keywords which are paused also ,I am trying 
> but I am not getting these values 
>
> can any one please help me in how to write the predicate for keywords 
> which are paused ?
>
> And I am trying these code but I am only getting keywords which are 
> enabled only
>
>
> Code :
>
> $selector = new Selector();
>   $selector->fields = 
> array('KeywordText','Id','Status','Clicks','AverageCpc','Conversions','Ctr','Impressions','AveragePosition','Cost');
>
>   // Filter out deleted criteria.
>   $selector->predicates[] = new Predicate('Status', 'IN', array('ENABLED', 
> 'PAUSED','REMOVED'));
>   $selector->predicates[] = new Predicate('AdGroupId', 'IN', 
> array($adGroupId));
>
>   // Create report definition.
>   $reportDefinition = new ReportDefinition();
>   $reportDefinition->selector = $selector;
>   $reportDefinition->reportName = 'Criteria performance report #' . 
> uniqid();
>   $reportDefinition->dateRangeType = 'LAST_7_DAYS';
>   $reportDefinition->reportType = 'KEYWORDS_PERFORMANCE_REPORT';
>   $reportDefinition->downloadFormat = 'CSV';
>
>
>
>
>
> Thank you,
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0ad666c9-2e1d-48fc-9d4e-540e5150b12c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to