Google Apps Script API
    Preparing search index...

    function getData(request: GoogleAppsScript.Data_Studio.Request)

    See https://developers.google.com/datastudio/connector/reference#getdata

    interface Request<T> {
        configParams: T;
        dateRange: GoogleAppsScript.Data_Studio.DateRange;
        dimensionsFilters: DimensionsFilters[][];
        fields: { name: string }[];
        scriptParams: ScriptParams;
    }

    Type Parameters

    • T
    Index

    Properties

    configParams: T

    An object containing the user provided values for the config parameters defined by the connector.

    By default, the date range provided will be the last 28 days excluding today. If a user applies a date range filter for a report, then the date range provided will reflect the user selection. When sampleExtraction is set to true, the date two days earlier than today is given as both the start and end date.

    dimensionsFilters: DimensionsFilters[][]

    A nested array of the user selected filters. The innermost arrays should be ORed together, the outermost arrays should be ANDed together.

    fields: { name: string }[]

    The names of the requested fields.

    scriptParams: ScriptParams

    An object containing information relevant to connector execution.