RE: Error while running GetCampaigns.php file

2019-02-19 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
Hi Virender, I have masked the sensitive information from your post. Moving further, regarding your issue, could you check the emailid for which the OAuth was created is the same emailid that you are making API calls with and also has access to the Google Ads account? If not, please reply back w

Re: Error while running GetCampaigns.php file

2019-02-19 Thread virender . sbinovations
Hi Dhanya, I am also getting the same error 401 Unauthorized response. I have verified credentials using CURL and it is working fine. I am getting response "{ "access_token": "ya29.Gly0BmIVqCgwub4x8pFcHTIlb1Wqair7788SliGRYvLWZVv7E5Zab3TRm8gXSab4bM8h5cvp-yTj8aBOKieh-lbolzo6bPeDT_nJ3nPf08cB7t1h98

Re: Error while running GetCampaigns.php file

2018-06-06 Thread 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Szusi, Could you confirm that the clientId field in your adsapi_php.ini is the same as the one in your project within Google API Console Credentials page

Re: Error while running GetCampaigns.php file

2018-06-06 Thread szusi
Thanks for the suggestion, unfortunately, after running the curl request I receive: "error": "invalid_client", "error_description": "The OAuth client was not found." Which is odd because I was able to use GenerateRefreshToken.php using the same credentials. What is the next step? On Wednes

Re: Error while running GetCampaigns.php file

2018-06-06 Thread 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Szusi, To verify that your credentials are correct, you can try the CURL request provided below and see if you are able to generate the access tokens. If the credentials are correct, you should get an access token for the below request. curl https://www.googleapis.com/oauth2/v4/token \ -d r