Google.Api.Ads.AdWords.Examples.CSharp.v201306.GetAccountChanges.GetFormattedList C# (CSharp) Method

GetFormattedList() private method

Formats a list of ids as a comma separated string.
private GetFormattedList ( long ids ) : string
ids long The list of ids.
return string
        private string GetFormattedList(long[] ids)
        {
            StringBuilder builder = new StringBuilder();
              if (ids != null) {
            foreach (long id in ids) {
              builder.AppendFormat("{0}, ", id);
            }
              }
              return "[" + builder.ToString().TrimEnd(',', ' ') + "]";
        }