Hi all,

I am using a website on Azure and I get the following error when i try to 
get a refresh token via the Google AdWords API: 

*Failed to connect to 2a00:1450:400c:c05::54: Address family not supported*But 
step by step:
- First I create a new client id (for web application) using the Google 
Developrs Console
- I put my redirect url (target is a Zend Framework 2 Action) in the 
Redirect URI textfield.
- Then I generate an authorization url (with my client_id and 
client_secret) by doing this:

$OAuth2Handler = $this->user->GetOAuth2Handler();
$authorizationUrl = 
$OAuth2Handler->GetAuthorizationUrl($this->user->GetOAuth2Info(), 
$redirectUri, true);

- Then I open the authorization url by clicking on the link on my website 
and log in in the google website (with my google account).
- Then in the address line of the Browser I can see the correct redirect 
url with the token 4/......
- But nothing happens. Only the Error Message is shown:





*File 
...\vendor\Google\Api\Ads\Common\Util\SimpleOAuth2Handler.php:118Message 
Failed to connect to 2a00:1450:400c:c05::54: Address family not supported*I 
think the error is from the last line of the following code:

$redirectUri   = 'http://...';
$OAuth2Handler = $this->user->GetOAuth2Handler();
        
// Get the access token using the authorization code. Ensure you use the 
same
// redirect URL used when requesting authorization.
$this->user->SetOAuth2Info($OAuth2Handler->GetAccessToken($this->user->GetOAuth2Info(),
 
$code, $redirectUri));


By using Google I only found the both sites, but it don't fix my Problem.

https://groups.google.com/forum/#!topic/adwords-api/poBetVNdMWg
https://groups.google.com/forum/#!msg/adwords-api/D1zTq4ZtnTs/PfatuLV_aOYJ

What can I do?


Geetings from germany

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to