Examples of CustomField


Examples of com.google.api.ads.dfp.v201306.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.v201306.CustomField

      // Get the CustomFieldService.
      CustomFieldServiceInterface customFieldService =
          user.getService(DfpService.V201306.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.v201306.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.v201308.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.v201308.CustomField

      // Get the CustomFieldService.
      CustomFieldServiceInterface customFieldService =
          user.getService(DfpService.V201308.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.v201308.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.v201311.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.v201311.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.v201311.CustomField

      // Get the CustomFieldService.
      CustomFieldServiceInterface customFieldService =
          user.getService(DfpService.V201311.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.sforce.soap.metadata.CustomField

            DescribeSObjectResult sobject = pc.describeSObject(s.getName());
            Field[] fields = sobject.getFields();
            List<CustomField> customFields = new ArrayList<CustomField>();
            for (Field f : fields) {
                if (f.isCustom()) {
                    CustomField cf = new CustomField();
                    cf.setFullName(f.getName());
                    if (!s.isCustom()) {
                        if (!customFieldsToKeep.contains((s.getName() + "." + f.getName()).toLowerCase())) {
                            writer.addCustomField(co, cf);
                        }
                    } else {
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.