How to use ESTIMATED_EARNINGS with Python.

Skip to first unread message

Mustafa Demir

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

Nov 18, 2021, 10:46:58 AM11/18/21
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 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

Reply all
Reply to author
0 new messages