Problem getting started with PHP demos

66 views
Skip to first unread message

Chris

unread,
Jan 19, 2017, 3:08:52 PM1/19/17
to AdWords API Forum
I'm getting the following error

PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/chris/getcampaigns.php on line 40

when I try to run the getcampaigns demo.

I'm sure I'm doing something stupid, but I have no idea what it is, can somebody give me some pointers?

Shwetha Vastrad (AdWords API Team)

unread,
Jan 19, 2017, 3:29:13 PM1/19/17
to AdWords API Forum
Hi Chris,

Could you check the PHP version you are using? The new PHP client library requires PHP 5.5.9 and higher. If updating to PHP version 5.5.9 or above doesn't solve the issue, please post your question in the library's repository since this is specific to the PHP client library.

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages