Examples of CustomField


Examples of com.google.api.ads.dfp.axis.v201311.CustomField

    // Get the CustomFieldService.
    CustomFieldServiceInterface customFieldService =
        dfpServices.get(session, CustomFieldServiceInterface.class);

    // Get the custom field.
    CustomField customField = customFieldService.getCustomField(customFieldId);

    // Update the custom field description.
    customField.setDescription("New custom field description");

    // Update the custom field on the server.
    CustomField[] customFields =
        customFieldService.updateCustomFields(new CustomField[] {customField});
View Full Code Here

Examples of com.google.api.ads.dfp.v201208.CustomField

      // Set the ID of the custom field to update.
      Long customFieldId = Long.parseLong("INSERT_CUSTOM_FIELD_ID_HERE");

      // Get the custom field.
      CustomField customField = customFieldService.getCustomField(customFieldId);

      if (customField != null) {
        customField.setDescription(customField.getDescription() == null ? "" : customField
            .getDescription() + " Updated");

        // Update the custom field on the server.
        CustomField[] customFields =
            customFieldService.updateCustomFields(new CustomField[] {customField});
View Full Code Here

Examples of com.google.api.ads.dfp.v201208.CustomField

      Long dropDownCustomFieldId = Long.parseLong("INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE");
      Long customFieldOptionId = Long.parseLong("INSERT_CUSTOM_FIELD_OPTION_ID_HERE");
      Long lineItemId = Long.parseLong("INSERT_LINE_ITEM_ID_HERE");

      // Get the custom field.
      CustomField customField = customFieldService.getCustomField(customFieldId);

      // Get the drop-down custom field.
      DropDownCustomField dropDownCustomField =
          (DropDownCustomField) customFieldService.getCustomField(dropDownCustomFieldId);
View Full Code Here

Examples of com.google.api.ads.dfp.v201208.CustomField

      // Get the CustomFieldService.
      CustomFieldServiceInterface customFieldService =
          user.getService(DfpService.V201208.CUSTOM_FIELD_SERVICE);

      // Create custom fields.
      CustomField customField1 = new CustomField();
      customField1.setName("Customer comments #" + System.currentTimeMillis());
      customField1.setEntityType(CustomFieldEntityType.LINE_ITEM);
      customField1.setDataType(CustomFieldDataType.STRING);
      customField1.setVisibility(CustomFieldVisibility.FULL);

      CustomField customField2 = new CustomField();
      customField2.setName("Internal approval status #" + System.currentTimeMillis());
      customField2.setEntityType(CustomFieldEntityType.LINE_ITEM);
      customField2.setDataType(CustomFieldDataType.DROP_DOWN);
      customField2.setVisibility(CustomFieldVisibility.FULL);

      // Add custom fields.
      CustomField[] customFields =
          customFieldService.createCustomFields(new CustomField[] {customField1, customField2});
View Full Code Here

Examples of com.google.api.ads.dfp.v201211.CustomField

      // Set the ID of the custom field to update.
      Long customFieldId = Long.parseLong("INSERT_CUSTOM_FIELD_ID_HERE");

      // Get the custom field.
      CustomField customField = customFieldService.getCustomField(customFieldId);

      if (customField != null) {
        customField.setDescription(customField.getDescription() == null ? "" : customField
            .getDescription() + " Updated");

        // Update the custom field on the server.
        CustomField[] customFields =
            customFieldService.updateCustomFields(new CustomField[] {customField});
View Full Code Here

Examples of com.google.api.ads.dfp.v201211.CustomField

      Long dropDownCustomFieldId = Long.parseLong("INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE");
      Long customFieldOptionId = Long.parseLong("INSERT_CUSTOM_FIELD_OPTION_ID_HERE");
      Long lineItemId = Long.parseLong("INSERT_LINE_ITEM_ID_HERE");

      // Get the custom field.
      CustomField customField = customFieldService.getCustomField(customFieldId);

      // Get the drop-down custom field.
      DropDownCustomField dropDownCustomField =
          (DropDownCustomField) customFieldService.getCustomField(dropDownCustomFieldId);
View Full Code Here

Examples of com.google.api.ads.dfp.v201211.CustomField

      // Get the CustomFieldService.
      CustomFieldServiceInterface customFieldService =
          user.getService(DfpService.V201211.CUSTOM_FIELD_SERVICE);

      // Create custom fields.
      CustomField customField1 = new CustomField();
      customField1.setName("Customer comments #" + System.currentTimeMillis());
      customField1.setEntityType(CustomFieldEntityType.LINE_ITEM);
      customField1.setDataType(CustomFieldDataType.STRING);
      customField1.setVisibility(CustomFieldVisibility.FULL);

      CustomField customField2 = new CustomField();
      customField2.setName("Internal approval status #" + System.currentTimeMillis());
      customField2.setEntityType(CustomFieldEntityType.LINE_ITEM);
      customField2.setDataType(CustomFieldDataType.DROP_DOWN);
      customField2.setVisibility(CustomFieldVisibility.FULL);

      // Add custom fields.
      CustomField[] customFields =
          customFieldService.createCustomFields(new CustomField[] {customField1, customField2});
View Full Code Here

Examples of com.google.api.ads.dfp.v201302.CustomField

      Long dropDownCustomFieldId = Long.parseLong("INSERT_DROP_DOWN_CUSTOM_FIELD_ID_HERE");
      Long customFieldOptionId = Long.parseLong("INSERT_CUSTOM_FIELD_OPTION_ID_HERE");
      Long lineItemId = Long.parseLong("INSERT_LINE_ITEM_ID_HERE");

      // Get the custom field.
      CustomField customField = customFieldService.getCustomField(customFieldId);

      // Get the drop-down custom field.
      DropDownCustomField dropDownCustomField =
          (DropDownCustomField) customFieldService.getCustomField(dropDownCustomFieldId);
View Full Code Here

Examples of com.google.api.ads.dfp.v201302.CustomField

      // Get the CustomFieldService.
      CustomFieldServiceInterface customFieldService =
          user.getService(DfpService.V201302.CUSTOM_FIELD_SERVICE);

      // Create custom fields.
      CustomField customField1 = new CustomField();
      customField1.setName("Customer comments #" + System.currentTimeMillis());
      customField1.setEntityType(CustomFieldEntityType.LINE_ITEM);
      customField1.setDataType(CustomFieldDataType.STRING);
      customField1.setVisibility(CustomFieldVisibility.FULL);

      CustomField customField2 = new CustomField();
      customField2.setName("Internal approval status #" + System.currentTimeMillis());
      customField2.setEntityType(CustomFieldEntityType.LINE_ITEM);
      customField2.setDataType(CustomFieldDataType.DROP_DOWN);
      customField2.setVisibility(CustomFieldVisibility.FULL);

      // Add custom fields.
      CustomField[] customFields =
          customFieldService.createCustomFields(new CustomField[] {customField1, customField2});
View Full Code Here

Examples of com.google.api.ads.dfp.v201302.CustomField

      // Set the ID of the custom field to update.
      Long customFieldId = Long.parseLong("INSERT_CUSTOM_FIELD_ID_HERE");

      // Get the custom field.
      CustomField customField = customFieldService.getCustomField(customFieldId);

      if (customField != null) {
        customField.setDescription(customField.getDescription() == null ? "" : customField
            .getDescription() + " Updated");

        // Update the custom field on the server.
        CustomField[] customFields =
            customFieldService.updateCustomFields(new CustomField[] {customField});
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.