Re: Cant get API to do anything

2017-09-29 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi, Could you try and see if the suggestions mentioned here resolves your issue? If it doesn't, please create a new issue on the PHP client library and share these details

Re: Cant get API to do anything

2017-09-28 Thread TheAinz
Hi Swetha, I've been through that again and recreated credentials. Running GetCampaigns.php now allows login but creates the following errors: "# php GetCampaigns.php PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from

Re: Cant get API to do anything

2017-09-28 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi, The unauthorized_client error usually occurs when you are using incorrect OAuth2 credentials. Could you check if you have provided the correct clientId, clientSecret and refreshToken? Could you try generating a new refresh token by following the instructions provided here

Re: Cant get API to do anything

2017-09-28 Thread TheAinz
Hi again, Knack has helped me get the library working on my local machine. I now get error messages. I now have this error, despite seemingly following the OAuth instructions and get the refresh token etc. "# php GetCampaigns.php PHP Fatal error: Uncaught GuzzleHttp\Exception\ClientException:

Re: Cant get API to do anything

2017-09-21 Thread TheAinz
Hi Shwetha, The browser post refers to what I used previously with the old library (pre 25.0.0). The query is about whether same can be done with the new library? I can't locate in the code where the browser is prevented at the moment. I've been running the GetCampaigns.php file from the

Re: Cant get API to do anything

2017-09-21 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi, Could you try out the suggestions in this post to run the examples in a browser? Could you also try out the examples without any modification from the command line and let me know if logs are generated?

Re: Cant get API to do anything

2017-09-21 Thread TheAinz
Thanks Shwetha, I know you have set them up for command line use. This is what I am doing now but still the result is nothing. So I have 2 queries: 1) You used to be able to run in a browser by commenting out the following code - Is it still possible? Where do I find the code in the new files

Re: Cant get API to do anything

2017-09-20 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Neil, All our examples are meant to be run via the command line and not as a webpage. Could you check if the clientCustomerId in the configuration file is that of an AdWords manager account? Since campaigns are associated with AdWords accounts, not manager accounts, you'll not be able to

Cant get API to do anything

2017-09-20 Thread TheAinz
Hi, I've been trying to set the API up on a new server with no success. I've watched the videos, read the help, readme etc. I've downloaded the php client library. I've downloaded the examples. I've got the client ID, secret etc. refresh token all sorted. I've set up and rung the API once