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.