Hi Eric, Thanks for all the details. My PHP version is 5.2.17 so the cURL option will not work. I will send an update explaining which path I took when I get there.
-Peter On Thursday, 23 August 2012 15:47:04 UTC+1, Eric Koleda wrote: > > Hi All, > > I believe Lucas is correct, that this issue is related to IPv6. This > article provides some details: > > > http://codecorner.galanter.net/2011/06/03/solution-for-wordpress-curl-ipv6-error-network-is-unreachable/ > > As the author listed, if you are using PHP 5.3 then there is a cURL option > you can use to force IPv4: > > curl_setopt( $handle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); > > > If not then you'll need to work with your hosting provider / ISP to > properly configure your server/network to either support IPv6 or disable > it. Please note this is not a problem specific to the AdWords API, and can > be seen with other APIs as well: > > > http://stackoverflow.com/questions/11004624/failed-to-connect-to-2a032880101f03faceb00c026-network-is-unreachable-fr > > The timing of this issue (about 2 months ago) corresponds with the IPv6 > Launch Day on June 6th: > > http://www.worldipv6launch.org/ > > Best, > - Eric > > On Thursday, August 23, 2012 9:47:43 AM UTC-4, Peter Crowley wrote: >> >> Yes, it looks like SSL is enabled...output from ' php -i | grep -i ssl': >> opensslOpenSSL support enabled OpenSSL Version OpenSSL 1.0.0-fips 29 Mar >> 2010 SSL support enabled >> >> On Wednesday, 22 August 2012 13:31:52 UTC+1, Danial Klimkin wrote: >>> >>> Hello Peter, >>> >>> >>> Is your php compiled with the ssl support enabled? This can be >>> controlled differently for different OS distributions. It could be checked >>> with: >>> >>> $ php -i | grep -i ssl >>> >>> >>> -Danial, AdWords API Team. >>> >>> >>> On Tuesday, August 21, 2012 3:18:25 PM UTC+4, Peter Crowley wrote: >>>> >>>> Hi Daniel, >>>> I put this Curl code in after the 'require_once' but before the >>>> 'new AdWordsUser' >>>> >>>> $curl = curl_init(); >>>> $file = fopen($localfile, 'w'); >>>> curl_setopt($curl, CURLOPT_URL, "https://google.com"); #input >>>> curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); >>>> curl_setopt($curl, CURLOPT_FILE, $file); #output >>>> if (curl_exec($curl) === false) >>>> { >>>> echo 'Curl error: ' . curl_error($ch); >>>> } >>>> else >>>> { >>>> echo 'HTTPs test worked',$newline; >>>> } >>>> >>>> >>>> It did not help, I got this output on first run, then it worked when I >>>> reloaded(F5'd) the page. >>>> >>>> /home1/mysite/public_html/ads/googlehomepage.html >>>> HTTPs test worked >>>> Exception: Failed to get authToken. Reason: Failed to connect to >>>> 2607:f8b0:400e:c01::54: Network is unreachable in line 84 file >>>> /home1/mysite/public_html/libraries/aw_api_php/src/Google/Api/Ads/Common/Util/AuthToken.php >>>> >>>> >>>> On Tuesday, 21 August 2012 09:46:30 UTC+1, Danial Klimkin wrote: >>>>> >>>>> Hello Blode, >>>>> >>>>> >>>>> Please make sure your firewall allows outbound connections to >>>>> google.com on HTTPS port (443). For example, try opening this link >>>>> with curl / wget / lynx from server console: >>>>> >>>>> https://google.com >>>>> >>>>> >>>>> -Danial, AdWords API Team. >>>>> >>>>> >>>>> On Friday, August 17, 2012 1:33:18 PM UTC+4, Blode Wong wrote: >>>>>> >>>>>> important informations: >>>>>> >>>>>> when i move this script to a new network environment, it's running >>>>>> fine at the first time. >>>>>> >>>>>> Is it need cache the authToken? >>>>>> >>>>>> On Wednesday, August 8, 2012 10:02:43 AM UTC+8, Blode Wong wrote: >>>>>>> >>>>>>> I am getting this error message intermittently when i am running >>>>>>> GetRelatedKeywords.php. >>>>>>> >>>>>>> The Error Message is: >>>>>>> "Failed to get authToken. Reason: Failed to connect to >>>>>>> 2607:f8b0:4007:801::1010: Network is unreachable" >>>>>>> >>>>>>> Can anyone help me out? >>>>>>> >>>>>> -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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
