SelectorError.INVALID_PREDICATE_FIELD_NAME

24 views
Skip to first unread message

Samantha Kapai

unread,
Jan 26, 2022, 9:57:42 AM1/26/22
to Google Ads API and AdWords API Forum
Hello

I am using the new suds library from suds community ."https://github.com/suds-community/suds".  I get the following error back when trying to execute my python code 


predicate = self.wsdl_client.factory.create('Predicate')
if name_filter != "":
predicate['operator']['value'] = "CONTAINS"
predicate['field'] = "Name"
predicate['values'] = name_filter
selector['predicates'] = [predicate]

Error: SelectorError.INVALID_PREDICATE_FIELD_NAME @ serviceSelector, RequiredError.REQUIRED @ serviceSelector.predicates[0].operator, RequiredError.REQUIRED @ serviceSelector.predicates[0].field



Could someone please help out?

Google Ads API Forum Advisor

unread,
Jan 26, 2022, 4:20:53 PM1/26/22
to samant...@gmail.com, adwor...@googlegroups.com
Hi Samantha,

Thanks for reaching out. Can you confirm which API the third party tool uses? I see you linked to ddp.googleapis.com, which is not related to the AdWords or Ads API. It seem it's related to the DDP API (Ad Manager). You might try asking about this on their dedicated forum, here.

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2VPhUR:ref
Reply all
Reply to author
Forward
0 new messages