Examples of AdwordsUserListServiceInterface


Examples of com.google.api.ads.adwords.axis.v201306.rm.AdwordsUserListServiceInterface

  }

  public static void runExample(
      AdWordsServices adWordsServices, AdWordsSession session) throws Exception {
    // Get the UserListService.
    AdwordsUserListServiceInterface userListService =
        adWordsServices.get(session, AdwordsUserListServiceInterface.class);

    // 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");
    userList.setMembershipLifeSpan(365L);
    userList.setConversionTypes(new UserListConversionType[] {conversionType});

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

    // Display results.
    // Capture the ID(s) of the conversion.
    List<String> conversionIds = new ArrayList<String>();
    for (UserList userListResult : result.getValue()) {
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201309.rm.AdwordsUserListServiceInterface

  }

  public static void runExample(
      AdWordsServices adWordsServices, AdWordsSession session) throws Exception {
    // Get the UserListService.
    AdwordsUserListServiceInterface userListService =
        adWordsServices.get(session, AdwordsUserListServiceInterface.class);

    // 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");
    userList.setMembershipLifeSpan(365L);
    userList.setConversionTypes(new UserListConversionType[] {conversionType});

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

    // Display results.
    // Capture the ID(s) of the conversion.
    List<String> conversionIds = new ArrayList<String>();
    for (UserList userListResult : result.getValue()) {
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201402.rm.AdwordsUserListServiceInterface

  }

  public static void runExample(
      AdWordsServices adWordsServices, AdWordsSession session) throws Exception {
    // Get the UserListService.
    AdwordsUserListServiceInterface userListService =
        adWordsServices.get(session, AdwordsUserListServiceInterface.class);

    // 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");
    userList.setMembershipLifeSpan(365L);
    userList.setConversionTypes(new UserListConversionType[] {conversionType});

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

    // Display results.
    // Capture the ID(s) of the conversion.
    List<String> conversionIds = new ArrayList<String>();
    for (UserList userListResult : result.getValue()) {
View Full Code Here

Examples of com.google.api.ads.adwords.axis.v201406.rm.AdwordsUserListServiceInterface

  }

  public static void runExample(
      AdWordsServices adWordsServices, AdWordsSession session) throws Exception {
    // Get the UserListService.
    AdwordsUserListServiceInterface userListService =
        adWordsServices.get(session, AdwordsUserListServiceInterface.class);

    // 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");
    userList.setMembershipLifeSpan(365L);
    userList.setConversionTypes(new UserListConversionType[] {conversionType});

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

    // Display results.
    // Capture the ID(s) of the conversion.
    List<String> conversionIds = new ArrayList<String>();
    for (UserList userListResult : result.getValue()) {
View Full Code Here

Examples of com.google.api.adwords.v201306.rm.AdwordsUserListServiceInterface

      // Get AdWordsUser from "~/adwords.properties".
      AdWordsUser user = new AdWordsUser();

      // Get the AdwordsUserListService.
      AdwordsUserListServiceInterface adwordsUserListService =
          user.getService(AdWordsService.V201306.ADWORDS_USER_LIST_SERVICE);

      // Get the ConversionTrackerService.
      ConversionTrackerServiceInterface conversionTrackerService =
          user.getService(AdWordsService.V201306.CONVERSION_TRACKER_SERVICE);

      // 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");
      userList.setMembershipLifeSpan(365L);
      userList.setConversionTypes(new UserListConversionType[] {conversionType});

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

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

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

      // Display results.
      if (result != null && result.getValue() != null) {
        // Capture the ID(s) of the conversion.
        List<String> conversionIds = new ArrayList<String>();
View Full Code Here

Examples of com.google.api.adwords.v201309.rm.AdwordsUserListServiceInterface

      // Get AdWordsUser from "~/adwords.properties".
      AdWordsUser user = new AdWordsUser();

      // Get the AdwordsUserListService.
      AdwordsUserListServiceInterface adwordsUserListService =
          user.getService(AdWordsService.V201309.ADWORDS_USER_LIST_SERVICE);

      // Get the ConversionTrackerService.
      ConversionTrackerServiceInterface conversionTrackerService =
          user.getService(AdWordsService.V201309.CONVERSION_TRACKER_SERVICE);

      // 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");
      userList.setMembershipLifeSpan(365L);
      userList.setConversionTypes(new UserListConversionType[] {conversionType});

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

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

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

      // Display results.
      if (result != null && result.getValue() != null) {
        // Capture the ID(s) of the conversion.
        List<String> conversionIds = new ArrayList<String>();
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.