what string can i put on placement in CustomerNegativeCriterionService

16 views
Skip to first unread message

Alejandro Brücher

unread,
Dec 11, 2018, 6:06:48 PM12/11/18
to AdWords API and Google Ads API Forum
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 
                  }
            }
            
            
    })

Luis Xander Talag (AdWords API Team)

unread,
Dec 11, 2018, 9:13:21 PM12/11/18
to AdWords API and Google Ads API Forum
Hi Alejandro,

Could you clarify if you are using the Python client library? If so, you may refer to this complete sample code for adding Placement negative criteria to customer. The same implementation is used for adding MobileApplication negative criteria.

Let me know if you have further clarifications.

Thanks and regards,
Luis
AdWords API Team
Reply all
Reply to author
Forward
0 new messages