CommunityConnector를 사용하면 스크립트에서 데이터 스튜디오용 커뮤니티 커넥터 개발에 도움이 되는 빌더 및 유틸리티에 액세스할 수 있습니다. 이 클래스를 사용하여 Fields
객체와 FieldType 및 AggregationType 열거형에 대한 참조를 가져와
구성하는 데 사용할 수 있습니다.Field
const cc = DataStudioApp.createCommunityConnector(); const fields = cc.getFields(); fields.newMetric() .setAggregation(cc.AggregationType.AVG) .setType(cc.FieldType.CURRENCY_USD);
속성
| 속성 | 유형 | 설명 |
|---|---|---|
Aggregation | Aggregation | Aggregation 열거형입니다. |
Auth | Auth | Auth 열거형입니다. |
Big | Big | Big 열거형입니다. |
Field | Field | Field 열거형입니다. |
메서드
| 메서드 | 반환 유형 | 간략한 설명 |
|---|---|---|
get | Config | Config 객체를 반환합니다. |
get | Fields | Fields 객체를 반환합니다. |
new | Get | 새 Get 객체를 반환합니다. |
new | Big | 새 Big 객체를 반환합니다. |
new | Debug | 새 Debug 객체를 반환합니다. |
new | Get | 새 Get 객체를 반환합니다. |
new | Get | 새 Get 객체를 반환합니다. |
new | Set | 새 Set 객체를 반환합니다. |
new | User | 새 User 객체를 반환합니다. |
자세한 문서
newAuthTypeResponse()
새 GetAuthTypeResponse 객체를 반환합니다. 이 객체를 사용하여 스크립트 프로젝트에서 구현하는 getAuthType() 함수의 응답을 만듭니다.
리턴
GetAuthTypeResponse — 새 GetAuthTypeResponse 객체입니다.
newBigQueryConfig()
새 BigQueryConfig 객체를 반환합니다. 이 객체를 사용하여 스크립트 프로젝트에서 구현하는 getData() 함수의 응답을 만듭니다.
리턴
BigQueryConfig — 새 BigQueryConfig 객체입니다.
newDebugError()
newGetDataResponse()
새 GetDataResponse 객체를 반환합니다. 이 객체를 사용하여 스크립트 프로젝트에서 구현하는 getData() 함수의 응답을 만듭니다.
리턴
GetDataResponse — 새 GetDataResponse 객체입니다.
newGetSchemaResponse()
새 GetSchemaResponse 객체를 반환합니다. 이 객체를 사용하여 스크립트 프로젝트에서 구현하는 getSchema() 함수의 응답을 만듭니다.
리턴
GetSchemaResponse — 새 GetSchemaResponse 객체입니다.
newSetCredentialsResponse()
새 SetCredentialsResponse 객체를 반환합니다. 이 객체를 사용하여 스크립트 프로젝트에서 구현하는 setCredentials() 함수의 응답을 만듭니다.
리턴
SetCredentialsResponse — 새 SetCredentialsResponse 객체입니다.