This is a step-by-step tutorial to use AdSense with Google Spreadsheets. The example will show the daily earnings from 11/02/2015 to 11/20/2015
- Create a spreadsheet on Google Drive.
- Rename current page (sheet) to AdClients.
- Create a script Tools > Script Editor.
- Implement adClients() function.
- Enable Google Adsense Service from Resources > Advanced Google Services...
- Switch AdSense Management API to On state and click OK
- Click Run button
- Authorize for Adsense and Google Drive from the popups.
- Create a project on Google Developers Console if you haven't already.
- In Script Editor associate your created project with the script as following:
- Here you will enter the ProjectID in Google Developers Console
- Run the script
- In your spreadsheet you will see the ids for AdSense. Copy the ID which is starting with ca-pub-
- Clear your script editor (Thats all we should done with adClients() method) and implement generateReport() function. For adClientId variable paste your copied ID.
- Run the code. You will see the following result:


1:17 AM
0 comments:
Post a Comment