Package com.google.api.ads.adwords.axis.v201402.mcm

Examples of com.google.api.ads.adwords.axis.v201402.mcm.AlertQuery


    int offset = 0;
    boolean morePages = true;

    // Create selector.
    SelectorBuilder builder = new SelectorBuilder();
    Selector selector = builder
        .fields("Id", "AdGroupId", "MatchType", "KeywordText")
        .orderAscBy("AdGroupId")
        .offset(offset)
        .limit(PAGE_SIZE)
        .in("AdGroupId", adGroupId.toString())
View Full Code Here


    // Optional settings.

    // Targeting restriction settings - these settings only affect serving
    // for the Display Network.
    TargetingSetting targeting = new TargetingSetting();
    TargetingSettingDetail placements = new TargetingSettingDetail();
    placements.setCriterionTypeGroup(CriterionTypeGroup.PLACEMENT);
    placements.setTargetAll(Boolean.TRUE);
    TargetingSettingDetail verticals = new TargetingSettingDetail();
    verticals.setCriterionTypeGroup(CriterionTypeGroup.VERTICAL);
    verticals.setTargetAll(Boolean.FALSE);
    targeting.setDetails(new TargetingSettingDetail[]{placements, verticals});

    // Create ad group bid.
    BiddingStrategyConfiguration biddingStrategyConfiguration = new BiddingStrategyConfiguration();
    CpcBid bid = new CpcBid();
    bid.setBid(new Money(null, 10000000L));
View Full Code Here

    // Optional settings.

    // Targeting restriction settings - these settings only affect serving
    // for the Display Network.
    TargetingSetting targeting = new TargetingSetting();
    TargetingSettingDetail placements = new TargetingSettingDetail();
    placements.setCriterionTypeGroup(CriterionTypeGroup.PLACEMENT);
    placements.setTargetAll(Boolean.TRUE);
    TargetingSettingDetail verticals = new TargetingSettingDetail();
    verticals.setCriterionTypeGroup(CriterionTypeGroup.VERTICAL);
    verticals.setTargetAll(Boolean.FALSE);
    targeting.setDetails(new TargetingSettingDetail[]{placements, verticals});

    // Create ad group bid.
    BiddingStrategyConfiguration biddingStrategyConfiguration = new BiddingStrategyConfiguration();
    CpcBid bid = new CpcBid();
View Full Code Here

    // Get the AlertService.
    AlertServiceInterface alertService =
      adWordsServices.get(session, AlertServiceInterface.class);

    // Create alert query.
    AlertQuery alertQuery = new AlertQuery();
    alertQuery.setClientSpec(ClientSpec.ALL);
    alertQuery.setFilterSpec(FilterSpec.ALL);
    alertQuery.setTypes(new AlertType[] {AlertType.ACCOUNT_BUDGET_BURN_RATE,
        AlertType.ACCOUNT_BUDGET_ENDING, AlertType.ACCOUNT_ON_TARGET, AlertType.CAMPAIGN_ENDED,
        AlertType.CAMPAIGN_ENDING, AlertType.CREDIT_CARD_EXPIRING, AlertType.DECLINED_PAYMENT,
        AlertType.MANAGER_LINK_PENDING, AlertType.MISSING_BANK_REFERENCE_NUMBER,
        AlertType.PAYMENT_NOT_ENTERED, AlertType.TV_ACCOUNT_BUDGET_ENDING,
        AlertType.TV_ACCOUNT_ON_TARGET, AlertType.TV_ZERO_DAILY_SPENDING_LIMIT,
        AlertType.USER_INVITE_ACCEPTED, AlertType.USER_INVITE_PENDING,
        AlertType.ZERO_DAILY_SPENDING_LIMIT});
    alertQuery.setSeverities(new AlertSeverity[] {AlertSeverity.GREEN, AlertSeverity.YELLOW,
        AlertSeverity.RED});
    alertQuery.setTriggerTimeSpec(TriggerTimeSpec.ALL_TIME);

    int offset = 0;

    // Create selector.
    AlertSelector selector = new AlertSelector();
