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.
[null,null,["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eRepresents a Bulk Upload of an existing file from sources like Blob, Google Sheet, or Drive File.\u003c/p\u003e\n"],["\u003cp\u003eOffers methods to apply changes directly or preview them before execution.\u003c/p\u003e\n"],["\u003cp\u003eCan be used for Campaign Management entity changes (default) or reporting offline conversions.\u003c/p\u003e\n"],["\u003cp\u003eAllows setting a custom file name for the uploaded file.\u003c/p\u003e\n"]]],[],null,["# AdsApp.FileUpload\n\nRepresents a Bulk Upload of an already-existing file, loaded from Blob, Google Sheet or Drive File.\n\n### Methods:\n\n| Member | Type | Description |\n|---------------------------------------------------|----------------------------------------------------------------------------------|----------------------------------------------------------------------------|\n| [apply()](#apply) | `void` | Uploads the file and applies the changes. |\n| [forCampaignManagement()](#forCampaignManagement) | [AdsApp.FileUpload](/google-ads/scripts/docs/reference/adsapp/adsapp_fileupload) | Specifies that this upload is used for Campaign Management entity changes. |\n| [forOfflineConversions()](#forOfflineConversions) | [AdsApp.FileUpload](/google-ads/scripts/docs/reference/adsapp/adsapp_fileupload) | Specifies that this upload is used for reporting offline conversions. |\n| [preview()](#preview) | `void` | Uploads the file and previews the changes. |\n| [setFileName(fileName)](#setFileName_fileName) | [AdsApp.FileUpload](/google-ads/scripts/docs/reference/adsapp/adsapp_fileupload) | Sets the file name of the uploaded file. |\n\n`apply()`\n---------\n\nUploads the file and applies the changes.\n\n\u003cbr /\u003e\n\n| When previewing a script, `apply()` previews the Bulk Upload instead of applying it.\n\nReturns nothing.\n\n`forCampaignManagement()`\n-------------------------\n\nSpecifies that this upload is used for Campaign Management entity changes.\n\nThis is the default option, so this method doesn't need to be called\nexcept to override a previous call to [FileUpload.forOfflineConversions()](/google-ads/scripts/docs/reference/adsapp/adsapp_fileupload#forOfflineConversions).\n\n### Return values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------|-------------------------------------------------------------------|\n| [AdsApp.FileUpload](/google-ads/scripts/docs/reference/adsapp/adsapp_fileupload) | The same upload specified to change Campaign Management entities. |\n\n`forOfflineConversions()`\n-------------------------\n\nSpecifies that this upload is used for reporting offline conversions.\n\nBy default, uploads are used for Campaign Management entity changes, so\nit's necessary to call [FileUpload.forOfflineConversions()](/google-ads/scripts/docs/reference/adsapp/adsapp_fileupload#forOfflineConversions)\nto make offline conversion uploads work correctly.\n\n### Return values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------|----------------------------------------------------------|\n| [AdsApp.FileUpload](/google-ads/scripts/docs/reference/adsapp/adsapp_fileupload) | The same upload specified to report offline conversions. |\n\n`preview()`\n-----------\n\nUploads the file and previews the changes.\n\nReturns nothing.\n\n`setFileName(fileName)`\n-----------------------\n\nSets the file name of the uploaded file.\n\n### Arguments:\n\n| Name | Type | Description |\n|----------|----------|-------------------------------------|\n| fileName | `String` | The file name of the uploaded file. |\n\n### Return values:\n\n| Type | Description |\n|----------------------------------------------------------------------------------|---------------------------------------------|\n| [AdsApp.FileUpload](/google-ads/scripts/docs/reference/adsapp/adsapp_fileupload) | The same upload with the file name applied. |"]]