CommunityConnector, Data Studio için Topluluk Bağlayıcıları'nın geliştirilmesine yardımcı olmak amacıyla komut dosyalarının oluşturuculara ve yardımcı programlara erişmesini sağlar. Field
nesneleri oluştururken kullanılabilmesi amacıyla Fields
nesnesine ve FieldType
ile AggregationType
sıralamalarına referans almak için bu sınıfı kullanın.
var cc = DataStudioApp.createCommunityConnector(); var fieldType = cc.FieldType; var aggregationType = cc.AggregationType; var fields = cc.getFields(); fields.newMetric() .setAggregation(aggregationType.AVG) .setType(fieldType.CURRENCY_USD);
Özellikler
Özellik | Tür | Açıklama |
---|---|---|
AggregationType | AggregationType | AggregationType sıralaması. |
AuthType | AuthType | AuthType sıralaması. |
BigQueryParameterType | BigQueryParameterType | BigQueryParameterType sıralaması. |
FieldType | FieldType | FieldType sıralaması. |
Yöntemler
Yöntem | Dönüş türü | Kısa açıklama |
---|---|---|
getConfig() | Config | Bir Config nesnesi döndürür. |
getFields() | Fields | Bir Fields nesnesi döndürür. |
newAuthTypeResponse() | GetAuthTypeResponse | Yeni bir GetAuthTypeResponse nesnesi döndürür. |
newBigQueryConfig() | BigQueryConfig | Yeni bir BigQueryConfig nesnesi döndürür. |
newDebugError() | DebugError | Yeni bir DebugError nesnesi döndürür. |
newGetDataResponse() | GetDataResponse | Yeni bir GetDataResponse nesnesi döndürür. |
newGetSchemaResponse() | GetSchemaResponse | Yeni bir GetSchemaResponse nesnesi döndürür. |
newSetCredentialsResponse() | SetCredentialsResponse | Yeni bir SetCredentialsResponse nesnesi döndürür. |
newUserError() | UserError | Yeni bir UserError nesnesi döndürür. |
Ayrıntılı belgeler
getConfig()
getFields()
newAuthTypeResponse()
Yeni bir GetAuthTypeResponse
nesnesi döndürür. Komut dosyası projenize uyguladığınız getAuthType()
işlevine yönelik bir yanıt oluşturmak için bu nesneyi kullanın.
Return
GetAuthTypeResponse
: Yeni bir GetAuthTypeResponse
nesnesi.
newBigQueryConfig()
Yeni bir BigQueryConfig
nesnesi döndürür. Komut dosyası projenize uyguladığınız getData()
işlevine yönelik bir yanıt oluşturmak için bu nesneyi 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. Komut dosyası projenize uyguladığınız getData()
işlevine yönelik bir yanıt oluşturmak için bu nesneyi kullanın.
Return
GetDataResponse
: Yeni bir GetDataResponse
nesnesi.
newGetSchemaResponse()
Yeni bir GetSchemaResponse
nesnesi döndürür. Komut dosyası projenize uyguladığınız getSchema()
işlevine yönelik bir yanıt oluşturmak için bu nesneyi kullanın.
Return
GetSchemaResponse
: Yeni bir GetSchemaResponse
nesnesi.
newSetCredentialsResponse()
Yeni bir SetCredentialsResponse
nesnesi döndürür. Komut dosyası projenize uyguladığınız setCredentials()
işlevine yanıt oluşturmak için bu nesneyi kullanın.
Return
SetCredentialsResponse
: Yeni bir SetCredentialsResponse
nesnesi.