Hi Jeff,

A *developer* token does not provide authorization to a specific account. 
In fact, you can use the same developer token to access *any* account via 
the API as long as you have authorization (via OAuth) to access the account.

Regarding your questions:

1) Is this empty API Center page a bug in the interface? Is it because I'm 
logged in as a different use than the one who made a Developer Token for 
the MCC?

I believe this is by design since the developer token is sensitive 
information and the user you are logged in has read-only access. If you had 
another user with administrative access to your MCC then I would expect the 
dev token to be visible to that user.

2) Why might I be getting this OAUTH_TOKEN_INVALID error, even though I 
followed the same steps as when I configured my Test Account?

Generally that error indicates that the *Authorization* header is not 
formatted properly or you accidentally left off some characters. Are you 
using one of the Client 
Libraries<https://developers.google.com/adwords/api/docs/clientlibraries> or 
are you constructing the requests manually? If the latter, please make sure 
that the value of your *Authorization* header is *Bearer xxx*, where *xxx* is 
your OAuth *access* token.

You can also verify that your *access *token is valid by appending it to 
the end of this URL:

https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=

If it is invalid the page will contain an error. If the token is valid you 
will get something like this:

{
 "issued_to": "*YOUR_CLIENT_ID*",
 "audience": "*YOUR_CLIENT_ID*",
 "scope": "https://adwords.google.com/api/adwords";,
 "expires_in": 2322,
 "access_type": "offline"
}

Note that you'll need to go this URL before the access token expires 
(usually ~1 hour).

Cheers,
Josh, AdWords API Team

On Thursday, May 22, 2014 12:57:44 PM UTC-4, Jeff wrote:
>
> I have been developing and application against a Test Account and it works 
> well. Now I am trying to connect to our production account and test it 
> there.
>
> I followed the OAUTH2 setup process with my Google Account that has read 
> access to the production MCC and got a new Refresh Token, but when I use 
> that token in the API I get the error:
>
> ReportDownloadException: Report download failed. Underlying errors are 
> Type = 'AuthenticationError.OAUTH_TOKEN_INVALID', Trigger = '', FieldPath 
> = ''.
>
> I suspected maybe I didn't have permission to use the dev token against 
> the production account, so I went (logged in as the Google Account with 
> read access to the MCC) to Settings -> Account Settings -> AdWords API 
> Center in order to check if the dev token is indeed approved. But when I go 
> to that page it shows nothing but an empty screen. It doesn't display my 
> existing dev token or give me an option to apply for one.
>
> I think contacted support by phone they did confirm the dev token I'm 
> using is correct and that it is approved, but they weren't able to support 
> me beyond that.
>
> So I have two questions:
>
> 1) Is this empty API Center page a bug in the interface? Is it because I'm 
> logged in as a different use than the one who made a Developer Token for 
> the MCC?
>
> 2) Why might I be getting this OAUTH_TOKEN_INVALID error, even though I 
> followed the same steps as when I configured my Test Account?
>
> Thanks
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to