0

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.

Gab
  • 5,604
  • 6
  • 36
  • 52

1 Answers1

3

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.

Community
  • 1
  • 1
Jose Alcérreca
  • 1,809
  • 17
  • 20