AdsApp.​FileUpload

Represents a Bulk Upload of an already-existing file, loaded from Blob, Google Sheet or Drive File.

Methods:

Member Type Description
void Uploads the file and applies the changes.
AdsApp.FileUpload Specifies that this upload is used for Campaign Management entity changes.
AdsApp.FileUpload Specifies that this upload is used for reporting offline conversions.
void Uploads the file and previews the changes.
AdsApp.FileUpload Sets the file name of the uploaded file.

apply()

Uploads the file and applies the changes.

Returns nothing.

forCampaignManagement()

Specifies that this upload is used for Campaign Management entity changes.

This is the default option, so this method doesn't need to be called except to override a previous call to FileUpload.forOfflineConversions() .

Return values:

Type Description
AdsApp.FileUpload The same upload specified to change Campaign Management entities.

forOfflineConversions()

Specifies that this upload is used for reporting offline conversions.

By default, uploads are used for Campaign Management entity changes, so it's necessary to call FileUpload.forOfflineConversions() to make offline conversion uploads work correctly.

Return values:

Type Description
AdsApp.FileUpload The same upload specified to report offline conversions.

preview()

Uploads the file and previews the changes.

Returns nothing.

setFileName(fileName)

Sets the file name of the uploaded file.

Arguments:

Name Type Description
fileName
String The file name of the uploaded file.

Return values:

Type Description
AdsApp.FileUpload The same upload with the file name applied.
Create a Mobile Website
View Site in Mobile | Classic
Share by: