Package com.google.api.ads.dfa.axis.v1_20

Examples of com.google.api.ads.dfa.axis.v1_20.CreativeGroupRemote


  private static final String SEARCH_STRING = "INSERT_SEARCH_CRITERIA_HERE";

  public static void runExample(
      DfaServices dfaServices, DfaSession session, String searchString) throws Exception {
    // Request the service.
    CreativeFieldRemote service = dfaServices.get(session, CreativeFieldRemote.class);

    // Set up creative field search criteria structure.
    CreativeFieldSearchCriteria creativeFieldSearchCriteria = new CreativeFieldSearchCriteria();
    creativeFieldSearchCriteria.setPageSize(10);
    creativeFieldSearchCriteria.setSearchString(searchString);

    // Get creative fields for the selected criteria.
    CreativeFieldRecordSet creativeFields =
        service.getCreativeFields(creativeFieldSearchCriteria);

    // Display creative field names, IDs, advertiser IDs, and number of values.
    if (creativeFields.getRecords() != null) {
      for (CreativeField result : creativeFields.getRecords()) {
        System.out.println("Creative field with name \"" + result.getName()
View Full Code Here


  public static void runExample(
      DfaServices dfaServices, DfaSession session, String creativeFieldName, long advertiserId)
          throws Exception {
    // Request the service.
    CreativeFieldRemote service = dfaServices.get(session, CreativeFieldRemote.class);

    // Create the creative field.
    CreativeField creativeField = new CreativeField();
    creativeField.setId(-1);
    creativeField.setName(creativeFieldName);
    creativeField.setAdvertiserId(advertiserId);

    // Save the creative field.
    CreativeFieldSaveResult creativeFieldSaveResult = service.saveCreativeField(creativeField);

    // Display the new creative field ID.
    System.out.printf("Creative field with ID \"%s\" was created.%n",
        creativeFieldSaveResult.getId());
  }
View Full Code Here

  public static void runExample(
      DfaServices dfaServices, DfaSession session, String searchString) throws Exception {

    // Request the service.
    CreativeFieldRemote service = dfaServices.get(session, CreativeFieldRemote.class);

    // Set up creative field value search criteria structure.
    CreativeFieldValueSearchCriteria creativeValueSearchCriteria =
        new CreativeFieldValueSearchCriteria();
    creativeValueSearchCriteria.setPageSize(10);
    creativeValueSearchCriteria.setSearchString(searchString);

    // Get creative field values for the selected criteria.
    CreativeFieldValueRecordSet creativeFieldValues =
        service.getCreativeFieldValues(creativeValueSearchCriteria);

    // Display creative field value names and IDs.
    if (creativeFieldValues.getRecords() != null) {
      for (CreativeFieldValue result : creativeFieldValues.getRecords()) {
        System.out.println("Creative field value with name \"" + result.getName()
View Full Code Here

    creativeField.setId(-1);
    creativeField.setName(creativeFieldName);
    creativeField.setAdvertiserId(advertiserId);

    // Save the creative field.
    CreativeFieldSaveResult creativeFieldSaveResult = service.saveCreativeField(creativeField);

    // Display the new creative field ID.
    System.out.printf("Creative field with ID \"%s\" was created.%n",
        creativeFieldSaveResult.getId());
  }
View Full Code Here

      DfaServices dfaServices, DfaSession session, String searchString) throws Exception {
    // Request the service.
    CreativeFieldRemote service = dfaServices.get(session, CreativeFieldRemote.class);

    // Set up creative field search criteria structure.
    CreativeFieldSearchCriteria creativeFieldSearchCriteria = new CreativeFieldSearchCriteria();
    creativeFieldSearchCriteria.setPageSize(10);
    creativeFieldSearchCriteria.setSearchString(searchString);

    // Get creative fields for the selected criteria.
    CreativeFieldRecordSet creativeFields =
        service.getCreativeFields(creativeFieldSearchCriteria);
View Full Code Here

        new CreativeFieldValueSearchCriteria();
    creativeValueSearchCriteria.setPageSize(10);
    creativeValueSearchCriteria.setSearchString(searchString);

    // Get creative field values for the selected criteria.
    CreativeFieldValueRecordSet creativeFieldValues =
        service.getCreativeFieldValues(creativeValueSearchCriteria);

    // Display creative field value names and IDs.
    if (creativeFieldValues.getRecords() != null) {
      for (CreativeFieldValue result : creativeFieldValues.getRecords()) {
        System.out.println("Creative field value with name \"" + result.getName()
            + "\" and ID \"" + result.getId() + "\" was found.");
      }
    } else {
      System.out.print("No creative field values found for your criteria");
View Full Code Here

    // Request the service.
    CreativeFieldRemote service = dfaServices.get(session, CreativeFieldRemote.class);

    // Set up creative field value search criteria structure.
    CreativeFieldValueSearchCriteria creativeValueSearchCriteria =
        new CreativeFieldValueSearchCriteria();
    creativeValueSearchCriteria.setPageSize(10);
    creativeValueSearchCriteria.setSearchString(searchString);

    // Get creative field values for the selected criteria.
    CreativeFieldValueRecordSet creativeFieldValues =
        service.getCreativeFieldValues(creativeValueSearchCriteria);
View Full Code Here

  private static final String ADVERTISER_ID = "INSERT_ADVERTISER_ID_HERE";

  public static void runExample(
      DfaServices dfaServices, DfaSession session, long advertiserId) throws Exception {
    // Request the service.
    CreativeGroupRemote service = dfaServices.get(session, CreativeGroupRemote.class);

    // Set up creative group search criteria structure.
    CreativeGroupSearchCriteria creativeGroupSearchCriteria = new CreativeGroupSearchCriteria();
    long[] advertiserIds = new long[] {advertiserId};
    creativeGroupSearchCriteria.setAdvertiserIds(advertiserIds);

    // Get creatives groups for the selected criteria.
    CreativeGroupRecordSet creativeGroups =
        service.getCreativeGroups(creativeGroupSearchCriteria);

    // Display creative group names, IDs, advertiser IDs, and group numbers.
    if (creativeGroups.getRecords() != null) {
      for (CreativeGroup result : creativeGroups.getRecords()){
        System.out.println("Creative group with name \"" + result.getName()
View Full Code Here

  public static void runExample(
      DfaServices dfaServices, DfaSession session, String creativeGroupName, int groupNumber,
      long advertiserId) throws Exception {
    // Request the service.
    CreativeGroupRemote service = dfaServices.get(session, CreativeGroupRemote.class);

    // Create the creative group.
    CreativeGroup creativeGroup = new CreativeGroup();
    creativeGroup.setId(-1);
    creativeGroup.setName(creativeGroupName);
    creativeGroup.setGroupNumber(groupNumber);
    creativeGroup.setAdvertiserId(advertiserId);

    // Save the creative group.
    CreativeGroupSaveResult creativeGroupSaveResult = service.saveCreativeGroup(creativeGroup);

    // Display the new creative group ID.
    System.out.printf("Creative group with ID \"%s\" was created.%n",
        creativeGroupSaveResult.getId());
  }
View Full Code Here

    // Create creative placement assignment structure.
    CreativePlacementAssignment[] creativePlacementAssignment =
        new CreativePlacementAssignment[creativeIds.length];

    for (int i = 0; i < creativeIds.length; i++){
      creativePlacementAssignment[i] = new CreativePlacementAssignment();
      creativePlacementAssignment[i].setCreativeId(creativeIds[i]);
      creativePlacementAssignment[i].setPlacementId(placementIds[0]);
      creativePlacementAssignment[i].setPlacementIds(placementIds);
    }
View Full Code Here

TOP

Related Classes of com.google.api.ads.dfa.axis.v1_20.CreativeGroupRemote

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.