简体   繁体   中英

Need help on Analytics API - Web Property Name and Account Name (in .Net)

I am downloading Analytics data using the Google Analytics Dot.Net libraries. I am able to get the report data using the AnalyticsService object. It returns Google.Apis.Analytics.v3.Data.GaData. My query consists of dimensions, metrics and profileid (View Id).

I need to know the Account Name and Web Property name, unfortunately returned GaData has webPropertyId and accountid, but not the names. How do I get the name?

I tried -

GaData response = analyticsservice.Execute();
var webproperty = service.Management.Webproperties.Get(response.ProfileInfo.AccountId,response.ProfileInfo.WebPropertyId);

but this returned webproperty doesn't have name.

我不确定.net,但是对于其他库,您可以使用Management API来检索帐户名等。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM