criteria service PLACEMENT not work

25 views
Skip to first unread message

Alejandro Brücher

unread,
Dec 3, 2018, 12:30:29 AM12/3/18
to AdWords API and Google Ads API Forum
I insert a negative criterial 
---------------
 customer_negative_criterion_service = client.GetService(
      'CustomerNegativeCriterionService', version='v201809')
  criteria = [
      # Exclude a specific placement.
      {
          'xsi_type': 'Placement',
          'url': url
      }
  ]
  operations = [{
      'operator': 'ADD',
      'operand': {
          'criterion': criterion
      }
  } for criterion in criteria]  
  result = customer_negative_criterion_service.mutate(operations)

----------  

and insert de negative criterial!
when i search the insert
---------
selector = {
      'fields': ['Id'],
      'predicates': [{
          'field': 'CriteriaType',
          'operator': 'IN',
          'values': ['PLACEMENT']
      }],
      'paging': {
          'startIndex': str(offset),
          'numberResults': str(PAGE_SIZE)
      }
  }  
  # Make the mutate request.
  page = campaign_criterion_service.get(selector)
--------------
return null

Dannison Yao (AdWords API Team)

unread,
Dec 3, 2018, 4:44:20 AM12/3/18
to AdWords API and Google Ads API Forum
Hi Alejandro,

Could you please provide the complete SOAP request and response logs (including the clientCustomerId) via the the Reply privately to author option so I can look into the issue you're having?

You can enable SOAP logging on your end by referring to this guide. Once enabled, kindly send to me the generated SOAP request and response logs so I can determine more accurately which caused the issue.

Regards,
Dannison
AdWords API Team
Reply all
Reply to author
Forward
0 new messages