Hi Milind, my access token was correct, i can get some information like profile, email ... but i can't use this access token to accept invitation from mcc account, i use this code to accept
<https://lh3.googleusercontent.com/-OdWjXH0BV4c/W16bBHGddsI/AAAAAAAAAAo/kJn0XJPfb5o31HU3FxHXii6wSWwRNwWTQCLcBGAs/s1600/Screen%2BShot%2B2018-07-30%2Bat%2B11.58.09%2BAM.png> On Friday, July 27, 2018 at 10:45:03 PM UTC+7, Milind Sankeshware (AdWords API Team) wrote: > > Hi Duong, > > The error OAUTH_TOKEN_INVALID > <https://developers.google.com/adwords/api/docs/common-errors#AuthenticationError.OAUTH_TOKEN_INVALID> > occurs > when your access token passed with the HTTP header was not correct. To > verify that your credentials are correct, you could also try the CURL > request provided below and see if you are able to generate the access > tokens? If the credentials are correct, you should get an access token for > the below request. > > curl https://www.googleapis.com/oauth2/v4/token \ > -d refresh_token=your-refresh_token \ > -d client_id=your-client-id \ > -d client_secret=your-client-secret \ > -d grant_type=refresh_token > > If your credentials are incorrect and still facing issues then could you > generate a new refresh token with the help of this guide > <https://developers.google.com/adwords/api/docs/guides/first-api-call#get_an_oauth2_refresh_token_and_configure_your_client> > and > retry your request? Also, please make sure that you are authenticating as > the Manager account > <https://developers.google.com/adwords/api/docs/guides/accounts-overview#managedcustomerservice> > while > making this call. If you are still facing an issue please share the client > customer id of your AdWords account and manager AdWords account. > > Thanks, > Milind, AdWords API Team > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/cf70233d-3e89-4707-b9ae-b5bdf4ad1604%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.