fetch

24 views
Skip to first unread message

Genrihs Olehno

unread,
Oct 12, 2018, 2:09:00 AM10/12/18
to AdWords Scripts Forum
Hi

This is example from google

var url = "www.example.com/content.csv";
 
var blob = UrlFetchApp.fetch(url).getAs(MimeType.CSV);
 
var upload = AdWordsApp.bulkUploads().newFileUpload(blob);

This is my code

var url = "https://ysu.su/files/google/key.csv";
var blob = UrlFetchApp.fetch(url).getAs(MimeType.CSV);

But on 2 line error

Converting from application/octet-stream to text/csv is not supported.

Why?

Hiroyuki Miyauchi (AdWords Scripts Team)

unread,
Oct 12, 2018, 5:16:16 AM10/12/18
to AdWords Scripts Forum
Hello,

Could you please provide your CID, script name via Reply privately to author so I can further investigate?

Regards,
Hiroyuki
AdWords Scripts Team

Genrihs Olehno

unread,
Oct 15, 2018, 3:43:56 AM10/15/18
to AdWords Scripts Forum
?

пятница, 12 октября 2018 г., 12:16:16 UTC+3 пользователь Hiroyuki Miyauchi (AdWords Scripts Team) написал:

Hiroyuki Miyauchi (AdWords Scripts Team)

unread,
Oct 15, 2018, 10:18:33 PM10/15/18
to AdWords Scripts Forum
Hello Genrihs,

I have responded to your email address privately. Could you please check the email and please let me know how it goes after trying the suggestion I sent.

Regards,
Hiroyuki
AdWords Scripts Team

Reply all
Reply to author
Forward
0 new messages