Hello,

You could use Campaign.status 
<https://developers.google.com/adwords/api/docs/reference/v201603/CampaignService.Campaign#status>
 field 
to filter the campaigns using the CampaignService 
<https://developers.google.com/adwords/api/docs/reference/v201603/CampaignService>.
 
Please check out below Java code to create the selector to filter the 
campaign using status field.

SelectorBuilder builder = new SelectorBuilder();
    Selector selector = builder
        .fields(CampaignField.Id, CampaignField.Name,CampaignField.Status)
        .orderAscBy(CampaignField.Name)
        .in(CampaignField.Status, "ENABLED", "PAUSED", "REMOVED")
        .offset(offset)
        .limit(PAGE_SIZE)
        .build();

Please check out GetCampaigns 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201509/basicoperations/GetCampaigns.java>
, GetAdGroups 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201509/basicoperations/GetAdGroups.java>
 and GetTextAds 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201509/basicoperations/GetTextAds.java>
 Java 
example code from the client library. Other languages example code could be 
found here <https://developers.google.com/adwords/api/docs/clientlibraries>.

Thanks,
Peter
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 [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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/56d5d5ed-6dfd-4738-9b97-70075b73a31e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to