Google API OAuth 2.0

38 views
Skip to first unread message

Emanuel Gonzalez

unread,
Jan 17, 2022, 10:32:58 AM1/17/22
to Google Ads API and AdWords API Forum
Hello everyone, i am automating the creation of mail accounts in the domain of the company where I work. I have read the following documentation: https://developers.google.com/admin-sdk/directory/v1/guides/manage-users

In the IAM option ==> Service accounts I have generated a user with their API key and API controls added a new client.

I want to test the API and bring me all the company email accounts and in the documentation I see the following example:

GET https://admin.googleapis.com/admin/directory/v1/users ?domain=primary domain name&pageToken=token for next results page &maxResults=max number of results per page &orderBy=email, givenName, or familyName &sortOrder=ascending or descending &query=email, givenName, or familyName:the query's value*

I’ll use curl or httpie to bring me the API data, but I don’t know where to find the header value called "Token"

Need help to properly enable the use of the API? I don’t know how to enable OAuth 2.0 authentication.

Reegards,
Message has been deleted
Message has been deleted

Google Ads API Forum Advisor

unread,
Jan 18, 2022, 12:06:12 AM1/18/22
to ema...@gmail.com, adwor...@googlegroups.com

Hi Emanuel,

Thanks for reaching out to the Google Ads API Forum.

I had to delete your second comment on this thread since posting complete logs is not recommended due to privacy reasons. 

Moving forward to your concern with OAuth 2.0 authentication, you may refer to this guide. Please note that this forum channel can only provide assistance to issues/concerns related to the AdWords API / Google Ads API. However, you may reach out to the Google API console support team via this API Console Help link since Google OAuth is handled by the Google API Console Team.

Let us know if you have any further questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2VMdzz:ref
Reply all
Reply to author
Forward
0 new messages