[英]Need help on Analytics API - Web Property Name and Account Name (in .Net)
我正在使用Google Analytics(分析)Dot.Net庫下載Analytics(分析)數據。 我可以使用AnalyticsService對象獲取報告數據。 它返回Google.Apis.Analytics.v3.Data.GaData。 我的查詢由維度,指標和profileid(查看ID)組成。
我需要知道帳戶名稱和網絡媒體資源名稱,很遺憾返回的GaData具有webPropertyId和accountid,但沒有名稱。 我怎么得到名字?
我試過了 -
GaData response = analyticsservice.Execute();
var webproperty = service.Management.Webproperties.Get(response.ProfileInfo.AccountId,response.ProfileInfo.WebPropertyId);
但這返回的webproperty沒有名稱。
我不確定.net,但是對於其他庫,您可以使用Management API來檢索帳戶名等。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.