The necessary verification token could not be found on your site. [400]

so yo want to make app with google verification API and you get an error

The service siteVerification has thrown an exception: Google.GoogleApiException: Google.Apis.Requests.RequestError
The necessary verification token could not be found on your site. [400]
Errors [
Message[The necessary verification token could not be found on your site.] Location[ - ] Reason[badRequest] Domain[global]
]

   at Google.Apis.Requests.ClientServiceRequest`1.Execute() in C:\Apiary\v1.21\google-api-dotnet-client\Src\Support\GoogleApis\Apis\Requests\ClientServiceRequest.cs:line 101
   at googleWebmasterToolsAuto.googleWebmasterToolsForm.siteVerification()

you can fix this error by write token verification on your site
you may get token from this endpoint:

https://developers.google.com/site-verification/v1/webResource/getToken

here is example of given token from google site verifiation:
<meta name="google-site-verification" content="xxxxxxx-_3b6PbsVDWWD2G6eMLQehE34O6Z5jAnSkQ" />

after you write <meta name above you  should get succes verification your site wiht this end point

https://developers.google.com/site-verification/v1/webResource/insert

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel