Hi,

There is no straightforward way to get all enabled campaigns with less than 
100 remarketing users. If you just want to get all enabled campaigns, you 
can use CampaignService 
<https://developers.google.com/adwords/api/docs/reference/v201609/CampaignService>
 as 
shown here 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201609/basicoperations/GetCampaigns.java>
 using 
a predicate to filter for ENABLED campaigns. A campaign's state indicates 
if it is active or not. 

When you use remarketing lists for targeting, you are essentially creating 
CampaignCriterion or AdGroupCriterion of type USER_LIST 
<https://developers.google.com/adwords/api/docs/reference/v201609/AdGroupCriterionService.CriterionUserList>.
 
You need to use AdwordsUserListService 
<https://developers.google.com/adwords/api/docs/reference/v201609/AdwordsUserListService>
 to 
first retrieve the UserLists with size as 0. You can then query for data 
from Audience Performance Report 
<https://developers.google.com/adwords/api/docs/appendix/reports/audience-performance-report>
 using 
the following query and use the UserList names obtained above in the 
predicate:

SELECT Id, UserListName, AdGroupId, CampaignId FROM 
AUDIENCE_PERFORMANCE_REPORT WHERE CampaignStatus = 'ENABLED' AND 
UserListName IN [userList_names]

Let me know if this works. 

Regards,
Shwetha, 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/410e1196-d92b-48ff-899b-9ac947dbd5c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • PHP Get active ... Marketing Xilon
    • Re: PHP Ge... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
      • Re: PH... Marketing Xilon
        • Re... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
          • ... Marketing X

Reply via email to