public static Campaign NextCampaign(RandomData randomData) { Facebook.UITestFramework.Object.Campaign addCampaign = new Object.Campaign { Name = "CampaignForAFPBVT_" + randomData.NextAsciiWord(2, 3), RunStatus = "Active", Budget = "1.00", BudgetType = "Daily", StartTime = DateTime.UtcNow.ToString(), StopTime = "0", }; return addCampaign; }
public static string NextCampaignName(RandomData randomData) { return "___" + randomData.NextAsciiWord(5, 7); }
public static Advertisement NextExternalAdvertisement(RandomData randomData) { return new Facebook.UITestFramework.Object.Advertisement { AdName = "Automation_" + randomData.NextAsciiWord(2, 3), AdStatus = AdStatus.Scheduled, AdType = AdType.External_URL, BidType = BidType.CPC, MaxBid = 0.01, DestinationUrl = new Uri("http://www.ad-sage.com"), Title = "Manage your ads?", Body = "Get the latest updates on adSage for Facebook's powerful ad manager. Click like now!", SuggestedBid = new SuggestedBid(), }; }
private static Advertisement nextSponsorStoryAdvertisement(RandomData randomData, AdType type) { return new Facebook.UITestFramework.Object.Advertisement { AdName = "Automation_" + randomData.NextAsciiWord(2, 3), AdStatus = AdStatus.Scheduled, BidType = BidType.CPC, MaxBid = 0.01, DestinationUrl = null,//new Uri(ConfigurationManager.AppSettings.Get("PageUrl")), Body = string.Empty, SuggestedBid = new SuggestedBid(), AdType = type, }; }