Hi, I'm trying out *AdWords Scripts *and am trying to modify the audience lists for Campaigns.
To do this, I've been using the *AdWords Docs <https://developers.google.com/adwords/scripts/docs/reference/adwordsapp/adwordsapp_searchcampaignaudienceselector> *which suggest that I can get the audiences of a campaign with var campaign = AdWordsApp.campaigns().withCondition('CampaignName = "My Campaign"').get().next() var audienceSelector = campaign.targeting() .audiences() .withCondition("Status = PAUSED") .get() But when previewing the script, I get the following exception Field name Status is invalid. Please check your spelling and casing. Despite the Docs explicitly stating <https://developers.google.com/adwords/scripts/docs/reference/adwordsapp/adwordsapp_searchcampaignaudienceselector#withCondition_1>*Status <https://developers.google.com/adwords/scripts/docs/reference/adwordsapp/adwordsapp_searchcampaignaudienceselector#withCondition_1> *as a valid column? Also, when just trying to iterate over *all *the audiences *(as below)*, I always get an empty iterator despite the campaign containing multiple audiences... var campaign = AdWordsApp.campaigns().withCondition('CampaignName = "My Campaign"').get().next() var audiences = campaign.targeting().audiences().get() Logger.log(audiences.totalNumEntities()) // Returns 0.0 while (audiences.hasNext()) Logger.log(audiences.next().getName()) // Never enters while loop... Any insight/help would be greatly appreciated! Thanks, Dom -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/49315a7c-f29d-4402-bf82-71879de3ffe4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.