Package com.google.api.ads.adwords.axis.v201306.cm

Examples of com.google.api.ads.adwords.axis.v201306.cm.Placement


      BiddableAdGroupCriterion keywordBiddableAdGroupCriterion = new BiddableAdGroupCriterion();
      keywordBiddableAdGroupCriterion.setAdGroupId(adGroupId);
      keywordBiddableAdGroupCriterion.setCriterion(keyword);

      // Create placement.
      Placement placement = new Placement();
      placement.setUrl("http://mars.google.com");

      // Create biddable ad group criterion for placement.
      BiddableAdGroupCriterion placementBiddableAdGroupCriterion = new BiddableAdGroupCriterion();
      placementBiddableAdGroupCriterion.setAdGroupId(adGroupId);
      placementBiddableAdGroupCriterion.setCriterion(placement);
View Full Code Here


      // Display related placements.
      if (page.getEntries() != null && page.getEntries().length > 0) {
        for (TargetingIdea targetingIdea : page.getEntries()) {
          Map<AttributeType, Attribute> data = MapUtils.toMap(targetingIdea.getData());
          Placement placement =
              (Placement) ((CriterionAttribute) data.get(AttributeType.CRITERION)).getValue();
          SiteConstantsPlacementType placementType =
              ((PlacementTypeAttribute) data.get(AttributeType.PLACEMENT_TYPE)).getValue();
          System.out.println("Placement with url '" + placement.getUrl() + "' and type '"
              + placementType.toString() + "' was found.");
        }
      } else {
        System.out.println("No related placements were found.");
      }
View Full Code Here

          user.getService(AdWordsService.V201306.ADGROUP_CRITERION_SERVICE);

      long adGroupId = Long.parseLong("INSERT_AD_GROUP_ID_HERE");

      // Create placement.
      Placement placement = new Placement();
      placement.setUrl("http://mars.google.com");

      // Create biddable ad group criterion for placement.
      BiddableAdGroupCriterion placementBiddableAdGroupCriterion = new BiddableAdGroupCriterion();
      placementBiddableAdGroupCriterion.setAdGroupId(adGroupId);
      placementBiddableAdGroupCriterion.setCriterion(placement);
View Full Code Here

        if (r.nextInt() % 10 == 0) {
          url = "invalid-url/" + i;
        } else {
          url = "http://mars.google.com/" + i;
        }
        Placement placement = new Placement();
        placement.setUrl(url);
        // Create BiddableAdGroupCriterion.
        BiddableAdGroupCriterion bagc = new BiddableAdGroupCriterion();
        bagc.setAdGroupId(adGroupId);
        bagc.setCriterion(placement);
        // Create AdGroupCriterionOperation.
View Full Code Here

          user.getService(AdWordsService.V201306.CAMPAIGN_CRITERION_SERVICE);

      long campaignId = Long.parseLong("INSERT_CAMPAIGN_ID_HERE");

      // Create placement.
      Placement placement = new Placement();
      placement.setUrl("http://jupiter.google.com");

      // Create negative campaign criterion.
      NegativeCampaignCriterion negativeCampaignCriterion = new NegativeCampaignCriterion();
      negativeCampaignCriterion.setCampaignId(campaignId);
      negativeCampaignCriterion.setCriterion(placement);
View Full Code Here

      BiddableAdGroupCriterion keywordBiddableAdGroupCriterion = new BiddableAdGroupCriterion();
      keywordBiddableAdGroupCriterion.setAdGroupId(adGroupId);
      keywordBiddableAdGroupCriterion.setCriterion(keyword);

      // Create placement.
      Placement placement = new Placement();
      placement.setUrl("http://mars.google.com");

      // Create biddable ad group criterion for placement.
      BiddableAdGroupCriterion placementBiddableAdGroupCriterion = new BiddableAdGroupCriterion();
      placementBiddableAdGroupCriterion.setAdGroupId(adGroupId);
      placementBiddableAdGroupCriterion.setCriterion(placement);
View Full Code Here

      // Display related placements.
      if (page.getEntries() != null && page.getEntries().length > 0) {
        for (TargetingIdea targetingIdea : page.getEntries()) {
          Map<AttributeType, Attribute> data = MapUtils.toMap(targetingIdea.getData());
          Placement placement =
              (Placement) ((CriterionAttribute) data.get(AttributeType.CRITERION)).getValue();
          SiteConstantsPlacementType placementType =
              ((PlacementTypeAttribute) data.get(AttributeType.PLACEMENT_TYPE)).getValue();
          System.out.println("Placement with url '" + placement.getUrl() + "' and type '"
              + placementType.toString() + "' was found.");
        }
      } else {
        System.out.println("No related placements were found.");
      }
View Full Code Here

          user.getService(AdWordsService.V201309.ADGROUP_CRITERION_SERVICE);

      long adGroupId = Long.parseLong("INSERT_AD_GROUP_ID_HERE");

      // Create placement.
      Placement placement = new Placement();
      placement.setUrl("http://mars.google.com");

      // Create biddable ad group criterion for placement.
      BiddableAdGroupCriterion placementBiddableAdGroupCriterion = new BiddableAdGroupCriterion();
      placementBiddableAdGroupCriterion.setAdGroupId(adGroupId);
      placementBiddableAdGroupCriterion.setCriterion(placement);
View Full Code Here

        if (r.nextInt() % 10 == 0) {
          url = "invalid-url/" + i;
        } else {
          url = "http://mars.google.com/" + i;
        }
        Placement placement = new Placement();
        placement.setUrl(url);
        // Create BiddableAdGroupCriterion.
        BiddableAdGroupCriterion bagc = new BiddableAdGroupCriterion();
        bagc.setAdGroupId(adGroupId);
        bagc.setCriterion(placement);
        // Create AdGroupCriterionOperation.
View Full Code Here

          user.getService(AdWordsService.V201309.CAMPAIGN_CRITERION_SERVICE);

      long campaignId = Long.parseLong("INSERT_CAMPAIGN_ID_HERE");

      // Create placement.
      Placement placement = new Placement();
      placement.setUrl("http://jupiter.google.com");

      // Create negative campaign criterion.
      NegativeCampaignCriterion negativeCampaignCriterion = new NegativeCampaignCriterion();
      negativeCampaignCriterion.setCampaignId(campaignId);
      negativeCampaignCriterion.setCriterion(placement);
View Full Code Here

TOP

Related Classes of com.google.api.ads.adwords.axis.v201306.cm.Placement

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.