Class CommunityConnector Stay organized with collections Save and categorize content based on your preferences.
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.
CommunityFieldsobject and theField andAggregation enums so they can be used in theconstruction ofFields.
constcc=DataStudioApp.createCommunityConnector();constfields=cc.getFields();fields.newMetric().setAggregation(cc.AggregationType.AVG).setType(cc.FieldType.CURRENCY_USD);
Properties
| Property | Type | Description |
|---|---|---|
Aggregation | Aggregation | TheAggregation enumeration. |
Auth | Auth | TheAuth enumeration. |
Big | Big | TheBig enumeration. |
Field | Field | TheField enumeration. |
Methods
| Method | Return type | Brief description |
|---|---|---|
get | Config | Returns aConfig object. |
get | Fields | Returns aFields object. |
new | Get | Returns a newGet object. |
new | Big | Returns a newBig object. |
new | Debug | Returns a newDebug object. |
new | Get | Returns a newGet object. |
new | Get | Returns a newGet object. |
new | Set | Returns a newSet object. |
new | User | Returns a newUser object. |
Detailed documentation
getConfig()
getFields()
newAuthTypeResponse()
Returns a newGet object. Use this object to create a response for theget function you implement in your script project.
Return
Get — A newGet object.
newBigQueryConfig()
Returns a newBig object. Use this object to create a response for theget function you implement in your script project.
Return
Big — A newBig object.
newDebugError()
Returns a newDebug object. Use this object to create debug errors.
Return
Debug — A newDebug object.
newGetDataResponse()
Returns a newGet object. Use this object to create a response for theget function you implement in your script project.
Return
Get — A newGet object.
newGetSchemaResponse()
Returns a newGet object. Use this object to create a response for theget function you implement in your script project.
Return
Get — A newGet object.
newSetCredentialsResponse()
Returns a newSet object. Use this object to create a response fortheset function you implement in your script project.
Return
Set — A newSet object.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.