Class CommunityConnector

CommunityConnector

CommunityConnector를 사용하면 스크립트에서 데이터 스튜디오용 커뮤니티 커넥터 개발에 도움이 되는 빌더 및 유틸리티에 액세스할 수 있습니다. 이 클래스를 사용하여 Fields 객체와 FieldType 및 AggregationType 열거형에 대한 참조를 가져와 구성하는 데 사용할 수 있습니다.Field

const cc = DataStudioApp.createCommunityConnector();

const fields = cc.getFields();

fields.newMetric()
    .setAggregation(cc.AggregationType.AVG)
    .setType(cc.FieldType.CURRENCY_USD);

속성

속성유형설명
AggregationTypeAggregationTypeAggregationType 열거형입니다.
AuthTypeAuthTypeAuthType 열거형입니다.
BigQueryParameterTypeBigQueryParameterTypeBigQueryParameterType 열거형입니다.
FieldTypeFieldTypeFieldType 열거형입니다.

메서드

메서드반환 유형간략한 설명
getConfig()ConfigConfig 객체를 반환합니다.
getFields()FieldsFields 객체를 반환합니다.
newAuthTypeResponse()GetAuthTypeResponse새 GetAuthTypeResponse 객체를 반환합니다.
newBigQueryConfig()BigQueryConfig새 BigQueryConfig 객체를 반환합니다.
newDebugError()DebugError새 DebugError 객체를 반환합니다.
newGetDataResponse()GetDataResponse새 GetDataResponse 객체를 반환합니다.
newGetSchemaResponse()GetSchemaResponse새 GetSchemaResponse 객체를 반환합니다.
newSetCredentialsResponse()SetCredentialsResponse새 SetCredentialsResponse 객체를 반환합니다.
newUserError()UserError새 UserError 객체를 반환합니다.

자세한 문서

getConfig()

Config 객체를 반환합니다. 이 객체를 사용하여 구성 항목을 추가합니다.

리턴

Config — Config 객체입니다.


getFields()

Fields 객체를 반환합니다. 이 객체를 사용하여 측정항목 및 측정기준 Field를 추가합니다.

리턴

Fields — Fields 객체입니다.


newAuthTypeResponse()

새 GetAuthTypeResponse 객체를 반환합니다. 이 객체를 사용하여 스크립트 프로젝트에서 구현하는 getAuthType() 함수의 응답을 만듭니다.

리턴

GetAuthTypeResponse — 새 GetAuthTypeResponse 객체입니다.


newBigQueryConfig()

새 BigQueryConfig 객체를 반환합니다. 이 객체를 사용하여 스크립트 프로젝트에서 구현하는 getData() 함수의 응답을 만듭니다.

리턴

BigQueryConfig — 새 BigQueryConfig 객체입니다.


newDebugError()

새 DebugError 객체를 반환합니다. 이 객체를 사용하여 디버그 오류를 만듭니다.

리턴

DebugError — 새 DebugError 객체입니다.


newGetDataResponse()

새 GetDataResponse 객체를 반환합니다. 이 객체를 사용하여 스크립트 프로젝트에서 구현하는 getData() 함수의 응답을 만듭니다.

리턴

GetDataResponse — 새 GetDataResponse 객체입니다.


newGetSchemaResponse()

새 GetSchemaResponse 객체를 반환합니다. 이 객체를 사용하여 스크립트 프로젝트에서 구현하는 getSchema() 함수의 응답을 만듭니다.

리턴

GetSchemaResponse — 새 GetSchemaResponse 객체입니다.


newSetCredentialsResponse()

새 SetCredentialsResponse 객체를 반환합니다. 이 객체를 사용하여 스크립트 프로젝트에서 구현하는 setCredentials() 함수의 응답을 만듭니다.

리턴

SetCredentialsResponse — 새 SetCredentialsResponse 객체입니다.


newUserError()

새 UserError 객체를 반환합니다. 이 객체를 사용하여 사용자 오류를 만듭니다.

리턴

UserError — 새 UserError 객체입니다.