Hi,

On AdGroups and AdGroupCriterions there is a Status field which can be 
ENABLED, PAUSED or DELETED.

However, it appears that if e.g. the parent campaign is PAUSED, the child 
AdGroup status field could be ENABLED (even though in reality, the adgroup 
is paused because the parent is paused).

Is there a way to find the *actual *state of the AdGroup without checking 
the parent?

A related question: I want to retrieve all non-deleted, enabled AdGroups. 
It appears that to do this I first need to retrieve all non-deleted, 
enabled Campaigns and then use the campaign ids in a predicate:

SelectorBuilder builder = new SelectorBuilder()
.fields("Status")
.notEquals("Status", "DELETED")
.in("CampaignId", adwordsCampaignIds.toArray(new 
String[adwordsCampaignIds.size()]));

Is there a way to make this query without retrieving the parent campaigns 
first? It feels like there should be a simple way to get all enabled 
AdGroups. (and similar for keywords/AdGroupCriterions - in this case I need 
to use 3 select operations: to retrieve all campaigns AND all adgroups AND 
all keywords. In fact, if there are more than 10,000 adgroups then I get a 
TOO_MANY_PREDICATES error, so I may end up using 10 operations just to 
retrieve the active keywords!)

Thanks for any advice :)


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to