http status code 403 - Google Webmaster API - Mark crawlerros as fixed -
while marking crawl-errors fixed via api, got 403 error „insufficient permission“. if read erros via api, got no errors. i’m owner of site , logged google webmaster credentials. i've created api creditals developer console , i'm using oauth. there configuration disallow writing via api?
i've found similar question on stackoverflow: google analytics reports api - insufficient permission 403 cant find view-id
i've found solution. set scope webmastersservice.scope.webmasters instead of webmastersservice.scope.webmastersreadonly
string[] scopes = { webmastersservice.scope.webmasters }; usercredential credential = googlewebauthorizationbroker.authorizeasync(new clientsecrets { clientid = "clientid", clientsecret = "clientsecret" } , scopes , "my name" , cancellationtoken.none).result;
Comments
Post a Comment