Re: authtoken error

2014-06-11 Thread Josh Radcliff (AdWords API Team)
Hi,

Did you try the suggestions mentioned in the previous posts? Also, please 
note that the sandbox is no longer supported. Please use test accounts 
 instead.

Cheers,
Josh, AdWords API Team

On Wednesday, June 11, 2014 5:15:32 AM UTC-4, Fang Abel wrote:
>
> I also encountered the same problem, you solve it?
>
> Marco T.於 2011年4月1日星期五UTC+8下午11時06分17秒寫道:
>>
>> Using the new v201101 php library I experienced this problem with sandbox:
>>
>> Failed to get authToken. Reason: SSL certificate problem, verify that the 
>> CA cert is OK. Details: error:14090086:SSL 
>> routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
>>
>> Marco
>>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.


Re: authtoken error

2014-06-11 Thread Fang Abel
I also encountered the same problem, you solve it?

Marco T.於 2011年4月1日星期五UTC+8下午11時06分17秒寫道:
>
> Using the new v201101 php library I experienced this problem with sandbox:
>
> Failed to get authToken. Reason: SSL certificate problem, verify that the 
> CA cert is OK. Details: error:14090086:SSL 
> routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
>
> Marco
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.


Re: authtoken error

2011-04-05 Thread Marco T.
I experienced this error on the  API version change in the developing stage.

Keeping the old ini files, the API give fault. Fixed with 
CURLOPT_SSL_VERIFYPEER at false in the auth token class.

Now with your hint is more clean.

Thx
Marco

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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


Re: authtoken error

2011-04-05 Thread Eric Koleda
Hi Marco,

Was your code working previously or is the first time you are using the 
library?  Did you enabled VERIFY_PEER in settings.ini?  If so, did you also 
configure your certificates correctly?

Best,
- Eric Koleda, AdWords API Team

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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


authtoken error

2011-04-01 Thread Marco T.
Using the new v201101 php library I experienced this problem with sandbox:

Failed to get authToken. Reason: SSL certificate problem, verify that the CA 
cert is OK. Details: error:14090086:SSL 
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Marco


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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


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 and send the email/pass to start from 1. Any
advice?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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


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 and password.

You might also want to read this blog for details on how to handle
authtokens. 
http://adwordsapi.blogspot.com/2010/07/discover-v2009-working-with-authtokens.html

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Oct 4, 1:51 am, stiggywigget  wrote:
> 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 and send the email/pass to start from 1. Any
> advice?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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


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 there's no SoapFault then request a new
token. Cache it and reuse it until the AuthenticationError occurs when
the token expires again.
Repeat.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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


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');
$selector = new CampaignSelector();
$s = $campaignService->get($selector);
}
catch (SoapFault $fault) {
$errors = ErrorUtils::GetApiErrors($fault);// This is what solved my
problem
foreach ($errors as $error) {
if($error instanceof AuthenticationError) {

if($error->reason == 'GOOGLE_ACCOUNT_COOKIE_INVALID') { // token has
expired; get a new one
$new_token = $user->GetAuthToken();
// Now start over from the top, etc.
}
}
}
}


That's the general idea. I wish there was a way to validate the login
without having to make a call to the service but I haven't found one.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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