Re: Developer Token Works, Production Token can't connect

2015-12-08 Thread Umesh Dengale
Hi Josh,

The AuthorizationError.USER_PERMISSION_DENIED means your OAuth credentials 
don't match clientCustomerId you specify. Basically, login you are using 
doesn't have access to the account you are trying to touch. Could you confirm 
that the login account used for doing OAuth2 authorization is the same as 
that of manager account?

Regards,
Umesh Dengale, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e2a037b1-8980-47fe-bd33-e75ab832a84a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Developer Token Works, Production Token can't connect

2015-12-07 Thread Joshua Bartley
I might have mixed my words the first time. CLIENT_ID and CLIENT_SECRET is 
the two values we changed. Developer token is the same for the dev server 
and production servers.

I have read the guide, but my error does not make sense because we have 
re-done the OAuth flow multiple times. We changed the server to the 
different CLIENT_ID and CLIENT_SECRET and re-authorize the application to 
that, the authorization flow works but then can no longer access the API. 
I've dumped the request object from the oauth flow to validate the client 
ids and dumped the customer id before sending a request through the PHP 
Library. What is perplexing is that this code works on one server, but as 
soon as we change the CLIENT_ID and CLIENT_SECRET everything stops work, 
even after repeated authorizations through OAUth and verifying the 
application in the google account security section.

Also if I attempt to reconnect the application to AdWords, but it was never 
deactivated, I only get an access token back which tells me the 
authorization flow is correct since the refresh token only shows up on the 
first authorization.

Thanks,
-Josh

On Monday, December 7, 2015 at 10:13:23 AM UTC-5, Umesh Dengale wrote:
>
> Hi Josh,
>
> A developer tokens can be used with any AdWords account, regardless of 
> which manager account was used to apply for it. A developer token 
>  
> is 
> associated with a manager account simply for record-keeping purposes.
>  
> The AuthorizationError.USER_PERMISSION_DENIED means your OAuth credentials 
> don't match clientCustomerId you specify. Basically, login you are using 
> doesn't have access to the account you are trying to touch. BTW, this is 
> covered here 
> .
>  
> Please re-do the OAuth flow (generate new refresh token) making sure you 
> are logged in under a proper account(MCC account owner). Please check out 
> OAuth2.0 
> PHP guide 
> 
>  for 
> more details. 
>
> Regards,
> Umesh, AdWords API Team.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c2cbfd7c-9aed-411a-a946-4f1fbc33a042%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Developer Token Works, Production Token can't connect

2015-12-07 Thread Umesh Dengale
Hi Josh,

A developer tokens can be used with any AdWords account, regardless of 
which manager account was used to apply for it. A developer token 
 
is 
associated with a manager account simply for record-keeping purposes.
 
The AuthorizationError.USER_PERMISSION_DENIED means your OAuth credentials 
don't match clientCustomerId you specify. Basically, login you are using 
doesn't have access to the account you are trying to touch. BTW, this is 
covered here 
.
 
Please re-do the OAuth flow (generate new refresh token) making sure you 
are logged in under a proper account(MCC account owner). Please check out 
OAuth2.0 
PHP guide 

 for 
more details. 

Regards,
Umesh, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/49ee6818-f9b4-4236-aa64-1392cd5e08c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Developer Token Works, Production Token can't connect

2015-12-04 Thread Joshua Bartley
For my application we have two developer tokens(or applications), one for 
development, and one approved for production use. On the development server 
we can connect and reconnect to our test mcc accounts perfectly. Switch out 
the CLIENT_ID, CLIENT_SECRET, DEVELOPER_TOKEN causes the code to break. The 
current error is "USER_PERMISSION_DENIED". The accounts are linked, because 
I see it in my accounts application access and if I attempt a reconnect, I 
only receive an access token, no refresh_token like when I disconnect and 
connect the first time and receive an refresh_token. We are using the PHP 
client library for access.

I wanted to see if anyone has had this issue or if anything sounded 
familiar enough to help guide me on where to look or how to troubleshoot 
this more.

Thanks,
-Josh

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4c2049ef-5fe4-4d79-aaa2-642f1905d778%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.