/**
* Test getting all campaign ad extension for a campaign.
*/
public void testGetAllForCampaign() throws Exception {
// Create selector.
CampaignAdExtensionSelector selector = new CampaignAdExtensionSelector();
DateRange range = new DateRange(TestUtils.firstDayOfMonth(), TestUtils.today());
selector.setStatsSelector(new CampaignAdExtensionStatsSelector(range, null));
selector.setCampaignIds(new long[] {campaignId});
selector.setStatuses(new CampaignAdExtensionStatus[] {CampaignAdExtensionStatus.ACTIVE,
CampaignAdExtensionStatus.DELETED});
CampaignAdExtensionPage page = service.get(selector);
assertNotNull(page);