Hi Alejandro, Could you clarify if you are using the Python client library? If so, you may refer to this complete sample code <https://developers.google.com/adwords/api/docs/samples/python/targeting#add-negative-criteria-to-a-customer> for adding Placement <https://developers.google.com/adwords/api/docs/reference/v201809/CustomerNegativeCriterionService.Placement> negative criteria to customer. The same implementation is used for adding MobileApplication <https://developers.google.com/adwords/api/docs/reference/v201809/CustomerNegativeCriterionService.MobileApplication> negative criteria.
Let me know if you have further clarifications. Thanks and regards, Luis AdWords API Team On Wednesday, December 12, 2018 at 7:06:48 AM UTC+8, Alejandro BrĂ¼cher wrote: > > Hi > Can I block this url like "yahoo.com" o > "mobileapp::2-tv.peel.smartremote" with this code? > > ------------ > Customer_criterion_service = client.GetService( > 'CustomerNegativeCriterionService', version='v201809') > # Initialize appropriate service. > > operations = [] > for index, row in df.iterrows(): > operations.append({ > 'operator': 'ADD', > 'operand': > { > > 'criterion': { > 'xsi_type': 'Placement',#'LocationGroups', > 'url': row['url'] <- input data > } > } > > > }) > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 and Google Ads 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/b3e364ad-bd3e-4ad0-9c71-53cb379c718b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.