Class CommunityConnector

CommunityConnector

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ülkTürAçıklama
AggregationTypeAggregationTypeAggregationType numaralandırması.
AuthTypeAuthTypeAuthType numaralandırması.
BigQueryParameterTypeBigQueryParameterTypeBigQueryParameterType numaralandırması.
FieldTypeFieldTypeFieldType numaralandırması.

Yöntemler

YöntemDönüş türüKısa açıklama
getConfig()ConfigConfig nesnesini döndürür.
getFields()FieldsFields nesnesini 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()

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

Return

Config: Config nesnesi.


getFields()

Fields nesnesini 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. 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.


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.