Im using OAUTH2 and Ive done many  changes today.

This is what Im getting now.

[message:protected] => [AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:'']


On Monday, December 9, 2013 12:29:29 PM UTC-5, Derrick Pelletier wrote:
>
> Christian, you might be referring to an old feature, which is being 
> deprecated; it allowed you to capture an email/password to authorize with.
> See here: https://developers.google.com/accounts/docs/AuthForInstalledApps
>
>
> On Monday, December 9, 2013 6:54:38 AM UTC-8, Christian Gibbs wrote:
>>
>> Can someone please respond to my questions.
>>
>> Your explanation is like a catch22.
>>
>>
>> On Monday, November 25, 2013 7:08:56 AM UTC-5, Paul Matthews (AdWords API 
>> Team) wrote:
>>>
>>> Hi Christian,
>>>
>>> Firstly, when you authenticate the user, you need to ensure you include 
>>> *scope=offline*<https://developers.google.com/accounts/docs/OAuth2WebServer#formingtheurl>,
>>>  
>>> otherwise you'll need the user to be present for all requests.
>>>
>>> Secondly, it seems as though you're not using the most recent version of 
>>> the php client library, as we've moved many of the OAuth2 methods out 
>>> of the AdWordsUser 
>>> class<https://code.google.com/p/google-api-adwords-php/source/diff?spec=svnbbbcde2d8be7a2e2d4a2022b695c0782abf39083&r=bbbcde2d8be7a2e2d4a2022b695c0782abf39083&format=side&path=/src/Google/Api/Ads/Common/Lib/AdsUser.php>
>>>  to 
>>> the OAuth2Handler 
>>> class<https://code.google.com/p/google-api-adwords-php/source/diff?spec=svnbbbcde2d8be7a2e2d4a2022b695c0782abf39083&r=bbbcde2d8be7a2e2d4a2022b695c0782abf39083&format=side&path=/src/Google/Api/Ads/Common/Util/OAuth2Handler.php>
>>> .
>>>
>>> Thirdly, you'd need to ensure you've registered the callback URL you 
>>> supply, when you retrieve the access code.
>>>
>>> *Finally & Most likely:* there's no link between the authorized MCC and 
>>> the account you're attempting to retrieve campaigns for. The error code 
>>> you're 
>>> receiving<https://developers.google.com/adwords/api/docs/common-errors#AuthorizationError.USER_PERMISSION_DENIED>is
>>>  mostly connected to this error. The OAuth2 flow only authorizes your 
>>> access to an account, that account needs to be linked to all other accounts 
>>> it wishes to access.
>>>
>>> Regards,
>>>
>>> - Paul, AdWords API Team.
>>>
>>> On Friday, 15 November 2013 15:53:28 UTC, Christian Gibbs wrote:
>>>>
>>>> My specific error is
>>>>
>>>> Fatal error: Uncaught SoapFault exception: [soap:Server] 
>>>> [AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:''] in 
>>>> /var/www/html/dev/application/libraries/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php:201
>>>> Stack trace:
>>>> #0 
>>>> /var/www/html/dev/application/libraries/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(201):
>>>>  SoapClient->__soapCall('get', Array, NULL, Array, Array)
>>>> #1 
>>>> /var/www/html/dev/application/libraries/src/Google/Api/Ads/AdWords/v201306/CampaignService.php(6454):
>>>>  AdsSoapClient->__soapCall('get', Array)
>>>> #2 /var/www/html/dev/application/controllers/google.php(216): 
>>>> CampaignService->get(Object(Selector))
>>>> #3 [internal function]: Google->accessAuth()
>>>> #4 /var/www/html/dev/system/core/CodeIgniter.php(359): 
>>>> call_user_func_array(Array, Array)
>>>> #5 /var/www/html/dev/index.php(206): require_once('/var/www/html/d...')
>>>> #6 {main}
>>>>   thrown in 
>>>> /var/www/html/dev/application/libraries/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php
>>>>  on line 201
>>>>
>>>>
>>>>
>>>>
>>>> On Thursday, November 14, 2013 11:38:30 AM UTC-5, Christian Gibbs wrote:
>>>>>
>>>>> I keep getting, AuthorizationError.USER_PERMISSION_DENIED
>>>>>
>>>>> What is the point of them logging in, if you need to get their 
>>>>> permission again.
>>>>>
>>>>> I want anyone to be able to access their adwords account, via our 
>>>>> platform. Like so many other apps and websites do.
>>>>>
>>>>> I have refresh tokens and I can access my own account just fine, but 
>>>>> with other account logins, I get this error 
>>>>> AuthorizationError.USER_PERMISSION_DENIED
>>>>>
>>>>> It make the app pointless, if I have to manually add ever client in 
>>>>> and then allow them to login.
>>>>>
>>>>> So many apps allow this kind of access. How is it possible?
>>>>>
>>>>> I made a google app, that has a google login authorization prompt 
>>>>> screen, then once the user consents, the login is successful but I can 
>>>>> not 
>>>>> access their data.
>>>>>
>>>>> Im stuck in a circle and its driving me crazy. Please HELP!
>>>>>
>>>>>
>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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/groups/opt_out.

Reply via email to