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

How to add detailed error response header for create request in C# client library V2

[ Edited ]
Follower ✭ ☆ ☆
# 1
Follower ✭ ☆ ☆

Hi Team,


Based on the reference to enable detailed error responses, I am trying to add this additional header.


I am using C# client library V2 in which I would like to include the additional below header ;



below is the line of code where a new location gets created:


Location myNewDetails = GMBService.Accounts.Locations.Create(myCreateLocationRequest, myBusinessAcctName).Execute();


In this, I could not find any scope to include the header. Can you kindly help me in adding this header.


Thanks and Regards,


1 Expert replyverified_user

Re: How to add detailed error response header for create request in C# client library V2

[ Edited ]
Google Employee
# 2
Google Employee

Hi @anumula b,


I’ve already answered your question in this thread that the display of error details by adding an additional header is not currently supported by the C# client library. We’ll announce new functionalities of the Google My Business API as they become available on both this board and the Google Developers site. For the time being, please 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.


In addition, we strongly recommend you migrate to v3 of the Google My Business API as soon as feasible to help prevent any interruptions in service since v2 of the API will be deprecated on Oct 5th 2016.



The Google My Business API team