Google.GData.ContentForShopping.ContentForShoppingService.CreateProductIdentifier C# (CSharp) Method

CreateProductIdentifier() protected method

Creates a product identifier based on four attributes.
protected CreateProductIdentifier ( string channel, string language, string country, string productId ) : string
channel string The channel of the product. Usually online or local.
language string The language for the product.
country string The target country of the product.
productId string The unique identifier for the product in the given locale.
return string
        protected string CreateProductIdentifier(string channel, string language, string country, string productId)
        {
            StringBuilder result = new StringBuilder(channel, 256);
            result.Append(':');
            result.Append(language);
            result.Append(':');
            result.Append(country);
            result.Append(':');
            result.Append(productId);

            return result.ToString();
        }