Hello Rodrigo,
This is not a very reliable way to filter as url may not contain "www", for example. We recommend to pull the full list and filter on the client side. -Danial, AdWords API Team. On Thursday, July 11, 2013 9:26:58 PM UTC+4, Rodrigo Reis wrote: > > Hi, > > I'm trying to retrieve all keywords that doesn't have a Destination URL > set. I'm using this selector in Python: > > selector = { > > 'fields': ['AdGroupId', 'Id', 'Text', 'Status', > 'KeywordMatchType', 'QualityScore' ], > > 'predicates': [{ > > 'field': 'CriteriaType', > > 'operator': 'EQUALS', > > 'values': ['KEYWORD'] > > }, > > { > > * 'field': 'DestinationUrl',* > > * 'operator': 'DOES_NOT_CONTAIN',* > > * 'values': ['www']* > > }, > > { > > 'field': 'Status', > > 'operator': 'IN', > > 'values': ['ACTIVE', 'PAUSED'] > > }] > > } > > The problem is that this returns Keywords that already have DestinationUrl > set.. I also tried the predicate: (DestinationUrl EQUALS ''). > > If I change the predicate to something like (DestinationUrl CONTAINS 'some > real value') it does returns properly.. It seems like the operator > DOES_NOT_CONTAIN is not working. > > Rodrigo > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/groups/opt_out.