AI-generated Key Takeaways
- 
          The CommunityConnectorclass provides builders and utilities for developing Community Connectors for Data Studio.
- 
          You can get references to Fields,FieldType, andAggregationTypethrough theCommunityConnectorobject.
- 
          The CommunityConnectorclass has properties likeAggregationType,AuthType,BigQueryParameterType, andFieldType.
- 
          Useful methods like getConfig(),getFields(),newGetDataResponse(), andnewGetSchemaResponse()are available for connector development.
CommunityFields
object and the Field and Aggregation enums so they can be used in the
construction of Fields.
const cc = DataStudioApp.createCommunityConnector(); const fields = cc.getFields(); fields.newMetric() .setAggregation(cc.AggregationType.AVG) .setType(cc.FieldType.CURRENCY_USD);
Properties
| Property | Type | Description | 
|---|---|---|
| Aggregation | Aggregation | The Aggregationenumeration. | 
| Auth | Auth | The Authenumeration. | 
| Big | Big | The Bigenumeration. | 
| Field | Field | The Fieldenumeration. | 
Methods
| Method | Return type | Brief description | 
|---|---|---|
| get | Config | Returns a Configobject. | 
| get | Fields | Returns a Fieldsobject. | 
| new | Get | Returns a new Getobject. | 
| new | Big | Returns a new Bigobject. | 
| new | Debug | Returns a new Debugobject. | 
| new | Get | Returns a new Getobject. | 
| new | Get | Returns a new Getobject. | 
| new | Set | Returns a new Setobject. | 
| new | User | Returns a new Userobject. | 
Detailed documentation
getConfig() 
getFields() 
newAuthTypeResponse()   
Returns a new Get object. Use this object to create a response for the
get function you implement in your script project.
Return
Get — A new Get object.
newBigQueryConfig()   
Returns a new Big object. Use this object to create a response for the
get function you implement in your script project.
Return
Big — A new Big object.
newDebugError()  
Returns a new Debug object. Use this object to create debug errors.
Return
Debug — A new Debug object.
newGetDataResponse()   
Returns a new Get object. Use this object to create a response for the
get function you implement in your script project.
Return
Get — A new Get object.
newGetSchemaResponse()   
Returns a new Get object. Use this object to create a response for the
get function you implement in your script project.
Return
Get — A new Get object.
newSetCredentialsResponse()   
Returns a new Set object. Use this object to create a response for
the set function you implement in your script project.
Return
Set — A new Set object.