blank page shows online

20 views
Skip to first unread message

oeaf...@gmail.com

unread,
Aug 30, 2017, 1:30:41 AM8/30/17
to AdWords API Forum
Hi there,
I am using adwords API on my local machine on XAMPP. I installed PHP Clinet API through Composer, every thing is working fine i can fetch data, can run any report i want. But now i want to upload this project on  live server. I uploaded all files on my server, but when i run it shows blank page. i have some questions
1. I need to run composer online again
2. If no then how my auto loader will work then.

Please help me to run this live 
Thanks.

Vincent Racaza (AdWords API Team)

unread,
Aug 30, 2017, 2:06:13 AM8/30/17
to AdWords API Forum
Hi,

Our PHP examples are meant to be run only in command prompt, and not in a web application as described here. So, if you run it on a webpage, you may not see the result as usual. However, you may use the same code flow from one of the code samples (e.g. extracting a part of runExample() and put it in your function to show results on the webpage) into your application.

If you have further clarifications on this, I suggest to post this in the PHP client library as this concern is PHP specific, and not AdWords API specific.

Thanks,
Vincent
AdWords API Team
Message has been deleted

oeaf...@gmail.com

unread,
Aug 30, 2017, 3:57:52 AM8/30/17
to AdWords API Forum
As i explain this code was working fine in my local/xampp environment, i am using AD_PERFORMANCE report example, i copied all code in my .php file and include this in my index.php file. its download csv file every thing is working fine.

oeaf...@gmail.com

unread,
Aug 30, 2017, 5:03:46 AM8/30/17
to AdWords API Forum
Hi,
thanks for your reply i tried to run command line. My live environment is Linux Centos 6.8 , PHP Ver:5.3. When i run this  BasicOperations]$ php GetCampaigns.php it shows this error

PHP Parse error:  syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in 

thanks.



On Wednesday, August 30, 2017 at 7:06:13 AM UTC+1, Vincent Racaza (AdWords API Team) wrote:

Vincent Racaza (AdWords API Team)

unread,
Aug 30, 2017, 5:39:04 AM8/30/17
to AdWords API Forum
Hi,

In regards to the original issue, I can see that you already posted in the PHP client library itself. Kindly continue the discussion on that thread.

For your new issue, this seems to be a PHP syntax error. Could you provide to me your PHP code so I can check on it? Kindly use the Reply privately to author option.
Reply all
Reply to author
Forward
0 new messages