admob数据爬取

来源:互联网 发布:java完全自学第一步 编辑:程序博客网 时间:2024/05/24 05:15

python 爬取admob请求数据需要的字段:pub_id、client_secret、client_id、refresh_token


pub_id 在个人账户登录下就可以获取到

关键在于获取 client_id 和client_secret以及refresh_token

client_id 和client_secret的获取:

1、登录:https://console.developers.google.com/apis

  创建凭据:


选择OAuth客户端id  创建时选择 web Application,在下方加入重定向网址

https://developers.google.com/oauthplayground/

记录id 和secret

 在信息中心中加入 Token serves API权限方便下一步获取token:





 2接下来生成token:

打开https://developers.google.com/oauthplayground/ 

首先选择

设置 加入自己的账号

勾选adsense management API1.4 下的两个权限

点击 获取token


有什么疑问可以交流



原创粉丝点击