Re: UseOAuth in the Example of PHP SDK

2011-08-10 Thread Eric Koleda
Hi Doug, If you call $user->SetOAuthInfo() before you create a service the library shouldn't require a password. Best, - Eric Koleda, AdWords API Team -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups

Re: UseOAuth in the Example of PHP SDK

2011-08-05 Thread Doug
Hi Chirag! Thank you for your suggestion, I am indeed storing them in a PHP session, and I've got that part working, I get a response that reads OAuth Authentication Successful So then I store the tokens, but when I instantiate an AdwordsUser object I get this: Validation failed for [email]

Re: UseOAuth in the Example of PHP SDK

2011-08-05 Thread Chirag
Hi Doug, You can tryout sample webapp. There they have used oauth for verification. http://code.google.com/p/google-api-adwords-php/source/browse/apps/sample-webapp/public/login.php You need to persist the OAuth token and token secret between requests, for instance in the PHP session. On Aug 5, 1

Re: UseOAuth in the Example of PHP SDK

2011-08-04 Thread Doug
Hi dave when I comment out email and password I get this error: Validation failed for [email] with value []: email is required and cannot be NULL.null -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.

Re: UseOAuth in the Example of PHP SDK

2011-06-27 Thread David Torres
Hi Doug, You should comment out: - email and password since your are using OAuth - authToken is specific to ClientLogin which is another way to authenticate so it is either this or OAuth. - applicationToken is not longer required by the API - clientId you need to use if you authorized your MC

Re: UseOAuth in the Example of PHP SDK

2011-06-23 Thread Doug
If possible I would still like to know which of these do I need if I'm strictly using OAuth, Like do I need a clientId? If so, where can I get it? I have been using the sandbox clientID (clientid_1+em...@email.com) I imagine I can leave AuthToken commented correct? And the developer token I ha

Re: UseOAuth in the Example of PHP SDK

2011-06-22 Thread Doug
Thank you! So what do I need to provide out of the auth.ini file? Other than the obvious Oauth entries :) email = "do...m" password = "p...9" ;userAgent = "INSERT_COMPANY_NAME_HERE" ;applicationToken = "INSERT_APPLICATION_TOKEN_HERE" developerToken = "do...D" ; Uncomment to make requests against

Re: UseOAuth in the Example of PHP SDK

2011-06-21 Thread Doug
Excellent thank you David! -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subsc

Re: UseOAuth in the Example of PHP SDK

2011-06-21 Thread David Torres
Hi, You can use "anonymous" as consumer key and secret for testing against sandbox and then apply here http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html for using it in production. Best, -David Torres - AdWords API Team On Jun 16, 5:43 pm, Doug wrote: > Hi! So I finall

Re: UseOAuth in the Example of PHP SDK

2011-06-21 Thread David Torres
Hi, You can use "anonymous" as your consumer_key and consumer_secret for testing against sandbox or you can apply for getting both by following the instructions here http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html Best, -David Torres - AdWords API Team On Jun 16, 5:43

UseOAuth in the Example of PHP SDK

2011-06-16 Thread Doug
Hi! So I finally got the examples to run! I am trying to get OAuth to work with PHP and Google Adwords API, so far I wasn't able to even run this UseOAuth.php script because I didn't have the oauth.so extension included in my PHP installation. But now I've fixed that and I have gotten this far: