public void Init()
        {
            TestUtils utils = new TestUtils();

            companyService = (CompanyService)user.GetService(DfpService.v201408.CompanyService);
            testCompany1   = utils.CreateCompany(user, CompanyType.ADVERTISER);
            testCompany2   = utils.CreateCompany(user, CompanyType.ADVERTISER);
        }
 public void Init() {
   TestUtils utils = new TestUtils();
   creativeService = (CreativeService)user.GetService(DfpService.v201408.CreativeService);
   advertiserId = utils.CreateCompany(user, CompanyType.ADVERTISER).id;
   creative1 = utils.CreateCreative(user, advertiserId);
   creative2 = utils.CreateCreative(user, advertiserId);
 }
        public void Init()
        {
            TestUtils utils = new TestUtils();

            licaService = (LineItemCreativeAssociationService)user.GetService(
                DfpService.v201408.LineItemCreativeAssociationService);
            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;

            lineItemId1 = utils.CreateLineItem(user, orderId, adUnitId).id;
            lineItemId2 = utils.CreateLineItem(user, orderId, adUnitId).id;
            lineItemId3 = utils.CreateLineItem(user, orderId, adUnitId).id;
            lineItemId4 = utils.CreateLineItem(user, orderId, adUnitId).id;

            creativeId1 = utils.CreateCreative(user, advertiserId).id;
            creativeId2 = utils.CreateCreative(user, advertiserId).id;
            creativeId3 = utils.CreateCreative(user, advertiserId).id;
            creativeId4 = utils.CreateCreative(user, advertiserId).id;

            lica1 = utils.CreateLica(user, lineItemId3, creativeId3);
            lica2 = utils.CreateLica(user, lineItemId4, creativeId4);
        }
        public void Init()
        {
            TestUtils utils = new TestUtils();

            creativeService = (CreativeService)user.GetService(DfpService.v201408.CreativeService);
            advertiserId    = utils.CreateCompany(user, CompanyType.ADVERTISER).id;
            creative1       = utils.CreateCreative(user, advertiserId);
            creative2       = utils.CreateCreative(user, advertiserId);
        }
    public void Init() {
      TestUtils utils = new TestUtils();
      orderService = (OrderService) user.GetService(DfpService.v201408.OrderService);

      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;
    }
Exemplo n.º 6
0
        public void Init()
        {
            TestUtils utils = new TestUtils();

            orderService = (OrderService)user.GetService(DfpService.v201408.OrderService);

            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;
        }
Exemplo n.º 7
0
        public void Init()
        {
            TestUtils utils = new TestUtils();

            forecastService = (ForecastService)user.GetService(DfpService.v201408.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();
              licaService = (LineItemCreativeAssociationService) user.GetService(
              DfpService.v201408.LineItemCreativeAssociationService);
              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;

              lineItemId1 = utils.CreateLineItem(user, orderId, adUnitId).id;
              lineItemId2 = utils.CreateLineItem(user, orderId, adUnitId).id;
              lineItemId3 = utils.CreateLineItem(user, orderId, adUnitId).id;
              lineItemId4 = utils.CreateLineItem(user, orderId, adUnitId).id;

              creativeId1 = utils.CreateCreative(user, advertiserId).id;
              creativeId2 = utils.CreateCreative(user, advertiserId).id;
              creativeId3 = utils.CreateCreative(user, advertiserId).id;
              creativeId4 = utils.CreateCreative(user, advertiserId).id;

              lica1 = utils.CreateLica(user, lineItemId3, creativeId3);
              lica2 = utils.CreateLica(user, lineItemId4, creativeId4);
        }
        public void Init()
        {
            TestUtils utils = new TestUtils();
              lineItemService = (LineItemService)user.GetService(DfpService.v201408.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);
        }
 public void Init() {
   TestUtils utils = new TestUtils();
   companyService = (CompanyService) user.GetService(DfpService.v201408.CompanyService);
   testCompany1 = utils.CreateCompany(user, CompanyType.ADVERTISER);
   testCompany2 = utils.CreateCompany(user, CompanyType.ADVERTISER);
 }