Hi, Thank you for bringing this to our attention. This problem was already resolved in the AdWords API PHP client library:
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/src/Google/Api/Ads/Common/Util/AuthToken.php Best, - Eric Koleda, AdWords API Team On Nov 27, 1:25 pm, Bertina <abert...@gmail.com> wrote: > hi > there is and error in php sample code "AuthToken.php". > when it try to connect tohttps://www.google.com/accounts/ClientLogin > it returns a certificate error > you must change a small part of the AuthToken.php and replcae it with > the following code: > line 47: > curl_setopt($ch, CURLOPT_POST, 1); > curl_setopt($ch, CURLOPT_POSTFIELDS, $post_vars); > curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); > curl_setopt($ch, CURLOPT_HEADER, 0); > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); // you must add this > line -- 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-...@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.