public void Init() { TestUtils utils = new TestUtils(); placementService = (PlacementService) user.GetService(DfpService.v201502.PlacementService); adUnit1 = utils.CreateAdUnit(user); adUnit2 = utils.CreateAdUnit(user); placement = utils.CreatePlacement(user, new string[] {adUnit1.id, adUnit2.id}); }
public void Init() { TestUtils utils = new TestUtils(); placementService = (PlacementService)user.GetService(DfpService.v201502.PlacementService); adUnit1 = utils.CreateAdUnit(user); adUnit2 = utils.CreateAdUnit(user); placement = utils.CreatePlacement(user, new string[] { adUnit1.id, adUnit2.id }); }
public void Init() { TestUtils utils = new TestUtils(); forecastService = (ForecastService)user.GetService(DfpService.v201502.ForecastService); advertiserId = utils.CreateCompany(user, CompanyType.ADVERTISER).id; salespersonId = utils.GetSalesperson(user).id; traffickerId = utils.GetTrafficker(user).id; orderId = utils.CreateOrder(user, advertiserId, salespersonId, traffickerId).id; adUnitId = utils.CreateAdUnit(user).id; placementId = utils.CreatePlacement(user, new string[] { adUnitId }).id; lineItemId = utils.CreateLineItem(user, orderId, adUnitId).id; }
public void Init() { TestUtils utils = new TestUtils(); lineItemService = (LineItemService)user.GetService(DfpService.v201502.LineItemService); advertiserId = utils.CreateCompany(user, CompanyType.ADVERTISER).id; salespersonId = utils.GetSalesperson(user).id; traffickerId = utils.GetTrafficker(user).id; orderId = utils.CreateOrder(user, advertiserId, salespersonId, traffickerId).id; adUnitId = utils.CreateAdUnit(user).id; placementId = utils.CreatePlacement(user, new string[] {adUnitId}).id; lineItem1 = utils.CreateLineItem(user, orderId, adUnitId); lineItem2 = utils.CreateLineItem(user, orderId, adUnitId); }