Groups
Sign in
Groups
Google Ads API and AdWords API Forum
Conversations
Labels
About
Send feedback
Help
AttributeError: _pb - Issue on campaign update using Python lib
826 views
Skip to first unread message
Kubber
unread,
Oct 20, 2021, 2:45:54 AM
10/20/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API and Google Ads API Forum
Hi,
I'm using google-ads==14.0.1 and trying to run this example:
https://github.com/googleads/google-ads-python/blob/master/examples/basic_operations/update_campaign.py
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 AM
10/20/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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,
Aryeh Baker
Google Ads API Team
ref:_00D1U1174p._5004Q2PL6lZ:ref
Kubber
unread,
Oct 20, 2021, 11:07:41 AM
10/20/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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