Examples of PlacementTagCriteria


Examples of com.google.api.ads.dfa.axis.v1_19.PlacementTagCriteria

          throws Exception {
    // Request the service.
    PlacementRemote service = dfaServices.get(session, PlacementRemote.class);

    // Set placement tag search criteria.
    PlacementTagCriteria placementTagCriteria = new PlacementTagCriteria();
    placementTagCriteria.setId(placementId);

    // Get placement tag options.
    PlacementTagOption[] placementTagOptions = service.getRegularPlacementTagOptions();

    long[] tagOptionIds = new long[placementTagOptions.length];

    // Add all types of tags to the tag option structure.
    for (int i = 0; i < placementTagOptions.length; i++) {
      tagOptionIds[i] = placementTagOptions[i].getId();
    }

    placementTagCriteria.setTagOptionIds(tagOptionIds);
    PlacementTagCriteria[] placementTagCriterias =
        new PlacementTagCriteria[]{placementTagCriteria};

    // Get HTML tags for the placements.
    PlacementTagData placementTagData =
View Full Code Here

Examples of com.google.api.ads.dfa.axis.v1_20.PlacementTagCriteria

          throws Exception {
    // Request the service.
    PlacementRemote service = dfaServices.get(session, PlacementRemote.class);

    // Set placement tag search criteria.
    PlacementTagCriteria placementTagCriteria = new PlacementTagCriteria();
    placementTagCriteria.setId(placementId);

    // Get placement tag options.
    PlacementTagOption[] placementTagOptions = service.getRegularPlacementTagOptions();

    long[] tagOptionIds = new long[placementTagOptions.length];

    // Add all types of tags to the tag option structure.
    for (int i = 0; i < placementTagOptions.length; i++) {
      tagOptionIds[i] = placementTagOptions[i].getId();
    }

    placementTagCriteria.setTagOptionIds(tagOptionIds);
    PlacementTagCriteria[] placementTagCriterias =
        new PlacementTagCriteria[]{placementTagCriteria};

    // Get HTML tags for the placements.
    PlacementTagData placementTagData =
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.