AttributeError: _pb - Issue on campaign update using Python lib

826 views
Skip to first unread message

Kubber

unread,
Oct 20, 2021, 2:45:54 AM10/20/21
to AdWords API and Google Ads API Forum
Hi,

I'm using google-ads==14.0.1 and trying to run this example: 


but every time I get an error: 
 
AttributeError: _pb

on this line: 

client.copy_from(
    campaign_operation.update_mask,
    protobuf_helpers.field_mask(None, campaign._pb),
)

Any ideas?

Google Ads API Forum Advisor

unread,
Oct 20, 2021, 11:03:10 AM10/20/21
to ku...@crowdsteer.com, adwor...@googlegroups.com
Hi Kubber,

Did you set set use_proto_plus to True to avoid breaking interface changes as described in Protobuf Messages? This requirement started in version 14.

Regards,

Google Logo
Aryeh Baker
Google Ads API Team
 


ref:_00D1U1174p._5004Q2PL6lZ:ref

Kubber

unread,
Oct 20, 2021, 11:07:41 AM10/20/21
to AdWords API and Google Ads API Forum
Thanks a bunch that seems to be it! 
Reply all
Reply to author
Forward
0 new messages