Examples of AdGroupSelector


Examples of com.google.api.adwords.v200909.cm.AdGroupSelector

      campaignCriterionService.mutate(new CampaignCriterionOperation[] {operation});

      int numAdGrp = generator.nextInt(6) + 1;
      for (int j = 0; j < numAdGrp; j++) {
        AdGroupPage adGroupPage =
            adGroupService.get(new AdGroupSelector(campaign.getId(), null, null, null));
        AdGroup[] adGroups = adGroupPage.getEntries();
        AdGroup adGroup = null;
        if (adGroups != null && j < adGroups.length) {
          adGroup = adGroups[j];
        } else {
View Full Code Here

Examples of com.google.api.adwords.v200909.cm.AdGroupSelector

                testUser.getService(AdWordsService.V200909.CAMPAIGN_SERVICE);
            AdGroupServiceInterface adGroupService =
                testUser.getService(AdWordsService.V200909.ADGROUP_SERVICE);

            campaignService.get(new CampaignSelector());
            adGroupService.get(new AdGroupSelector());

            ServiceAccountant campaignServiceAccountant =
                ServiceAccountantManager.getInstance().getServiceAccountant(campaignService);

            ServiceAccountant adGroupServiceAccountant =
View Full Code Here

Examples of com.google.api.adwords.v200909.cm.AdGroupSelector

        testUser.getService(AdWordsService.V200909.CAMPAIGN_SERVICE);
    AdGroupServiceInterface adGroupService =
        testUser.getService(AdWordsService.V200909.ADGROUP_SERVICE);

    campaignService.get(new CampaignSelector());
    adGroupService.get(new AdGroupSelector());
  }
View Full Code Here

Examples of com.google.api.adwords.v201008.cm.AdGroupSelector

  /**
   * Test getting an ad group.
   */
  public void testGet() throws Exception{
    // Create the AdGroupSelector.
    AdGroupSelector selector = new AdGroupSelector();
    selector.setAdGroupIds(new long[] {adGroupId});

    // Create the DateRange and AdGroupSelector.
    DateRange range = new DateRange(TestUtils.firstDayOfMonth(), TestUtils.today());

    selector.setStatsSelector(new StatsSelector(range, null));

    AdGroupPage page = adGroupService.get(selector);

    assertNotNull(page);
    assertEquals(new Integer(1), page.getTotalNumEntries());
View Full Code Here

Examples of com.google.api.adwords.v201008.cm.AdGroupSelector

  /**
   * Test getting all ad groups in a campaign
   */
  public void testGetAllInCampaign() throws Exception{
    AdGroupSelector selector = new AdGroupSelector ();
    selector.setCampaignIds(new long[] {campaignId});
    AdGroupPage page = adGroupService.get(selector);

    assertNotNull(page);
    assertNotNull(page.getEntries());
    assertTrue("Expected at least 1 entry", page.getTotalNumEntries() >=1 );
View Full Code Here

Examples of com.google.api.adwords.v201008.cm.AdGroupSelector

  /**
   * Test getting all ad groups.
   */
  public void testGetAll() throws Exception{
    AdGroupSelector selector = new AdGroupSelector();
    AdGroupPage page = adGroupService.get(selector);

    assertNotNull(page);
    assertNotNull(page.getEntries());
    assertTrue("Expected at least 1 entry", page.getTotalNumEntries() >= 1);
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.