Class CommunityConnector

CommunityConnector

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

ÖzellikTürAçıklama
AggregationTypeAggregationTypeAggregationType sıralaması.
AuthTypeAuthTypeAuthType sıralaması.
BigQueryParameterTypeBigQueryParameterTypeBigQueryParameterType sıralaması.
FieldTypeFieldTypeFieldType sıralaması.

Yöntemler

YöntemDönüş türüKısa açıklama
getConfig()ConfigBir Config nesnesi döndürür.
getFields()FieldsBir Fields nesnesi döndürür.
newAuthTypeResponse()GetAuthTypeResponseYeni bir GetAuthTypeResponse nesnesi döndürür.
newBigQueryConfig()BigQueryConfigYeni bir BigQueryConfig nesnesi döndürür.
newDebugError()DebugErrorYeni bir DebugError nesnesi döndürür.
newGetDataResponse()GetDataResponseYeni bir GetDataResponse nesnesi döndürür.
newGetSchemaResponse()GetSchemaResponseYeni bir GetSchemaResponse nesnesi döndürür.
newSetCredentialsResponse()SetCredentialsResponseYeni bir SetCredentialsResponse nesnesi döndürür.
newUserError()UserErrorYeni bir UserError nesnesi döndürür.

Ayrıntılı belgeler

getConfig()

Bir Config nesnesi döndürür. Yapılandırma girişleri eklemek için bu nesneyi kullanın.

Return

Config: Config nesnesi.


getFields()

Bir Fields nesnesi döndürür. Metrik ve boyut Field eklemek için bu nesneyi kullanın.

Return

Fields: Fields nesnesi.


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.


newUserError()

Yeni bir UserError nesnesi döndürür. Kullanıcı hataları oluşturmak için bu nesneyi kullanın.

Return

UserError: Yeni bir UserError nesnesi.