CommunityConnector, komut dosyalarının Data Studio için topluluk bağlayıcılarının geliştirilmesine yardımcı olacak oluşturuculara ve yardımcı programlara erişmesini sağlar. Fields nesnesine ve FieldType ile AggregationType numaralandırılmış değerlerine referans almak için bu sınıfı kullanın. Böylece, Field oluşturulurken bu değerler kullanılabilir.
const cc = DataStudioApp.createCommunityConnector(); const fields = cc.getFields(); fields.newMetric() .setAggregation(cc.AggregationType.AVG) .setType(cc.FieldType.CURRENCY_USD);
Özellikler
| Mülk | Tür | Açıklama |
|---|---|---|
Aggregation | Aggregation | Aggregation numaralandırması. |
Auth | Auth | Auth numaralandırması. |
Big | Big | Big numaralandırması. |
Field | Field | Field numaralandırması. |
Yöntemler
| Yöntem | Dönüş türü | Kısa açıklama |
|---|---|---|
get | Config | Config nesnesini döndürür. |
get | Fields | Fields nesnesini döndürür. |
new | Get | Yeni bir Get nesnesi döndürür. |
new | Big | Yeni bir Big nesnesi döndürür. |
new | Debug | Yeni bir Debug nesnesi döndürür. |
new | Get | Yeni bir Get nesnesi döndürür. |
new | Get | Yeni bir Get nesnesi döndürür. |
new | Set | Yeni bir Set nesnesi döndürür. |
new | User | Yeni bir User nesnesi döndürür. |
Ayrıntılı belgeler
getConfig()
getFields()
newAuthTypeResponse()
Yeni bir GetAuthTypeResponse nesnesi döndürür. Bu nesneyi, komut dosyası projenizde uyguladığınız getAuthType() işlevi için yanıt oluşturmak üzere kullanın.
Return
GetAuthTypeResponse: Yeni bir GetAuthTypeResponse nesnesi.
newBigQueryConfig()
Yeni bir BigQueryConfig nesnesi döndürür. Bu nesneyi, komut dosyası projenizde uyguladığınız getData() işlevi için yanıt oluşturmak üzere kullanın.
Return
BigQueryConfig: Yeni bir BigQueryConfig nesnesi.
newDebugError()
Yeni bir DebugError nesnesi döndürür. Hata ayıklama hataları oluşturmak için bu nesneyi kullanın.
Return
DebugError: Yeni bir DebugError nesnesi.
newGetDataResponse()
Yeni bir GetDataResponse nesnesi döndürür. Bu nesneyi, komut dosyası projenizde uyguladığınız getData() işlevi için yanıt oluşturmak üzere kullanın.
Return
GetDataResponse: Yeni bir GetDataResponse nesnesi.
newGetSchemaResponse()
Yeni bir GetSchemaResponse nesnesi döndürür. Bu nesneyi, komut dosyası projenizde uyguladığınız getSchema() işlevi için yanıt oluşturmak üzere kullanın.
Return
GetSchemaResponse: Yeni bir GetSchemaResponse nesnesi.
newSetCredentialsResponse()
Yeni bir SetCredentialsResponse nesnesi döndürür. Bu nesneyi, komut dosyası projenizde uyguladığınız setCredentials() işlevi için yanıt oluşturmak üzere kullanın.
Return
SetCredentialsResponse: Yeni bir SetCredentialsResponse nesnesi.