google-ads-doctor icon indicating copy to clipboard operation
google-ads-doctor copied to clipboard

Only display relevant config info for all 3 OAuthTypes

Open bonniecpk opened this issue 5 years ago • 0 comments

For example, with --oauthtype=web, only display

2019/11/05 14:25:57 Config keys and values:
2019/11/05 14:25:57 	ClientID = ******************* (hidden)
2019/11/05 14:25:57 	ClientSecret = ******************* (hidden)
2019/11/05 14:25:57 	DevToken = ******************* (hidden)
2019/11/05 14:25:57 	LoginCustomerID = 1234567890

with --oauthtype=installed_app, only display

2019/11/05 14:25:57 Config keys and values:
2019/11/05 14:25:57 	ClientID = ******************* (hidden)
2019/11/05 14:25:57 	ClientSecret = ******************* (hidden)
2019/11/05 14:25:57 	DevToken = ******************* (hidden)
2019/11/05 14:25:57 	RefreshToken = ******************* (hidden)
2019/11/05 14:25:57 	LoginCustomerID = 1234567890

with --oauthtype=service_account, only display

2019/11/05 14:25:57 Config keys and values:
2019/11/05 14:25:57 	PrivateKeyPath = <empty>
2019/11/05 14:25:57 	DelegatedAccount = <empty>
2019/11/05 14:25:57 	LoginCustomerID = 1234567890

bonniecpk avatar Nov 05 '19 19:11 bonniecpk