My Business
4K members online now
4K members online now
For developers who are using the Google My Business API to manage locations
Guide Me
star_border
Reply

Unable to Patch functionality for "Addtional Category" in Account

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

We are trying to delete a Additional Category in location which is published  from my business account  using c#  but  we get the following error. We have also provide you our applied code.

 
Request contains an invalid argument. [400]
Errors [
Message[Request contains an invalid argument.] Location[ - ] Reason[badRequest] Domain[global]
]
Please review below image for delete Additional Category Issue.
 
image-4.jpgimage-3.jpg
 
     Please help us ASAP.
 
Thank You
1 Expert replyverified_user

Re: Unable to Patch functionality for "Addtional Category" in Account

Google Employee
# 2
Google Employee

Hi @Scout50 D,

 

After troubleshooting your source code, I found that the value that you are providing for fieldMask is incorrect. I couldn’t find Responselist object which you are using for fieldMask to update your location in your provided source code, so I suggest you please try changing the fieldMask to “additionalCategories” to see if it fixes the issue.

 

In addition, since the C# client library doesn’t currently support the display of detailed error messages, we suggest you follow the Make a simple HTTP request step-by-step guide on the Google Developers site to learn how to use the OAuth 2.0 Playground for troubleshooting errors with detailed error messages when sending requests with data via the Google My Business API.

 

Thanks,

The Google My Business API team

Re: Unable to Patch functionality for "Addtional Category" in Account

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Hello

 

We have changed code as per your previous reply but still we get same error.

 

image-1.jpg

 

 

Please reply us ASAP.

Unable to Patch functionality for "Addtional Category" in Account

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭

Hello

 

We have changed code as per your previous reply but still we get same error.

 

image-1.jpg

 

 

Please reply us ASAP.

Re: Unable to Patch functionality for "Addtional Category" in Account

Google Employee
# 5
Google Employee

Hi @Scout50 D,

 

We suggest you please check out our previous solution that we provided for your issue regarding unable to patch a location in Google My Business API and follow provided code snippet for patching the additionalCategories with the C# client library.

 

Thanks,

The Google My Business API team