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 Wednesday, June 6, 2018 at 8:43:16 AM UTC-6, Dhanya Sundararaju (AdWords 
API Team) wrote:
>
> 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 refresh_token=your-refresh_token \
> -d client_id=your-client-id \
> -d client_secret=your-client-secret \
> -d grant_type=refresh_token
>
> If your credentials are incorrect and still facing issues then please 
> follow below steps:
>
>    1. Open a new incognito window. 
>    2. Generate the client id and secret 
>    
> <https://developers.google.com/adwords/api/docs/guides/first-api-call#set_up_oauth2_authentication>
>  using 
>    a valid AdWords user login. 
>    3. Generate the refresh token 
>    
> <https://github.com/googleads/googleads-php-lib/wiki/API-access-using-own-credentials-(installed-application-flow)#step-2---setting-up-the-client-library>
>  using 
>    the GetRefreshToken.php 
>    
> <https://github.com/googleads/googleads-php-lib/blob/master/examples/Auth/GetRefreshToken.php>
>    . 
>    4. Use those credentials to run GetCampaigns.php 
>    
> <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201802/BasicOperations/GetCampaigns.php>
>
> Let me know if you still get errors.
>
> Regards,
> Dhanya, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6074164b-4e05-4d0e-959d-26c09a448430%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... szusi
    • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... szusi
        • ... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to