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 オブジェクト。