Package com.google.api.ads.dfp.jaxws.v201311

Examples of com.google.api.ads.dfp.jaxws.v201311.VideoPositionTargeting


    column2.setLabelName("column2");

    column3 = new ColumnType();
    column3.setLabelName("column3");

    textValue1 = new TextValue();
    textValue1.setValue("value1");

    textValue2 = new TextValue();
    textValue2.setValue("value2");

    textValue3 = new TextValue();
    textValue3.setValue("value3");

    booleanValue1 = new BooleanValue();
    booleanValue1.setValue(false);
View Full Code Here


    assertEquals("2012-12-02", Pql.toString(dateValue1));
  }
 
  @Test
  public void testToString_null() {
    assertEquals("", Pql.toString(new TextValue()));
    assertEquals("", Pql.toString(new BooleanValue()));
    assertEquals("", Pql.toString(new NumberValue()));
    assertEquals("", Pql.toString(new DateTimeValue()));
    assertEquals("", Pql.toString(new DateValue()));
  }
View Full Code Here

    assertEquals(false, Pql.getApiValue(booleanValue1));
    assertEquals(1L, Pql.getApiValue(numberValue1));
    assertEquals(1.02, Pql.getApiValue(numberValue2));
    assertEquals(dateTime1, Pql.getApiValue(dateTimeValue1));
    assertEquals(date1, Pql.getApiValue(dateValue1));
    assertNull(Pql.getApiValue(new TextValue()));
  }
View Full Code Here

      InventoryTargeting inventoryTargeting = new InventoryTargeting();
      inventoryTargeting.setTargetedAdUnits(
          new AdUnitTargeting[] {new AdUnitTargeting(targetedVideoAdUnitId, true)});

      // Create video position targeting.
      VideoPositionTargeting videoPositionTargeting = new VideoPositionTargeting();
      videoPositionTargeting.setTargetedVideoPositions(
          new VideoPositionTargetingType[] {VideoPositionTargetingType.PREROLL});

      // Create targeting.
      Targeting targeting = new Targeting();
      targeting.setCustomTargeting(customCriteriaSet);
View Full Code Here

      InventoryTargeting inventoryTargeting = new InventoryTargeting();
      inventoryTargeting.setTargetedAdUnits(
          new AdUnitTargeting[] {new AdUnitTargeting(targetedVideoAdUnitId, true)});

      // Create video position targeting.
      VideoPositionTargeting videoPositionTargeting = new VideoPositionTargeting();
      videoPositionTargeting.setTargetedVideoPositions(
          new VideoPositionTargetingType[] {VideoPositionTargetingType.PREROLL});

      // Create targeting.
      Targeting targeting = new Targeting();
      targeting.setCustomTargeting(customCriteriaSet);
View Full Code Here

      // Create video position targeting.
      VideoPosition videoPosition = new VideoPosition();
      videoPosition.setPositionType(VideoPositionType.PREROLL);
      VideoPositionTarget videoPositionTarget = new VideoPositionTarget();
      videoPositionTarget.setVideoPosition(videoPosition);
      VideoPositionTargeting videoPositionTargeting = new VideoPositionTargeting();
      videoPositionTargeting.setTargetedPositions(
          new VideoPositionTarget[] {videoPositionTarget});

      // Create targeting.
      Targeting targeting = new Targeting();
      targeting.setCustomTargeting(customCriteriaSet);
View Full Code Here

      // Create video position targeting.
      VideoPosition videoPosition = new VideoPosition();
      videoPosition.setPositionType(VideoPositionType.PREROLL);
      VideoPositionTarget videoPositionTarget = new VideoPositionTarget();
      videoPositionTarget.setVideoPosition(videoPosition);
      VideoPositionTargeting videoPositionTargeting = new VideoPositionTargeting();
      videoPositionTargeting.setTargetedPositions(
          new VideoPositionTarget[] {videoPositionTarget});

      // Create targeting.
      Targeting targeting = new Targeting();
      targeting.setCustomTargeting(customCriteriaSet);
View Full Code Here

      // Create video position targeting.
      VideoPosition videoPosition = new VideoPosition();
      videoPosition.setPositionType(VideoPositionType.PREROLL);
      VideoPositionTarget videoPositionTarget = new VideoPositionTarget();
      videoPositionTarget.setVideoPosition(videoPosition);
      VideoPositionTargeting videoPositionTargeting = new VideoPositionTargeting();
      videoPositionTargeting.setTargetedPositions(
          new VideoPositionTarget[] {videoPositionTarget});

      // Create targeting.
      Targeting targeting = new Targeting();
      targeting.setCustomTargeting(customCriteriaSet);
View Full Code Here

      // Create video position targeting.
      VideoPosition videoPosition = new VideoPosition();
      videoPosition.setPositionType(VideoPositionType.PREROLL);
      VideoPositionTarget videoPositionTarget = new VideoPositionTarget();
      videoPositionTarget.setVideoPosition(videoPosition);
      VideoPositionTargeting videoPositionTargeting = new VideoPositionTargeting();
      videoPositionTargeting.setTargetedPositions(
          new VideoPositionTarget[] {videoPositionTarget});

      // Create targeting.
      Targeting targeting = new Targeting();
      targeting.setCustomTargeting(customCriteriaSet);
View Full Code Here

TOP

Related Classes of com.google.api.ads.dfp.jaxws.v201311.VideoPositionTargeting

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.