/// <summary> /// Outputs the AppAdExtension. /// </summary> protected void OutputAppAdExtension(AppAdExtension extension) { if (extension != null) { OutputStatusMessage(string.Format("AppPlatform: {0}", extension.AppPlatform)); OutputStatusMessage(string.Format("AppStoreId: {0}", extension.AppStoreId)); OutputStatusMessage(string.Format("DestinationUrl: {0}", extension.DestinationUrl)); OutputStatusMessage(string.Format("DevicePreference: {0}", extension.DevicePreference)); OutputStatusMessage(string.Format("DisplayText: {0}", extension.DisplayText)); OutputStatusMessage("FinalMobileUrls: "); if (extension.FinalMobileUrls != null) { foreach (var finalMobileUrl in extension.FinalMobileUrls) { OutputStatusMessage(string.Format("\t{0}", finalMobileUrl)); } } OutputStatusMessage("FinalUrls: "); if (extension.FinalUrls != null) { foreach (var finalUrl in extension.FinalUrls) { OutputStatusMessage(string.Format("\t{0}", finalUrl)); } } OutputStatusMessage("ForwardCompatibilityMap: "); if (extension.ForwardCompatibilityMap != null) { foreach (var pair in extension.ForwardCompatibilityMap) { OutputStatusMessage(string.Format("Key: {0}", pair.Key)); OutputStatusMessage(string.Format("Value: {0}", pair.Value)); } } OutputStatusMessage(string.Format("Id: {0}", extension.Id)); OutputStatusMessage(string.Format("Status: {0}", extension.Status)); OutputStatusMessage(string.Format("TrackingUrlTemplate: {0}", extension.TrackingUrlTemplate)); OutputStatusMessage("UrlCustomParameters: "); if (extension.UrlCustomParameters != null && extension.UrlCustomParameters.Parameters != null) { foreach (var customParameter in extension.UrlCustomParameters.Parameters) { OutputStatusMessage(string.Format("\tKey: {0}", customParameter.Key)); OutputStatusMessage(string.Format("\tValue: {0}", customParameter.Value)); } } OutputStatusMessage(string.Format("Type: {0}", extension.Type)); OutputStatusMessage(string.Format("Version: {0}", extension.Version)); } }
/// <summary> /// Outputs the AppAdExtension. /// </summary> protected void OutputAppAdExtension(AppAdExtension extension) { if (extension != null) { OutputStatusMessage(string.Format("AppPlatform: {0}", extension.AppPlatform)); OutputStatusMessage(string.Format("AppStoreId: {0}", extension.AppStoreId)); OutputStatusMessage(string.Format("DestinationUrl: {0}", extension.DestinationUrl)); OutputStatusMessage(string.Format("DevicePreference: {0}", extension.DevicePreference)); OutputStatusMessage(string.Format("DisplayText: {0}", extension.DisplayText)); OutputStatusMessage("ForwardCompatibilityMap: "); if (extension.ForwardCompatibilityMap != null) { foreach (var pair in extension.ForwardCompatibilityMap) { OutputStatusMessage(string.Format("Key: {0}", pair.Key)); OutputStatusMessage(string.Format("Value: {0}", pair.Value)); } } OutputStatusMessage(string.Format("Id: {0}", extension.Id)); OutputStatusMessage(string.Format("Status: {0}", extension.Status)); OutputStatusMessage(string.Format("Version: {0}", extension.Version)); } }