Hi Berry, Why not retrieve all campaign negative criterion where CriteriaType = PLACEMENT and PlacementUrl contains xxx using the CampaignCriterionService? That should give you the ids, and you can delete the criterion to unexclude the placements. See https://developers.google.com/adwords/api/docs/reference/v201406/CampaignCriterionService.Placement for details.
Cheers, Anash P. Oommen, AdWords API Advisor. On Sunday, September 7, 2014 12:38:06 PM UTC-4, Berry Tsakala wrote: > > Hi again > > I'd like to UN-excluding some placements, via API. > > They were excluded either manually or via API's "negative campaign > criterion" (see code below). > > As far as i know now (which is why I ask), unxcluding a placement would be > by removing the criterion in which it's 'negatively' defined. > But I don't always have the Criterion Id to use for deleting that > criterion. > > > 1. Can I un-exclude placement only by "PlacementUrl" ? > > 2. Otherwise, how can I get the negative criterion by it's Placement URL ? > I tried "select Id, CriteriaDestinationUrl, FinalMobileUrl, FinalUrls from > CRITERIA_PERFORMANCE_REPORT during 20140820,20140905", which gave errors > I tried "select Id, CriteriaDestinationUrl from > CRITERIA_PERFORMANCE_REPORT during 20140820,20140905", but that returned > only Criterion Ids, not the placement URLS ... > > > here's How I exclude placemnets via API: > > operations = [ { > 'operator': 'ADD', > 'operand': { > 'xsi_type': 'NegativeCampaignCriterion', > 'campaignId': campaign_id, > 'criterion': { > 'xsi_type': 'MobileApplication', # > MOBILE_APPLICATION ? > 'appId': placement_url, > }, > } > }, ] > Enter code here... > > (and thank you for helping me with the previous questions > <https://groups.google.com/forum/#!msg/adwords-api/vrBUWZmQ6z4/UQqBs_n793gJ> > ) > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a56b2121-51c1-44ec-8af4-55d9120d1868%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.