V9 customer service changes

74 views
Skip to first unread message

Naor

unread,
Jun 19, 2022, 8:49:18 AM6/19/22
to Google Ads API and AdWords API Forum
Hi,
With V9 version when we were still able to use the get methods I was able to retrieve a field from customer entity called "hasManager".
I am trying to figure out what is the equivalent replacement for this property using the search from googleAdsService? (I want to build the equivalent query to fetch all the relevant fields for me)

Thanks,
Naor

Google Ads API Forum Advisor

unread,
Jun 19, 2022, 10:16:44 PM6/19/22
to naor...@skai.io, adwor...@googlegroups.com
Hi Naor,

Thank you for posting your concern. 

It appears that you are referring to the manager field of the GetCustomerRequest instead which is used to know whether specific customers are manager or not. With this, I would suggest using the customer report and include customer.manager to get the same information.

Let me know if you have further questions.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bxxpL:ref

Naor

unread,
Jun 21, 2022, 7:05:02 AM6/21/22
to Google Ads API and AdWords API Forum
Hi,
I keep failing when trying to retrieve customer with a search query.
My flow (Note that I am using google ads api v10): 
1) fetch accessible customers ids with getResourceNamesList (using ListAccessibleCustomersRequest)
2) Extract from the response the resources (customers ids)
3) For each customer id from the response (step 2) I want to fetch the Customer entity/resource (using the googleAdsServiceClient "search" method as described here)

The error I am getting is - 
FAILURE REQUEST SUMMARY. Method: google.ads.googleads.v10.services.GoogleAdsService/Search, Endpoint: googleads.googleapis.com:443, CustomerID: customers/<some customer id>, RequestID: o2L6I3RMXKOOTrzG7te0-Q, ResponseCode: INVALID_ARGUMENT, Fault: Request contains an invalid argument..

What am I missing? does the response from step 2 does not contains valid accessible customers ids anymore?
Thanks in advanced.

Naor

unread,
Jun 21, 2022, 7:25:38 AM6/21/22
to Google Ads API and AdWords API Forum
Hi, Just wanted to point out that in v9 I used the customerServiceClient.getCustomer(resourceName), when resourceName was included in the response of step 2 mentioned above.
What is the equivalent way to achieve the same results with google ads v10?

Google Ads API Forum Advisor

unread,
Jun 21, 2022, 3:10:36 PM6/21/22
to naor...@skai.io, adwor...@googlegroups.com
Hi Naor,

Thank you for reaching out to the Google Ads API support team.

To investigate the issue further, could you please provide the complete request and responselogs, with the request-id? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions. 

Thanks,
Google Logo
Nirmitabahen Gaurav
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bxxpL:ref

Naor

unread,
Jun 21, 2022, 3:46:57 PM6/21/22
to Google Ads API and AdWords API Forum
I sent a private message with as much details as I could find (including logs).
I think the question remains the same, how can I retrieve valid customers ids of accessible customers so I can use those ids to fetch the Customer resource using googleAdsServiceClient's search query?

Google Ads API Forum Advisor

unread,
Jun 21, 2022, 10:06:03 PM6/21/22
to naor...@skai.io, adwor...@googlegroups.com
Hi Naor,

Thank you for providing the requested details privately.

To provide insights to your concern, the returned values of the CustomerService.ListAccessibleCustomers are resource_names[] in this format customers/{customer_id}. However, the required parameter for the customer_id of the GoogleAdsService.Search is customer ID of the account only and this is the reason why the INVALID_CUSTOMER_ID on your end as it could not accept values in this format customers/{customer_id}. With this, you may try to trim the values of the CustomerService.ListAccessibleCustomers that will return and ensure that the value that will remain is the customer ID only to be supplied in the customer_id of the GoogleAdsService.Search to address the error.


Let me know if you have further questions.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


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