Groups
Groups
Sign in
Groups
Groups
(Deprecated) Google Ads API and AdWords API Forum
Conversations
Labels
About
Send feedback
Help
Call to undefined function curl_init()
271 views
Skip to first unread message
Sabri Karagönen
unread,
Jan 17, 2016, 6:04:23 PM
1/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hi,
I upgraded my PHP version to 7.
Even Curl is installed and working properly, I get Curl error when I try to get data from AdWords API:
FatalThrowableError
in
CurlUtils.php line 108
:
Fatal error: Call to undefined function curl_init()
in CurlUtils.php line 108
at
CurlUtils
->Init('
https://accounts.google.com/o/oauth2/token
') in CurlUtils.php line 52
at
CurlUtils
->CreateSession('
https://accounts.google.com/o/oauth2/token
') in SimpleOAuth2Handler.php line 108
You can see last 3 steps of my error log.
How can I fix it? What am I doing wrong?
Thanks
Thanet Knack Praneenararat (AdWords API Team)
unread,
Jan 20, 2016, 2:03:49 AM
1/20/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hi Sabri,
Are you sure you've set up the curl module correctly?
From the error message, it seems
you haven't done properly
.
Do you have
curl
appearing in the result from
php --info
?
Can you use
curl
merely in a simple PHP file?
Best,
Thanet, AdWords API Team
Reply all
Reply to author
Forward
0 new messages