Not able to download non public file from Google drive using Linux shell

31 views
Skip to first unread message

Anil Panda

unread,
Nov 5, 2022, 12:44:31 AM11/5/22
to Google Ads API and AdWords API Forum
Hello Team,

I have generated the below and previously I was able to download the file from Google drive using the below method.

Suddenly from yesterday it stopped working showing the output as Not Found.

I am trying to download files from Google drive to Linux server using a shell script. I do not want to make the file public for security reasons.  want to exchange the necessary keys while downloading.

Kindly help me.

client_id
client_secret
device_code
refresh_token

auth_key generated from above.

curl -H "Authorization: Bearer $auth_key" "https://www.googleapis.com/drive/v3/files/$id?alt=media" -o "$file"

Google Ads API Forum Advisor

unread,
Nov 7, 2022, 1:50:33 AM11/7/22
to anilpa...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching us out. I am Sherwin from Google Ads API support team. I hope that you are doing well today.

Moving forward to your concern, it seems like your concern is not related to Google Ads API and it is related to Google Drive. With this, what we can do is to advise you to reach out to the Google Drive support team with regard to this matter.

Kind regards,
Google Logo
Sherwin Vincent
Google Ads API Team
 


ref:_00D1U1174p._5004Q2g0Udp:ref

Anil Panda

unread,
Nov 7, 2022, 2:29:35 AM11/7/22
to Google Ads API and AdWords API Forum
Thank you for the guidance !
Reply all
Reply to author
Forward
0 new messages