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

Examples of com.google.api.ads.dfp.axis.v201308.Date


      if (sDate != null && sDate.length() > 0) {
        try {
          java.util.Date d = formatter.parse(sDate);
          Calendar calendar = new GregorianCalendar();
          calendar.setTime(d);
          Date bDate = new Date("BirthDate");
          bDate.setMonth(Integer.toString(calendar.get(Calendar.MONTH)+1));
          bDate.setDay(Integer.toString(calendar.get(Calendar.DAY_OF_MONTH)));
          bDate.setYear(Integer.toString(calendar.get(Calendar.YEAR)));
          bPerson.setBirthDate(bDate);
        } catch (Exception exc) {
          org.openeai.OpenEaiObject.logger.fatal(exc.getMessage(), exc);
          bp_resultsTextArea.setText("Invalid BirthDate '" + sDate + "'  " + exc.getMessage());
          return;
View Full Code Here


      String sDate = bp_effectiveDate.getText();
      try {
        java.util.Date d = formatter.parse(sDate);
        Calendar calendar = new GregorianCalendar();
        calendar.setTime(d);
        Date effDate = new Date("EffectiveDate");
        effDate.setMonth(Integer.toString(calendar.get(Calendar.MONTH)+1));
        effDate.setDay(Integer.toString(calendar.get(Calendar.DAY_OF_MONTH)));
        effDate.setYear(Integer.toString(calendar.get(Calendar.YEAR)));
        addr.setEffectiveDate(effDate);
      } catch (Exception exc) {
        org.openeai.OpenEaiObject.logger.fatal(exc.getMessage(), exc);
        bp_resultsTextArea.setText("Invalid EffectiveDate '" + sDate + "'  " + exc.getMessage());
        return;
View Full Code Here

        // address' effective date information with it.
        // since emergency contacts don't care about effective date, we'll just use today's date.
        try {
          Calendar calendar = new GregorianCalendar();
          calendar.setTime(new java.util.Date());
          Date effDate = new Date("EffectiveDate");
          effDate.setMonth(Integer.toString(calendar.get(Calendar.MONTH)+1));
          effDate.setDay(Integer.toString(calendar.get(Calendar.DAY_OF_MONTH)));
          effDate.setYear(Integer.toString(calendar.get(Calendar.YEAR)));
          a.setEffectiveDate(effDate);
        } catch (Exception exc) {
          org.openeai.OpenEaiObject.logger.fatal(exc.getMessage(), exc);
          //        ec_textArea.setText("Invalid EffectiveDate '" + sDate + "'  " + exc.getMessage());
          return;
View Full Code Here

    numberValue3 = new NumberValue();
    numberValue3.setValue("-1");

    dateTime1 = new DateTime();
    Date date1 = new Date();
    date1.setYear(2012);
    date1.setMonth(12);
    date1.setDay(2);
    dateTime1.setDate(date1);
    dateTime1.setHour(12);
    dateTime1.setMinute(45);
    dateTime1.setSecond(0);
    dateTime1.setTimeZoneID(TIME_ZONE_ID1);
View Full Code Here

    numberValue3 = new NumberValue();
    numberValue3.setValue("-1");

    dateTime1 = new DateTime();
    Date date1 = new Date();
    date1.setYear(2012);
    date1.setMonth(12);
    date1.setDay(2);
    dateTime1.setDate(date1);
    dateTime1.setHour(12);
    dateTime1.setMinute(45);
    dateTime1.setSecond(0);
    dateTime1.setTimeZoneID(TIME_ZONE_ID1);
View Full Code Here

    numberValue3 = new NumberValue();
    numberValue3.setValue("-1");

    dateTime1 = new DateTime();
    Date date1 = new Date();
    date1.setYear(2012);
    date1.setMonth(12);
    date1.setDay(2);
    dateTime1.setDate(date1);
    dateTime1.setHour(12);
    dateTime1.setMinute(45);
    dateTime1.setSecond(0);
    dateTime1.setTimeZoneID(TIME_ZONE_ID1);
View Full Code Here

    numberValue3 = new NumberValue();
    numberValue3.setValue("-1");

    dateTime1 = new DateTime();
    date1 = new Date();
    date1.setYear(2012);
    date1.setMonth(12);
    date1.setDay(2);
    dateTime1.setDate(date1);
    dateTime1.setHour(12);
View Full Code Here

    // Get the ActivityService.
    ActivityServiceInterface activityService =
        dfpServices.get(session, ActivityServiceInterface.class);

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

    // Get the ActivityService.
    ActivityServiceInterface activityService =
        dfpServices.get(session, ActivityServiceInterface.class);

    // Create a daily visits activity.
    Activity dailyVisitsActivity = new Activity();
    dailyVisitsActivity.setName("Activity #" + new Random().nextInt(Integer.MAX_VALUE));
    dailyVisitsActivity.setActivityGroupId(activityGroupId);
    dailyVisitsActivity.setType(ActivityType.DAILY_VISITS);

    // Create a custom activity.
    Activity customActivity = new Activity();
    customActivity.setName("Activity #" + new Random().nextInt(Integer.MAX_VALUE));
    customActivity.setActivityGroupId(activityGroupId);
    customActivity.setType(ActivityType.CUSTOM);

    // Create the activities on the server.
    Activity[] activities =
        activityService.createActivities(new Activity[] {dailyVisitsActivity, customActivity});
View Full Code Here

    // Get the ActivityGroupService.
    ActivityGroupServiceInterface activityGroupService =
        dfpServices.get(session, ActivityGroupServiceInterface.class);

    // Get the activity group.
    ActivityGroup activityGroup = activityGroupService.getActivityGroup(activityGroupId);

    // Update the companies.
    activityGroup.setCompanyIds(
        Longs.concat(activityGroup.getCompanyIds(), new long[] {advertiserCompanyId}));

    // Update the activity group on the server.
    ActivityGroup[] activityGroups =
        activityGroupService.updateActivityGroups(new ActivityGroup[] {activityGroup});
View Full Code Here

TOP

Related Classes of com.google.api.ads.dfp.axis.v201308.Date

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.