Package com.google.api.ads.adwords.jaxws.v201309.cm

Examples of com.google.api.ads.adwords.jaxws.v201309.cm.Budget


      ManualCpmBiddingScheme manualCpm = new ManualCpmBiddingScheme();
      biddingConfig.setBiddingScheme(manualCpm);
      goodCampaign.setBiddingStrategyConfiguration(biddingConfig);

      // Create budget.
      Budget budget = new Budget();
      budget.setPeriod(BudgetBudgetPeriod.DAILY);
      budget.setAmount(new Money(null, 50000000L));
      budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);
      goodCampaign.setBudget(budget);

      // Create operations.
      CampaignOperation operation = new CampaignOperation();
      operation.setOperand(goodCampaign);
View Full Code Here


      // Enable campaign for Real-time bidding.
      campaign.setSettings(new Setting[] {new RealTimeBiddingSetting(null, true)});

      // Create budget.
      Budget budget = new Budget();
      budget.setPeriod(BudgetBudgetPeriod.DAILY);
      budget.setAmount(new Money(null, 50000000L));
      budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);
      campaign.setBudget(budget);

      // Create operations.
      CampaignOperation operation = new CampaignOperation();
      operation.setOperand(campaign);
View Full Code Here

      campaign.setBiddingStrategyConfiguration(biddingConfig);

      BudgetServiceInterface budgetService = user.getService(AdWordsService.V201306.BUDGET_SERVICE);

      // Create budget.
      Budget budget = new Budget();
      budget.setName("Interplanetary Budget #" + System.currentTimeMillis());
      budget.setPeriod(BudgetBudgetPeriod.DAILY);
      budget.setAmount(new Money(null, 50000000L));
      budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);

      // Add budget.
      BudgetOperation budgetOperation = new BudgetOperation();
      budgetOperation.setOperand(budget);
      budgetOperation.setOperator(Operator.ADD);
      BudgetReturnValue budgetReturnValue =
          budgetService.mutate(new BudgetOperation[] {budgetOperation});

      // Set the budget to the campaign.
      Budget createdBudget = new Budget();
      createdBudget.setBudgetId(budgetReturnValue.getValue(0).getBudgetId());
      campaign.setBudget(createdBudget);

      // Set the campaign network options to Search and Search Network.
      NetworkSetting networkSetting = new NetworkSetting();
      networkSetting.setTargetContentNetwork(false);
View Full Code Here

  }

  public static void runExample(AdWordsUser user, Long sharedBudgetId) throws Exception {
    SharedBiddingStrategy sharedBiddingStrategy = createBiddingStrategy(user);
    if (sharedBudgetId == null) {
      Budget budget = createSharedBudget(user);
      sharedBudgetId = budget.getBudgetId();
    }
    createCampaignWithBiddingStrategy(user, sharedBiddingStrategy.getId(), sharedBudgetId);
  }
View Full Code Here

      throws ServiceException, ApiException, RemoteException {
    // Get the BudgetService, which loads the required classes.
    BudgetServiceInterface budgetService = user.getService(AdWordsService.V201309.BUDGET_SERVICE);

    // Create a shared budget
    Budget budget = new Budget();
    budget.setName("Shared Interplanetary Budget #" + System.currentTimeMillis());
    budget.setPeriod(BudgetBudgetPeriod.DAILY);
    budget.setAmount(new Money(null, 50000000L));
    budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);
    budget.setIsExplicitlyShared(true);

    BudgetOperation operation = new BudgetOperation();
    operation.setOperand(budget);
    operation.setOperator(Operator.ADD);

    BudgetOperation[] operations = new BudgetOperation[] {operation};

    // Make the mutate request.
    BudgetReturnValue result = budgetService.mutate(operations);
    Budget newBudget = result.getValue(0);

    System.out.printf("Budget with name '%s', ID %d was created.\n", newBudget.getName(),
        newBudget.getBudgetId());

    return newBudget;
  }
View Full Code Here

    // Create campaign.
    Campaign campaign = new Campaign();
    campaign.setName("Interplanetary Cruise #" + System.currentTimeMillis());

    // Set the budget.
    Budget budget = new Budget();
    budget.setBudgetId(sharedBudgetId);
    campaign.setBudget(budget);

    // Set bidding strategy (required).
    BiddingStrategyConfiguration biddingStrategyConfiguration = new BiddingStrategyConfiguration();
    biddingStrategyConfiguration.setBiddingStrategyId(biddingStrategyId);
View Full Code Here

      manualCpc.setEnhancedCpcEnabled(false);
      biddingConfig.setBiddingScheme(manualCpc);
      goodCampaign.setBiddingStrategyConfiguration(biddingConfig);

      // Create budget.
      Budget budget = new Budget();
      budget.setPeriod(BudgetBudgetPeriod.DAILY);
      budget.setAmount(new Money(null, 50000000L));
      budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);
      goodCampaign.setBudget(budget);

      KeywordMatchSetting keywordMatch = new KeywordMatchSetting();
      keywordMatch.setOptIn(Boolean.TRUE);
      goodCampaign.setSettings(new Setting[] {keywordMatch});
View Full Code Here

      campaign.setBiddingStrategyConfiguration(biddingConfig);

      BudgetServiceInterface budgetService = user.getService(AdWordsService.V201309.BUDGET_SERVICE);

      // Create budget.
      Budget budget = new Budget();
      budget.setName("Interplanetary Budget #" + System.currentTimeMillis());
      budget.setPeriod(BudgetBudgetPeriod.DAILY);
      budget.setAmount(new Money(null, 50000000L));
      budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);

      // Add budget.
      BudgetOperation budgetOperation = new BudgetOperation();
      budgetOperation.setOperand(budget);
      budgetOperation.setOperator(Operator.ADD);
      BudgetReturnValue budgetReturnValue =
          budgetService.mutate(new BudgetOperation[] {budgetOperation});

      // Set the budget to the campaign.
      Budget createdBudget = new Budget();
      createdBudget.setBudgetId(budgetReturnValue.getValue(0).getBudgetId());
      campaign.setBudget(createdBudget);

      // Set the campaign network options to Search and Search Network.
      NetworkSetting networkSetting = new NetworkSetting();
      networkSetting.setTargetGoogleSearch(true);
View Full Code Here

      ManualCpmBiddingScheme manualCpm = new ManualCpmBiddingScheme();
      biddingConfig.setBiddingScheme(manualCpm);
      goodCampaign.setBiddingStrategyConfiguration(biddingConfig);

      // Create budget.
      Budget budget = new Budget();
      budget.setPeriod(BudgetBudgetPeriod.DAILY);
      budget.setAmount(new Money(null, 50000000L));
      budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);
      goodCampaign.setBudget(budget);

      // Create operations.
      CampaignOperation operation = new CampaignOperation();
      operation.setOperand(goodCampaign);
View Full Code Here

      // Enable campaign for Real-time bidding.
      campaign.setSettings(new Setting[] {new RealTimeBiddingSetting(null, true)});

      // Create budget.
      Budget budget = new Budget();
      budget.setPeriod(BudgetBudgetPeriod.DAILY);
      budget.setAmount(new Money(null, 50000000L));
      budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD);
      campaign.setBudget(budget);

      // Create operations.
      CampaignOperation operation = new CampaignOperation();
      operation.setOperand(campaign);
View Full Code Here

TOP

Related Classes of com.google.api.ads.adwords.jaxws.v201309.cm.Budget

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.