本文整理汇总了C#中Google.Api.Ads.AdWords.Lib.AdWordsUser.AddCallDetails方法的典型用法代码示例。如果您正苦于以下问题:C# AdWordsUser.AddCallDetails方法的具体用法?C# AdWordsUser.AddCallDetails怎么用?C# AdWordsUser.AddCallDetails使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Google.Api.Ads.AdWords.Lib.AdWordsUser
的用法示例。
在下文中一共展示了AdWordsUser.AddCallDetails方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RecordApiOperationCount
/// <summary>
/// Records API operation count for a user.
/// </summary>
/// <param name="user">The AdWords user who made the call.</param>
/// <param name="service">The AdWords API service that was called.</param>
/// <param name="methodName">The name of the method that was called.</param>
/// <param name="operationCount">The number of API operations for the
/// current call.</param>
private static void RecordApiOperationCount(AdWordsUser user, AdsClient service,
string methodName, int operationCount) {
if (user != null) {
ApiCallEntry entry = new ApiCallEntry();
entry.Service = service;
entry.Method = methodName;
entry.OperationCount = operationCount;
user.AddCallDetails(entry);
}
}