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? On Tuesday, June 21, 2022 at 2:05:02 PM UTC+3 Naor wrote:
> 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 > <https://developers.google.com/google-ads/api/docs/samples/get-account-information> > ) > > 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. > On Monday, June 20, 2022 at 5:16:44 AM UTC+3 adsapi wrote: > >> Hi Naor, >> >> Thank you for posting your concern. >> >> It appears that you are referring to the manager >> <https://developers.google.com/google-ads/api/reference/rpc/v9/Customer#manager> >> >> field of the GetCustomerRequest >> <https://developers.google.com/google-ads/api/reference/rpc/v9/GetCustomerRequest> >> >> instead which is used to know whether specific customers are manager or >> not. With this, I would suggest using the customer >> <https://developers.google.com/google-ads/api/fields/v11/customer> >> report and include customer.manager >> <https://developers.google.com/google-ads/api/fields/v11/customer#customer.manager> >> >> to get the same information. >> >> Let me know if you have further questions. >> >> Regards, >> [image: Google Logo] >> Ernie John >> Google Ads API Team >> >> >> ref:_00D1U1174p._5004Q2bxxpL:ref >> > -- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing, or taking any action in reliance on the contents of this information is strictly prohibited. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "Google Ads API and AdWords 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/ae141b77-9493-4f7a-a8cc-7ba493bdaa81n%40googlegroups.com.
