Ejemplo n.º 1
0
 public static string FeedItemTarget(long customerId, long feedId, long feedItemId,
                                     FeedItemTargetType feedItemTargetType, long feedItemTargetId)
 {
     return($"customers/{customerId}/feedItemTargets/{feedId}~{feedItemId}~" +
            $"{ProtobufUtilities.GetOriginalEnumFieldName(feedItemTargetType)}~" +
            $"{feedItemTargetId}");
 }
Ejemplo n.º 2
0
 public static string CustomerConversionGoal(long customerId,
                                             ConversionActionCategory category, ConversionOrigin origin)
 {
     return($"customers/{customerId}/customerConversionGoals/" +
            $"{ProtobufUtilities.GetOriginalEnumFieldName(category)}~" +
            $"{ProtobufUtilities.GetOriginalEnumFieldName(origin)}");
 }
Ejemplo n.º 3
0
 public static string CampaignSimulation(long customerId, long campaignId,
                                         SimulationType type, SimulationModificationMethod modificationMethod,
                                         DateTime startDate, DateTime endDate)
 {
     return($"customers/{customerId}/campaignSimulations/{campaignId}~" +
            $"{ProtobufUtilities.GetOriginalEnumFieldName(type)}~" +
            $"{ProtobufUtilities.GetOriginalEnumFieldName(modificationMethod)}~" +
            $"{startDate:yyyy-MM-dd}~{endDate:yyyy-MM-dd}");
 }
Ejemplo n.º 4
0
 public static string AdGroupCriterionSimulation(long customerId, long adGroupId,
                                                 long criterionId, SimulationType type, SimulationModificationMethod modificationMethod,
                                                 DateTime startDate, DateTime endDate)
 {
     return($"customers/{customerId}/adGroupCriterionSimulations/{adGroupId}~" +
            $"{criterionId}~{ProtobufUtilities.GetOriginalEnumFieldName(type)}~" +
            $"{ProtobufUtilities.GetOriginalEnumFieldName(modificationMethod)}~" +
            $"{startDate:yyyy-MM-dd}" +
            $"~{endDate:yyyy-MM-dd}");
 }
Ejemplo n.º 5
0
        public void TestGetOriginalEnumFieldName()
        {
            // Enum value and proto enum value are different.
            Assert.AreEqual("IN_PROCESS", ProtobufUtilities.GetOriginalEnumFieldName(
                                HelloStatus.InProcess));

            // Enum value and proto enum value are same.
            Assert.AreEqual("EXPIRED", ProtobufUtilities.GetOriginalEnumFieldName(
                                HelloStatus.Expired));
        }
Ejemplo n.º 6
0
 public static string AdGroupAsset(long customerId, long adGroupId, long assetId,
                                   AssetFieldType fieldType)
 {
     return($"customers/{customerId}/adGroupAssets/{adGroupId}~{assetId}~" +
            $"{ProtobufUtilities.GetOriginalEnumFieldName(fieldType)}");
 }
Ejemplo n.º 7
0
 public static string ProductBiddingCategoryConstant(string country_code,
                                                     ProductBiddingCategoryLevel level, long id)
 {
     return($"productBiddingCategoryConstants/{country_code}~" +
            $"{ProtobufUtilities.GetOriginalEnumFieldName(level)}~{id}");
 }
Ejemplo n.º 8
0
 public static string FeedPlaceholderView(long customerId, PlaceholderType placeholderType)
 {
     return($"customers/{customerId}/feedPlaceholderViews/" +
            $"{ProtobufUtilities.GetOriginalEnumFieldName(placeholderType)}");
 }
Ejemplo n.º 9
0
 public static string CustomerExtensionSetting(long customerId, ExtensionType extensionType)
 {
     return($"customers/{customerId}/customerExtensionSettings/" +
            $"{ProtobufUtilities.GetOriginalEnumFieldName(extensionType)}");
 }
Ejemplo n.º 10
0
 public static string AssetFieldTypeView(long customerId, AssetFieldType fieldType)
 {
     return($"customers/{customerId}/assetFieldTypeViews/" +
            $"{ProtobufUtilities.GetOriginalEnumFieldName(fieldType)}");
 }
Ejemplo n.º 11
0
 public static string AdGroupExtensionSetting(long customerId, long adGroupId,
                                              ExtensionType extensionType)
 {
     return($"customers/{customerId}/adGroupExtensionSettings/{adGroupId}~" +
            $"{ProtobufUtilities.GetOriginalEnumFieldName(extensionType)}");
 }