Package com.google.api.ads.dfp.v201211

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


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

        // Perform action.
        UpdateResult result = customTargetingService.performCustomTargetingKeyAction(
            action, statementBuilder.toStatement());

        // Display results.
        if (result != null && result.getNumChanges() > 0) {
          System.out.println("Number of custom targeting keys deleted: " + result.getNumChanges());
        } else {
          System.out.println("No custom targeting keys were deleted.");
        }
      }
    } catch (Exception e) {
View Full Code Here


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

        // Perform action.
        UpdateResult result =
            creativeWrapperService.performCreativeWrapperAction(action, filterStatement);

        // Display results.
        if (result != null && result.getNumChanges() > 0) {
          System.out.println("Number of creative wrappers deactivated: " + result.getNumChanges());
        } else {
          System.out.println("No creative wrappers were deactivated.");
        }
      }
    } catch (Exception e) {
View Full Code Here

      // Create an array to store local team objects.
      Team[] teams = new Team[5];

      for (int i = 0; i < 5; i++) {
        Team team = new Team();
        team.setName("Team #" + i);
        team.setHasAllCompanies(false);
        team.setHasAllInventory(false);
        teams[i] = team;
      }

      // Create the teams on the server.
      teams = teamService.createTeams(teams);

      if (teams != null) {
        for (Team team : teams) {
          System.out.println("A team with ID \"" + team.getId() + "\", and name \""
              + team.getName() + "\" was created.");
        }
      } else {
        System.out.println("No teams created.");
      }
    } catch (Exception e) {
View Full Code Here

      // Set the ID of the team to get.
      Long teamId = Long.parseLong("INSERT_TEAM_ID_HERE");

      // Get the team.
      Team team = teamService.getTeam(teamId);

      if (team != null) {
        System.out.println("Team with ID \"" + team.getId() + "\"and name \"" + team.getName()
            + "\" was found.");
      } else {
        System.out.println("No team found for this ID.");
      }
    } catch (Exception e) {
View Full Code Here

      // Create an array to store local team objects.
      Team[] teams = new Team[5];

      for (int i = 0; i < 5; i++) {
        Team team = new Team();
        team.setName("Team #" + i);
        team.setHasAllCompanies(false);
        team.setHasAllInventory(false);
        teams[i] = team;
      }

      // Create the teams on the server.
      teams = teamService.createTeams(teams);

      if (teams != null) {
        for (Team team : teams) {
          System.out.println("A team with ID \"" + team.getId() + "\", and name \""
              + team.getName() + "\" was created.");
        }
      } else {
        System.out.println("No teams created.");
      }
    } catch (Exception e) {
View Full Code Here

      // Set the ID of the team to get.
      Long teamId = Long.parseLong("INSERT_TEAM_ID_HERE");

      // Get the team.
      Team team = teamService.getTeam(teamId);

      if (team != null) {
        System.out.println("Team with ID \"" + team.getId() + "\"and name \"" + team.getName()
            + "\" was found.");
      } else {
        System.out.println("No team found for this ID.");
      }
    } catch (Exception e) {
View Full Code Here

      // Create an array to store local team objects.
      Team[] teams = new Team[5];

      for (int i = 0; i < 5; i++) {
        Team team = new Team();
        team.setName("Team #" + i);
        team.setHasAllCompanies(false);
        team.setHasAllInventory(false);
        teams[i] = team;
      }

      // Create the teams on the server.
      teams = teamService.createTeams(teams);

      if (teams != null) {
        for (Team team : teams) {
          System.out.println("A team with ID \"" + team.getId() + "\", and name \""
              + team.getName() + "\" was created.");
        }
      } else {
        System.out.println("No teams created.");
      }
    } catch (Exception e) {
View Full Code Here

      // Set the ID of the team to get.
      Long teamId = Long.parseLong("INSERT_TEAM_ID_HERE");

      // Get the team.
      Team team = teamService.getTeam(teamId);

      if (team != null) {
        System.out.println("Team with ID \"" + team.getId() + "\"and name \"" + team.getName()
            + "\" was found.");
      } else {
        System.out.println("No team found for this ID.");
      }
    } catch (Exception e) {
View Full Code Here

      // Create an array to store local team objects.
      Team[] teams = new Team[5];

      for (int i = 0; i < 5; i++) {
        Team team = new Team();
        team.setName("Team #" + i);
        team.setHasAllCompanies(false);
        team.setHasAllInventory(false);
        teams[i] = team;
      }

      // Create the teams on the server.
      teams = teamService.createTeams(teams);

      if (teams != null) {
        for (Team team : teams) {
          System.out.println("A team with ID \"" + team.getId() + "\", and name \""
              + team.getName() + "\" was created.");
        }
      } else {
        System.out.println("No teams created.");
      }
    } catch (Exception e) {
View Full Code Here

      // Set the ID of the team to get.
      Long teamId = Long.parseLong("INSERT_TEAM_ID_HERE");

      // Get the team.
      Team team = teamService.getTeam(teamId);

      if (team != null) {
        System.out.println("Team with ID \"" + team.getId() + "\"and name \"" + team.getName()
            + "\" was found.");
      } else {
        System.out.println("No team found for this ID.");
      }
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.google.api.ads.dfp.v201211.Team

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.