Examples of Placement


Examples of com.google.api.adwords.v201309.cm.Placement

      // 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

Examples of com.google.api.adwords.v201309.cm.Placement

          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

Examples of com.google.api.adwords.v201309.cm.Placement

        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

Examples of com.google.api.adwords.v201309.cm.Placement

          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

Examples of io.fathom.cloud.compute.api.aws.ec2.model.Instance.Placement

        instance.instanceType = "m1.small";
        Date launchTime = new Date(instanceInfo.getLaunchTime());
        instance.launchTime = launchTime;

        instance.placement = new Placement();
        instance.placement.availabilityZone = "main";
        instance.placement.tenancy = "default";

        instance.monitoring = new Monitoring();
        instance.monitoring.state = "disabled";
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Placement

        ;
        final int x = click.getLocation().getX();
        if (x <= left) {
            final Location location = getAbsoluteLocation();
            location.translate(click.getLocation());
            getWorkspace().objectActionResult(getContent().getAdapter(), new Placement(this));
        } else {
            super.secondClick(click);
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Placement

                public void execute() {
                    final ActionContent actionContent = ((ActionContent) view.getContent());
                    final ObjectAdapter result = actionContent.execute();
                    LOG.debug("action invoked with result " + result);
                    if (result != null) {
                        view.objectActionResult(result, new Placement(view.getAbsoluteLocation()));
                    }
                    view.getViewManager().disposeUnneededViews();
                    view.getFeedbackManager().showMessagesAndWarnings();
                }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Placement

        workspace.clearServiceViews();

        final PerspectiveEntry perspective = perspectiveContent.getPerspective();
        for (final Object object : perspective.getObjects()) {
            final ObjectAdapter adapter = IsisContext.getPersistenceSession().getAdapterManager().adapterFor(object);
            workspace.addIconFor(adapter, new Placement(ApplicationWorkspaceBuilder.UNPLACED));
        }

        for (final Object service : perspective.getServices()) {
            final ObjectAdapter adapter = IsisContext.getPersistenceSession().getAdapterManager().adapterFor(service);
            if (isHidden(adapter)) {
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Placement

                            view.markDamaged();
                            return;
                        }
                    }
                }
                addIconFor(source, new Placement(dropLocation));
            }
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Placement

                // TODO remove the open view from the container and place on
                // workspace; replace the internal view with an icon
            } else if (sourceView.getContent() instanceof FieldContent) {
                final ViewRequirement requirement = new ViewRequirement(sourceView.getContent(), ViewRequirement.OPEN);
                final View view = Toolkit.getViewFactory().createView(requirement);
                addWindow(view, new Placement(newLocation));
                sourceView.getState().clearViewIdentified();
            } else {
                addWindowFor(sourceView.getContent().getAdapter(), new Placement(newLocation));
                sourceView.getState().clearViewIdentified();
            }
        } else {
            sourceView.markDamaged();
            sourceView.setLocation(newLocation);
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.