PHP Ads Library not able to execute in codeigniter

40 views
Skip to first unread message

itservices itservices

unread,
May 20, 2022, 7:53:49 AM5/20/22
to Google Ads API and AdWords API Forum
Hi,

i have installed php ads api library in my system and I am getting my api response from the terminal by typing 

php examples/BasicOperations/GetCampaigns.php --customerId 123456789.

But, the same doest load when i convert this into code igniter function.Is it because of my code issue?I have pasted the exact code in the library function to a php method.but when i hit the respective url it is showing "localhost is currently unable to handle this request."


I also tried adding the GetCampaigns.php into the root directory.But when i hit 
localhost/projectname/GetCampaigns.php,it shows error screen.I have included the vendor library correctly.

Is anybody trying to build reporting application using ads api facing the same issue? Please Help me.

Screenshot 2022-05-20 at 5.18.10 PM.png
Screenshot 2022-05-20 at 5.16.15 PM.png

Google Ads API Forum Advisor

unread,
May 20, 2022, 4:17:39 PM5/20/22
to itser...@unigage.com, adwor...@googlegroups.com
Hi,

Thanks for reaching out to us.

Since you have followed the steps provided in the documents for PHP client library, and client library setup is still not working for you, then I recommend you to reach out to PHP client library owners by opening a new issue with their team via issue tracker, for further assistance. 

Let us know if you have any further questions.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bBge7:ref
Reply all
Reply to author
Forward
0 new messages