Re: PHP AuthToken error

2010-10-04 Thread stiggywigget
Just a note so as to not mislead anybody. Where I wrote: $new_token = $user-GetAuthToken(); // Now start over from the top, etc. Before requesting the new token I create a new $user but sending login email/pass. $user = new AdWordsUser(SEND EMAIL AND PASS); Then perform the same test. If

PHP AuthToken error

2010-10-04 Thread stiggywigget
I'm trying to implement something like this: 1. ClientLogin with email/pass - OK 2. Get AuthToken - OK 3. Use AuthToken for all requests - OK But when the AuthToken expires (simulated by setting it to an incorrect value) I get a SoapFault which has no public properties. I can't recover from it

Re: PHP AuthToken error

2010-10-04 Thread AdWords API Advisor
Hi, You can't get the email and password from the authtoken. You need to keep track of the user for which you are making call to do this. If you are using the AdWords API Php client library (http:// code.google.com/p/google-api-adwords-php/), then the AdWordsUser class can keep track of the email

Re: PHP AuthToken error

2010-10-04 Thread stiggywigget
Thanks. I'm not trying to get information from the token. I'm trying to handle the SoapFault that occurs when a token expires. I found a solution. $user = new AdWordsUser(SEND THE TOKEN HERE); try { // test using the CampaignService. $campaignService = $user-GetCampaignService('v201008');