Hi Ken,

Upon further checking, you can filter by CampaignStatus in 
AdGroupService.get() 
<https://developers.google.com/adwords/api/docs/reference/v201710/AdGroupService#get>
 but 
you cannot get its actual value as field. You can try the code snippet 
below and let me know if this works:

    $selector = new Selector();
    $selector->setFields(['Id', 'Name']);
    $selector->setOrdering([new OrderBy('Name', SortOrder::ASCENDING)]);
    $selector->setPredicates(
        [new Predicate('CampaignStatus', PredicateOperator::NOT_IN, 
['REMOVED'])]);
    $selector->setPaging(new Paging(0, self::PAGE_LIMIT));


In regards to reports, aside from generating reports in a file, you can 
only get the report data as String using *getAsString()* method. As a 
suggestion, you can use this method and do a post-processing on your end to 
transform the String object into an Array or JSON object.

Thanks,
Vincent
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5c221696-a157-4218-a5d4-232dba5636fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to