简体   繁体   English

带有API密钥的Google Adsense Api访问

[英]Google Adsense Api Access with API Key

I have wordpresss MU. 我有WordPress的MU。

Every Author has his separate subdomain. 每个作者都有单独的子域。 But the whole website (main domain + all sub-domains) use a single AdSense account. 但是整个网站(主域+所有子域)都使用一个AdSense帐户。

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. 我的问题是:如何对我的Google AdSense帐户进行服务器端身份验证。

Currently AdSense doesn't support Service account. 目前,AdSense不支持服务帐户。

You can use the Installed Application OAuth2 scenario to store refresh tokens and use them, basically, as you would use service account keys. 您可以使用已安装的应用程序OAuth2场景来存储刷新令牌并使用它们,基本上就像使用服务帐户密钥一样。

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

Then, use the DOMAIN_NAME dimension to generate your reports. 然后,使用DOMAIN_NAME维度生成报告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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