Google AdSense 支払いツール

Google AdSense と YouTube の確定した支払いを分けて表示し、Excel でダウンロードします。

// about

ツールについて

アカウントとサービス別に AdSense と YouTube の確定した支払いを確認し、支払日と金額を確認して別の通貨に換算し、Excel に出力できます。

使い方

  1. 入力を貼り付けるか入力します。
  2. 必要なオプションを選びます。
  3. 結果をコピーまたはダウンロードします。

このツールが使われる理由

  • 変換、整形、バッチ処理をすばやく行えます。
  • デバッグ、共有、コンテンツ準備に役立ちます。
  • すぐに結果が必要なときに便利です。
ガイド · 収益 · 4分で読めます

Google AdSenseとGoogle Playの支払いの仕組み:見積もり収益と確定収益、為替、帳簿付け

Googleからの収益が入り始めると、すぐに「なぜ管理画面の金額と銀行の入金額が合わないのか」という疑問が出てきます。収益が確定して支払われる仕組みを理解すれば、毎月の照合がずっと楽になります。

AdSenseの管理画面にリアルタイムで表示される金額は見積もり収益です。月が終わると、Googleは無効なトラフィックを除外して数値を確認し、確定収益が通常翌月の初めに残高へ加算されます。そのため見積もり額と確定額は少し異なることがあります。

10月1日〜31日   見積もり収益が発生(管理画面)
11月初旬        10月分の収益が確定 → 残高に加算
11月21日ごろ    残高が基準額以上なら支払い
数日後          銀行に着金
AdSenseの見積もり収益と確定収益の違い、毎月の支払いスケジュールと支払い基準額、支払いが保留される主な理由、外貨収入の記帳方法を解説します。
ガイドを読む →
AIで作る

このツールをAIで自作してみましょう

自分用のバージョンが必要なら、作業指示プロンプトをAIチャットに貼り付けるか、スキルファイルをAIコーディングエージェントに保存してください。私たちが開発時に整理した機能、例外、テストケースが含まれています。

プロンプトとスキルは英語で提供しています。AIツールはどの言語でもよく理解できます。

AI作業指示プロンプト

Claude、ChatGPT、GeminiなどのAIチャットにそのまま貼り付けてください。

You are an experienced full-stack web developer. Build a web tool called "Google AdSense の支払い" that meets the requirements below.

## Goal

Build a web tool that signs in with Google, reads finalised AdSense payments, splits them into AdSense and YouTube, applies exchange rates and exports an Excel report.

## Core features

- Google OAuth sign-in requesting only the adsense.readonly scope
- Read accounts and payments via the AdSense Management API
- Classify payments as AdSense or YouTube
- Apply payment-date exchange rates from a public FX API
- Choose a year range and export to Excel (.xlsx)

## Inputs

- Google sign-in
- Year range and target currency

## Outputs

- Payment table (date, amount, source, converted amount)
- Excel file

## Edge cases and handling rules

- Re-authenticate when tokens expire
- Handle zero or multiple AdSense accounts
- Retry and show a clear error when the FX API fails
- Use the previous business day's rate for weekend payments

## Implementation requirements

- Requires a server-side implementation (e.g. ASP.NET Core or Node.js). Keep the OAuth client secret on the server and never commit it.
- Describe Google user data use in the privacy policy and delete tokens immediately when the user disconnects.
- Make the UI responsive and easy to use on mobile; label every input and keep everything keyboard accessible.
- Add a Copy button for results and show clear, friendly error messages for invalid input.
- Keep the core logic in functions separate from the UI so it can be unit-tested.

## Definition of done (test cases)

- Unit-test classification: YouTube items are classified as YouTube
- Excel contains no rows outside the year range
- Rates are applied by payment date

First outline your implementation plan in at most five lines, then write the complete code, and finally explain how to check the test cases above.

スキル (SKILL.md)

Claude CodeなどのAIコーディングエージェントで .claude/skills/build-google-adsense-earning/SKILL.md に保存すると、このツールを作る・直すたびに再利用できます。

---
name: build-google-adsense-earning
description: Use when building or changing a Google AdSense の支払い tool. Build a web tool that signs in with Google, reads finalised AdSense payments, splits them into AdSense and YouTube, applies exchange rates and exports an Excel report.
---

# Build: Google AdSense の支払い

## Goal

Build a web tool that signs in with Google, reads finalised AdSense payments, splits them into AdSense and YouTube, applies exchange rates and exports an Excel report.

## Workflow

1. Review the required features, inputs and outputs below and ask about anything missing first.
2. Implement the core logic as pure functions separate from the UI.
3. Check the logic against the test cases in the verification list.
4. Build a responsive UI with an input form, a result area and a Copy button.
5. Reproduce each edge case listed under Rules and refine the error messages.

## Core features

- Google OAuth sign-in requesting only the adsense.readonly scope
- Read accounts and payments via the AdSense Management API
- Classify payments as AdSense or YouTube
- Apply payment-date exchange rates from a public FX API
- Choose a year range and export to Excel (.xlsx)

## Inputs

- Google sign-in
- Year range and target currency

## Outputs

- Payment table (date, amount, source, converted amount)
- Excel file

## Rules

- Re-authenticate when tokens expire
- Handle zero or multiple AdSense accounts
- Retry and show a clear error when the FX API fails
- Use the previous business day's rate for weekend payments
- Requires a server-side implementation (e.g. ASP.NET Core or Node.js). Keep the OAuth client secret on the server and never commit it.
- Describe Google user data use in the privacy policy and delete tokens immediately when the user disconnects.

## Verification

- [ ] Unit-test classification: YouTube items are classified as YouTube
- [ ] Excel contains no rows outside the year range
- [ ] Rates are applied by payment date

AIに任せるときのコツ

  • 最初の行に使用技術(React、Vue、素のHTMLなど)を書くと、プロジェクトに合ったコードになります。
  • コードを受け取る前に、テストケースを実行して結果を見せるよう依頼しましょう。
  • 本物のパスワード、顧客データ、APIキーは入力せず、サンプル値を使ってください。