2019-04-09
1、進(jìn)入API控制臺
https://code.google.com/apis/console/
登錄賬戶墙贱,創(chuàng)建新授權(quán)項(xiàng)目
2热芹、對新項(xiàng)目添加服務(wù)賬戶
創(chuàng)建服務(wù)帳號-分配角色
3、憑據(jù)添加憑據(jù)及設(shè)置
添加憑據(jù)-選擇服務(wù)帳號密鑰類型-配置OAuth同意屏幕-選擇上一步配置的服務(wù)賬戶-選擇json類型文件-點(diǎn)擊創(chuàng)建-授權(quán)adsense-下載json
授權(quán)重定向URL:https://developers.google.com/oauthplayground
進(jìn)入https://developers.google.com/oauthplayground/惨撇,填寫剛剛創(chuàng)建的憑據(jù)信息伊脓,選擇adsence management API,選擇權(quán)限魁衙,點(diǎn)擊Aothorize APIs按鈕
點(diǎn)擊按鈕报腔,獲取refreshtoken