Package com.google.api.ads.dfp.v201308

Examples of com.google.api.ads.dfp.v201308.DropDownCustomField


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

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

      // Get the line item.
      LineItem lineItem = lineItemService.getLineItem(lineItemId);
View Full Code Here


        if (page.getResults() != null) {
          int i = page.getStartIndex();
          for (CustomField customField : page.getResults()) {
            if (customField instanceof DropDownCustomField) {
              List<String> dropDownCustomFieldStrings = new ArrayList<String>();
              DropDownCustomField dropDownCustomField = (DropDownCustomField) customField;
              if (dropDownCustomField.getOptions() != null) {
                for (CustomFieldOption customFieldOption : dropDownCustomField.getOptions()) {
                  dropDownCustomFieldStrings.add(customFieldOption.getDisplayName());
                }
              }
              System.out.println(i + ") Drop-down custom field with ID \"" + customField.getId()
                  + "\", name \"" + customField.getName() + "\", and options {"
View Full Code Here

        if (page.getResults() != null) {
          int i = page.getStartIndex();
          for (CustomField customField : page.getResults()) {
            if (customField instanceof DropDownCustomField) {
              List<String> dropDownCustomFieldStrings = new ArrayList<String>();
              DropDownCustomField dropDownCustomField = (DropDownCustomField) customField;
              if (dropDownCustomField.getOptions() != null) {
                for (CustomFieldOption customFieldOption : dropDownCustomField.getOptions()) {
                  dropDownCustomFieldStrings.add(customFieldOption.getDisplayName());
                }
              }
              System.out.println(i + ") Drop-down custom field with ID \"" + customField.getId()
                  + "\", name \"" + customField.getName() + "\", and options {"
View Full Code Here

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

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

      // Get the line item.
      LineItem lineItem = lineItemService.getLineItem(lineItemId);
View Full Code Here

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

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

      // Get the line item.
      LineItem lineItem = lineItemService.getLineItem(lineItemId);
View Full Code Here

        if (page.getResults() != null) {
          int i = page.getStartIndex();
          for (CustomField customField : page.getResults()) {
            if (customField instanceof DropDownCustomField) {
              List<String> dropDownCustomFieldStrings = new ArrayList<String>();
              DropDownCustomField dropDownCustomField = (DropDownCustomField) customField;
              if (dropDownCustomField.getOptions() != null) {
                for (CustomFieldOption customFieldOption : dropDownCustomField.getOptions()) {
                  dropDownCustomFieldStrings.add(customFieldOption.getDisplayName());
                }
              }
              System.out.println(i + ") Drop-down custom field with ID \"" + customField.getId()
                  + "\", name \"" + customField.getName() + "\", and options {"
View Full Code Here

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

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

      // Get the line item.
      LineItem lineItem = lineItemService.getLineItem(lineItemId);
View Full Code Here

        if (page.getResults() != null) {
          int i = page.getStartIndex();
          for (CustomField customField : page.getResults()) {
            if (customField instanceof DropDownCustomField) {
              List<String> dropDownCustomFieldStrings = new ArrayList<String>();
              DropDownCustomField dropDownCustomField = (DropDownCustomField) customField;
              if (dropDownCustomField.getOptions() != null) {
                for (CustomFieldOption customFieldOption : dropDownCustomField.getOptions()) {
                  dropDownCustomFieldStrings.add(customFieldOption.getDisplayName());
                }
              }
              System.out.println(i + ") Drop-down custom field with ID \"" + customField.getId()
                  + "\", name \"" + customField.getName() + "\", and options {"
View Full Code Here

      if (lineItemIds.size() > 0) {
        // Modify statement for action.
        filterStatement.setQuery("WHERE id IN (" + StringUtils.join(lineItemIds, ",") + ")");

        // Create action.
        ActivateLineItems action = new ActivateLineItems();

        // Perform action.
        UpdateResult result = lineItemService.performLineItemAction(action, filterStatement);

        // Display results.
View Full Code Here

      // Set the ID of the activity to update.
      Integer activityId = Integer.parseInt("INSERT_ACTIVITY_ID_HERE");

      // Get the activity.
      Activity activity = activityService.getActivity(activityId);

      // Update the expected URL.
      activity.setExpectedURL("http://google.com");

      // Update the activity on the server.
      Activity[] activities = activityService.updateActivities(new Activity[] {activity});

      for (Activity updatedActivity : activities) {
View Full Code Here

TOP

Related Classes of com.google.api.ads.dfp.v201308.DropDownCustomField

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.