423,873 Members | 2,153 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,873 IT Pros & Developers. It's quick & easy.

UrlFetchApp In Bulk upload from remote server - adwords

P: 1
Hi,

I got this function from
https://developers.google.com/adwords/scripts/docs/examples/bulk-upload#bulk-upload-from-remote-server

function bulkUploadFromRemoteServer() {
// See https://developers.google.com/adwords/scripts/docs/features/bulk-upload
// for the list of supported bulk upload templates.
var dataUrl = 'INSERT_CSV_FILE_URL_HERE';

var blob = UrlFetchApp.fetch(dataUrl)
.getBlob()
.getAs(MimeType.CSV);

var upload = AdWordsApp.bulkUploads().newFileUpload(blob);
upload.forCampaignManagement();

// Use upload.apply() to make changes without previewing.
upload.preview();
}

I dont know how to use this.
How can I intialize UrlFetchApp ?
Ho to get SDK
when I try to run above script , it shows
"Uncaught ReferenceError: UrlFetchApp is not defined"
please help me

Rejani
Dec 8 '17 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.