How to use ESTIMATED_EARNINGS with Python.

40 views
Skip to first unread message

Mustafa Demir

unread,
Nov 18, 2021, 10:29:11 AM11/18/21
to AdSense API Forum
I'm very new to this stuff and my coding knowledge is pretty weak.
I want to show my daily estimated earnings on the Raspberry Pi screen. Just like the youtube stats show in this video.


But I couldn't find how to write the code. How can I use these metrics with python? Is there a detailed guide? As I said, my coding knowledge is very poor, I really need a guide.


Ad Sense API

unread,
Nov 18, 2021, 10:46:58 AM11/18/21
to adsen...@googlegroups.com
Hi, Mustafa.

That sounds like an awesome project! We have a Python client library that can be used to call the AdSense Management API. The best place to start is our Python examples folder. You can follow the steps in the README to set up the Python client library, and then you can use the generate_report.py example for your use case (it already has ESTIMATED_EARNINGS as one of the metrics that is fetched).

If you run into any issues, let me know, and I can help you get unstuck.

Google Logo
Donovan McMurray
AdSense API Team
 


ref:_00D1U1174p._5004Q2RABe1:ref
Reply all
Reply to author
Forward
0 new messages