Hi,
I'm trying to create a new customer using the example from git:
https://github.com/googleads/google-ads-python/blob/master/examples/account_management/create_customer.py
I'm getting the following error:
TypeError: create_customer_client() missing 2 required positional arguments:
'email_address' and 'access_role'
(BTW, it is working just fine when switching to V1)
I tried to alter the code like this:
role = client.get_type('AccessRoleEnum').ADMIN
response = customer_service.create_customer_client(mgr_id, customer,
"[email protected]", role)
But now I'm getting this error:
File <>/.local/share/virtualenvs/ml-googleapi-n6J6a0FH/lib/python3.7/site-
packages/google/ads/google_ads/v2/services/customer_service_client.py",
line 390, in create_customer_client
access_role=access_role,
TypeError: Parameter to MergeFrom() must be instance of same class:
expected google.protobuf.StringValue got str.
Can anyone know how to do it correctly?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/83ec7dfb-fc66-4e50-98be-894626b614dc%40googlegroups.com.