Hello Sai, 

I'm following the exact thing, I'm generating the access_tokens using a 
refresh token if they expire. I used the same code to Integrate Google 
Analytics, Google Search, YouTube Reporting. It worked fine with all the 
APIs, only with Google Ads API I'm facing this issue. Is there any Google 
Web Tool, to test the Google Ads API just the Google Analytics Tool - 
https://ga-dev-tools.appspot.com/query-explorer/






On Wednesday, 8 May 2019 21:06:26 UTC+5:30, googleadsapi-forumadvisor wrote:
>
> Hello Aniruth,
>
> Usually, the access token has certain time limit after that time it will 
> be invalidated and you have to generate another access token to work with. 
> I faced the similar error when I pass the expired access token to the API 
> call.
>
> If you have a refresh token with you, you can generate access token using 
> that refreshtoken whenever the access token is expired(If you are using our 
> client libraries they will manages this functionality internally). To 
> generate access token from refresh token you can use the below sample CURL 
> operation. If don't have a refresh token you can create new set of 
> credentials by following this guide 
> <https://developers.google.com/google-ads/api/docs/oauth/playground>.
>
> Sample Curl operation to generate access token from refresh token:
>
> curl --data ""grant_type=refresh_token""      
>        --data ""refresh_token=*REFRESH_TOKEN_HERE*""      
>        --data ""client_id=*CLIENT_ID_HERE*""      
>        --data ""client_secret=*CLIENT_SECRET_HERE*""      
>        https://www.googleapis.com/oauth2/v4/token
>
> Regards,
> Sai Teja, Google Ads API Team
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
>     https://ads-developers.googleblog.com/search/label/google_ads_api
>     https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> <https://support.google.com/google-ads/contact/survey_transactional?caseid=5-6040000026070&hl=en&ctx=1>
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
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/a74a2dfe-f264-4056-b654-37166bea9e1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • develop... anirudh . maddy
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
    • Re... anirudh maddy
    • Re... anirudh maddy
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
        • ... anirudh maddy
    • Re... anirudh maddy
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to