Reputation: 177
I'm using the API Explorer tool to create some request urls for google adsense here. Here is the request url that they gave me that gives a response of today's earnings:
https://www.googleapis.com/adsense/v1.4/reports?startDate=today&endDate=today&accountId=MY_ACCOUNT_ID&metric=EARNINGS&key={YOUR_API_KEY}
However, I don't know how to get my API key for google developer to be able to recreate this url in my code.
Upvotes: 0
Views: 964
Reputation: 5243
The API key is created on the Cloud Platform Console. Please refer to this document and you will be able to do it. Hope this helps!
Upvotes: 1