UNPKG

dfp-lib

Version:

This project hosts the Node.JS client library for the SOAP-based DFP API at Google.

58 lines (57 loc) 2.22 kB
"use strict"; const xmlElement_1 = require("../../common/soap/xmlElement"); class ReportQuery extends xmlElement_1.XMLElement { constructor(dimensions = null, adUnitView = null, columns = null, dimensionAttributes = null, customFieldIds = null, contentMetadataKeyHierarchyCustomTargetingKeyIds = null, startDate = null, endDate = null, dateRangeType = null, statement = null, useSalesLocalTimeZone = null, includeZeroSalesRows = null) { super(); this.dimensions = dimensions || []; this.adUnitView = adUnitView; this.columns = columns || []; this.dimensionAttributes = dimensionAttributes || []; this.customFieldIds = customFieldIds || []; this.contentMetadataKeyHierarchyCustomTargetingKeyIds = contentMetadataKeyHierarchyCustomTargetingKeyIds || []; this.startDate = startDate; this.endDate = endDate; this.dateRangeType = dateRangeType; this.statement = statement; this.useSalesLocalTimeZone = useSalesLocalTimeZone; this.includeZeroSalesRows = includeZeroSalesRows; } addDimensions(...args) { for (let i = 0, n = args.length; i < n; this.dimensions.push(args[i++])) { } return this; } addColumns(...args) { for (let i = 0, n = args.length; i < n; this.columns.push(args[i++])) { } return this; } addDimensionAttributes(...args) { for (let i = 0, n = args.length; i < n; this.dimensionAttributes.push(args[i++])) { } return this; } addCustomFieldIds(...args) { for (let i = 0, n = args.length; i < n; this.customFieldIds.push(args[i++])) { } return this; } setAdUnitView(adUnitView) { this.adUnitView = adUnitView; return this; } setDateRangeType(dateRangeType) { this.dateRangeType = dateRangeType; return this; } setStatement(statement) { this.statement = statement; return this; } setStartDate(startDate) { this.startDate = startDate; return this; } setEndDate(endDate) { this.endDate = endDate; return this; } } ReportQuery.XSI_TYPE = "ReportQuery"; exports.ReportQuery = ReportQuery;