GoogleWebmasterTool のApiリファレンスが・・

GoogleWebmasterTool を使った
サイトマップ一括更新とかのツールを作ってるわけですが、
その中でAPIリファレンスが間違ってるせいで、いきづまってたわけで、
なんで通らないんだろうと・・・

カンでAPIを変えたら通った!

リファレンス間違ってるっつーーーのwwww

これで3時間くらい悩んでしまった。。。

間違ってる箇所はここ

http://code.google.com/intl/ja/apis/webmastertools/docs/2.0/developers_guide_protocol.html

Deleting Sitemaps
You can delete a Sitemap for a specified site. The site and sitemap are identified by their URLs, encoded using URL encoding. For example, to delete the Sitemap http://www.example.com/sitemap.xml for the site http://www.example.com/, send an authenticated DELETE request to:

https://www.google.com/webmasters/tools/feeds/http%3A%2F%2Fwww%2Eexample%2Ecom%2F/
sitemaps/http%3A%2F%2Fwww%2Eexample%2Ecom%2F/sitemaps/http%3A%2F%2Fwww%2Eexample%2Ecom%2Fsitemap%2Exml

肝心のAPIが間違ってます。

正しくはこう

https://www.google.com/webmasters/tools/feeds/http%3A%2F%2Fwww%2Eexample%2Ecom%2F/
sitemaps/http%3A%2F%2Fwww%2Eexample%2Ecom%2Fsitemap%2Exml

直感でURLを直したらうまくいったからいいものの、
DELETE投げるのがjquery経由でミスってるのかとか
調べまくって3時間ほど無駄にしてしまった・・・

とりあえずメールってみました。

結論

Googleだから正しいと思わないこと!