-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Invalid Argument error from Google Business Profile API while trying to create a location #3530
Comments
I went through the
That way i am getting the real error from Google API. I found that there are some more required fields. So, I added them. Now getting another error saying
Looking into the matter. I will update here |
It seems, A location cannot be added under an Organization Account. Therefore, I created a Location Group Account under the Organization and used that Location Group Account ID. Finally it worked. I created a location group using the following code.
|
Hi @ahsanaasim, I am getting the same error as you do. Could you please guide me how did you get the Account ID? I can't find the Account ID placed in the google interface |
Hi @ahsanaasim, thanks for posting the answer and the solution. Since this is more of an API-specific question, we usually post these Q&As as discussion topics. However, one thing I am interested in and we can change is the error message. I'm curious why you didn't get that detail in the top-level error. I'm curious if the |
I am using Google's Business API to add a location from my Node.js application, but I'm encountering the following error:
I am using the
googleapis
npm package and tried by commenting out all optional fields, leaving only the required fields in the request body. But, I'm still encountering an error. Here is my code:here is detailed log
Also, Is there detailed documentation available for the Google Business API in the googleapis npm package?
I am following the following URL for creating the request body
https://developers.google.com/my-business/reference/businessinformation/rest/v1/accounts.locations#Location
I have asked the same question in stackoverflow.
https://stackoverflow.com/questions/78817586/getting-invalid-argument-error-from-google-business-profile-api-while-trying-to
The text was updated successfully, but these errors were encountered: