古いバージョンの Google Analytics Management API を使用してアプリケーションを新しいバージョンに移植しています: https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtProfileGuide
プロファイルに使用されるカスタム変数の名前を取得するにはどうすればよいですか?
以前の API では、次のように書くことができました。
List<GACustomVar> result = new List<GACustomVar>();
AccountEntry entry = _FindEntryByProfileId(profileId);
if (entry != null)
{
foreach (CustomVariable variable in entry.CustomVariables)
{
result.Add(new GACustomVar()
{
Index = int.Parse(variable.Index),
Name = variable.Name
});
}
}
return result;
しかし、次のようなものはありません。
_service.Management.Accounts.List().Fetch().Items[0].