View Full Code Here

    // Get the ConversionTrackerService.
    ConversionTrackerServiceInterface conversionTrackerService =
        adWordsServices.get(session, ConversionTrackerServiceInterface.class);

    // Create conversion type (tag).
    UserListConversionType conversionType = new UserListConversionType();
    conversionType.setName("Mars cruise customers #" + System.currentTimeMillis());

    // Create remarketing user list.
    BasicUserList userList = new BasicUserList();
    userList.setName("Mars cruise customers #" + System.currentTimeMillis());
    userList.setDescription("A list of mars cruise customers in the last year");
View Full Code Here

    // You can optionally provide these field(s).
    userList.setStatus(UserListMembershipStatus.OPEN);

    // Create operations.
    UserListOperation operation = new UserListOperation();
    operation.setOperand(userList);
    operation.setOperator(Operator.ADD);

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

    // Add user list.
    UserListReturnValue result = userListService.mutate(operations);
View Full Code Here

    operation.setOperator(Operator.ADD);

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

    // Add user list.
    UserListReturnValue result = userListService.mutate(operations);

    // Display results.
    // Capture the ID(s) of the conversion.
    List<String> conversionIds = new ArrayList<String>();
    for (UserList userListResult : result.getValue()) {
      if (userListResult instanceof BasicUserList) {
        BasicUserList remarketingUserList = (BasicUserList) userListResult;
        for (UserListConversionType userListConversionType : remarketingUserList
            .getConversionTypes()) {
          conversionIds.add(userListConversionType.getId().toString());
        }
      }
    }

    // Create predicate and selector.
    Predicate predicate = new Predicate();
    predicate.setField("Id");
    predicate.setOperator(PredicateOperator.IN);
    predicate.setValues(conversionIds.toArray(new String[0]));
    Selector selector = new Selector();
    selector.setFields(new String[] {"Id"});
    selector.setPredicates(new Predicate[] {predicate});

    // Get all conversion trackers.
    Map<Long, AdWordsConversionTracker> conversionTrackers =
        new HashMap<Long, AdWordsConversionTracker>();
    ConversionTrackerPage page = conversionTrackerService.get(selector);
    if (page != null && page.getEntries() != null) {
      for (ConversionTracker conversionTracker : page.getEntries()) {
        conversionTrackers.put(conversionTracker.getId(),
            (AdWordsConversionTracker) conversionTracker);
      }
    }

    // Display user lists.
    for (UserList userListResult : result.getValue()) {
      System.out.printf("User list with name '%s' and id '%d' was added.\n",
          userListResult.getName(), userListResult.getId());

      // Display user list associated conversion code snippets.
      if (userListResult instanceof BasicUserList) {
View Full Code Here

    // Get the AlertService.
    AlertServiceInterface alertService =
      adWordsServices.get(session, AlertServiceInterface.class);

    // Create alert query.
    AlertQuery alertQuery = new AlertQuery();
    alertQuery.setClientSpec(ClientSpec.ALL);
    alertQuery.setFilterSpec(FilterSpec.ALL);
    alertQuery.setTypes(new AlertType[] {AlertType.ACCOUNT_BUDGET_BURN_RATE,
        AlertType.ACCOUNT_BUDGET_ENDING, AlertType.ACCOUNT_ON_TARGET, AlertType.CAMPAIGN_ENDED,
        AlertType.CAMPAIGN_ENDING, AlertType.CREDIT_CARD_EXPIRING, AlertType.DECLINED_PAYMENT,
        AlertType.MANAGER_LINK_PENDING, AlertType.MISSING_BANK_REFERENCE_NUMBER,
        AlertType.PAYMENT_NOT_ENTERED, AlertType.TV_ACCOUNT_BUDGET_ENDING,
        AlertType.TV_ACCOUNT_ON_TARGET, AlertType.TV_ZERO_DAILY_SPENDING_LIMIT,
        AlertType.USER_INVITE_ACCEPTED, AlertType.USER_INVITE_PENDING,
        AlertType.ZERO_DAILY_SPENDING_LIMIT});
    alertQuery.setSeverities(new AlertSeverity[] {AlertSeverity.GREEN, AlertSeverity.YELLOW,
        AlertSeverity.RED});
    alertQuery.setTriggerTimeSpec(TriggerTimeSpec.ALL_TIME);

    int offset = 0;

    // Create selector.
    AlertSelector selector = new AlertSelector();
View Full Code Here

      // Get the AlertService.
      AlertServiceInterface alertService =
          user.getService(AdWordsService.V201306.ALERT_SERVICE);

      // Create alert query.
      AlertQuery alertQuery = new AlertQuery();
      alertQuery.setClientSpec(ClientSpec.ALL);
      alertQuery.setFilterSpec(FilterSpec.ALL);
      alertQuery.setTypes(new AlertType[] {AlertType.ACCOUNT_BUDGET_BURN_RATE,
          AlertType.ACCOUNT_BUDGET_ENDING, AlertType.ACCOUNT_ON_TARGET, AlertType.CAMPAIGN_ENDED,
          AlertType.CAMPAIGN_ENDING, AlertType.CREDIT_CARD_EXPIRING, AlertType.DECLINED_PAYMENT,
          AlertType.MANAGER_LINK_PENDING, AlertType.MISSING_BANK_REFERENCE_NUMBER,
          AlertType.PAYMENT_NOT_ENTERED, AlertType.TV_ACCOUNT_BUDGET_ENDING,
          AlertType.TV_ACCOUNT_ON_TARGET, AlertType.TV_ZERO_DAILY_SPENDING_LIMIT,
          AlertType.USER_INVITE_ACCEPTED, AlertType.USER_INVITE_PENDING,
          AlertType.ZERO_DAILY_SPENDING_LIMIT});
      alertQuery.setSeverities(new AlertSeverity[] {AlertSeverity.GREEN, AlertSeverity.YELLOW,
          AlertSeverity.RED});
      alertQuery.setTriggerTimeSpec(TriggerTimeSpec.ALL_TIME);

      // Create selector.
      AlertSelector selector = new AlertSelector();
      selector.setQuery(alertQuery);
      selector.setPaging(new Paging(0, 100));
View Full Code Here

      // Get the AlertService.
      AlertServiceInterface alertService =
          user.getService(AdWordsService.V201309.ALERT_SERVICE);

      // Create alert query.
      AlertQuery alertQuery = new AlertQuery();
      alertQuery.setClientSpec(ClientSpec.ALL);
      alertQuery.setFilterSpec(FilterSpec.ALL);
      alertQuery.setTypes(new AlertType[] {AlertType.ACCOUNT_BUDGET_BURN_RATE,
          AlertType.ACCOUNT_BUDGET_ENDING, AlertType.ACCOUNT_ON_TARGET, AlertType.CAMPAIGN_ENDED,
          AlertType.CAMPAIGN_ENDING, AlertType.CREDIT_CARD_EXPIRING, AlertType.DECLINED_PAYMENT,
          AlertType.MANAGER_LINK_PENDING, AlertType.MISSING_BANK_REFERENCE_NUMBER,
          AlertType.PAYMENT_NOT_ENTERED, AlertType.TV_ACCOUNT_BUDGET_ENDING,
          AlertType.TV_ACCOUNT_ON_TARGET, AlertType.TV_ZERO_DAILY_SPENDING_LIMIT,
          AlertType.USER_INVITE_ACCEPTED, AlertType.USER_INVITE_PENDING,
          AlertType.ZERO_DAILY_SPENDING_LIMIT});
      alertQuery.setSeverities(new AlertSeverity[] {AlertSeverity.GREEN, AlertSeverity.YELLOW,
          AlertSeverity.RED});
      alertQuery.setTriggerTimeSpec(TriggerTimeSpec.ALL_TIME);

      // Create selector.
      AlertSelector selector = new AlertSelector();
      selector.setQuery(alertQuery);
      selector.setPaging(new Paging(0, 100));
View Full Code Here

TOP

Related Classes of com.google.api.ads.adwords.axis.v201402.mcm.AlertQuery

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.