AdsApp.​ReportColumnHeader

Represents a column header of a report.

Methods:

MemberTypeDescription
getBulkUploadColumnName String Returns the name of the column header to use in bulk uploads.
getReportColumnName String Returns the name of the column header as used in report queries.

getBulkUploadColumnName()

Returns the name of the column header to use in bulk uploads.

These names are the columns as they would appear in a report download from the Google Ads UI, and as recognized in bulk uploads. For a full list of display names, and the AWQL column names they correspond to, please see the Name and Display Name columns in all types of reports.

For instance, in a Keywords Performance Report, selecting AdGroupName will result in a report column header with a report column name of AdGroupName and a bulk upload column name of Ad group.

NOTE: If you're generating a CsvUpload with Report, make sure to use this method in creation. Typical usage:

   var upload = AdsApp.bulkUploads().newCsvUpload([
       report.getColumnHeader("AdGroupId").getBulkUploadColumnName(),
       report.getColumnHeader("AdGroupName").getBulkUploadColumnName()
       ...]);

This method will return an error if the query uses GAQL rather than AWQL.

Return values:

TypeDescription
String The name of the column header to use in bulk uploads.

getReportColumnName()

Returns the name of the column header as used in report queries.

These names are the selectable columns in the query of AdsApp.report(String, Object). For a full list of report column names, please see the Name column in all types of reports.

Return values:

TypeDescription
String The name of the column header as used in report queries.