Google Apps Script API
    Preparing search index...

    A configuration object for a native BigQuery connector. Return this object from getData() for Data Studio to query BigQuery for the connector.

    var cc = DataStudioApp.createCommunityConnector();
    var types = cc.BigQueryParameterType;
    
    var bqConfig = cc.newBigQueryConfig()
      .setBillingProjectId('billingProjectId')
      .setQuery('queryString')
      .setUseStandardSql(true)
      .setAccessToken('accessToken')
      .addQueryParameter('dob', types.STRING, '01011990')
      .build();
    
    interface BigQueryConfig {
        addQueryParameter(
            name: string,
            type: BigQueryParameterType,
            value: string,
        ): BigQueryConfig;
        build(): Config;
        printJson(): string;
        setAccessToken(accessToken: string): BigQueryConfig;
        setBillingProjectId(billingProjectId: string): BigQueryConfig;
        setQuery(query: string): BigQueryConfig;
        setUseStandardSql(useStandardSql: boolean): BigQueryConfig;
    }
    Index

    Methods