AI-generated Key Takeaways
-
The
CommunityConnector
class enables scripts to access builders and utilities for developing Community Connectors for Data Studio. -
It provides access to
Fields
,FieldType
, andAggregationType
for constructingField
objects within your connector. -
CommunityConnector
offers methods to manage configurations, define data schemas, handle authentication, and create response objects for various connector functions. -
It also allows the creation of user and debug errors for better error handling within your connector.
-
Developers can utilize methods like
getConfig()
,getFields()
, and response builders such asnewGetDataResponse()
to interact with and control the connector's behavior.
CommunityFields
object and the Field
and Aggregation
enums so they can be used in the
construction of Field
s.
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 Aggregation enumeration. |
Auth | Auth | The Auth enumeration. |
Big | Big | The Big enumeration. |
Field | Field | The Field enumeration. |
Methods
Method | Return type | Brief description |
---|---|---|
get | Config | Returns a Config object. |
get | Fields | Returns a Fields object. |
new | Get | Returns a new Get object. |
new | Big | Returns a new Big object. |
new | Debug | Returns a new Debug object. |
new | Get | Returns a new Get object. |
new | Get | Returns a new Get object. |
new | Set | Returns a new Set object. |
new | User | Returns a new User object. |
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.