How to get whole customer object from updateCustomer()?

25 views
Skip to first unread message

Vedran Presečki

unread,
Feb 3, 2022, 7:34:00 AM2/3/22
to Google Ads API and AdWords API Forum
Hi,

I'm using CustomerServiceClient to update name of the customer and I want updated object back. 
From what I see, I only get resource name from the updated customer which is forcing me to use another request after update, getCustomer(). 

Is there a way to get the full customer from updateCustomer() request?
I know for setting MUTABLE_RESOURCE, but that will return customer with changed fields only (in this case name), not the full data of the customer, specifically ID of the customer.

Or is it expected that if updateCustomer() was a success, that my Customer object which I passed to update operation is truthy and it's equals to the one on Google Ads. 

KR, 
Vedran 

Google Ads API Forum Advisor

unread,
Feb 3, 2022, 11:07:48 AM2/3/22
to vedran....@cloudsense.com, adwor...@googlegroups.com
Hi Vedran,

Thanks for reaching out. The MUTABLE_RESOURCE return type will only provide mutable fields. You can read about this here.

To obtain all attributes of an object, you must issue a Get request. However, Get should be used sparingly.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2W3xS6:ref

Vedran Presečki

unread,
Feb 4, 2022, 2:41:34 AM2/4/22
to Google Ads API and AdWords API Forum
Hi Matt, 

Thank you.

Reply all
Reply to author
Forward
0 new messages