简体   繁体   中英

Google Adsense Api Access with API Key

I have wordpresss MU.

Every Author has his separate subdomain. But the whole website (main domain + all sub-domains) use a single AdSense account.

I am trying to make an earning report dashboard where the author enter the sub-domain name to get his earning report.

My question is: how to do the server side authentication of my google AdSense account.

Currently AdSense doesn't support Service account.

You can use the Installed Application OAuth2 scenario to store refresh tokens and use them, basically, as you would use service account keys.

https://stackoverflow.com/a/20199357/3033153

Then, use the DOMAIN_NAME dimension to generate your reports.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM