// Create selector.
AdExtensionOverrideSelector selector = new AdExtensionOverrideSelector();
selector.setCampaignIds(new long[] {campaignId});
// Get all ad extension overrides.
AdExtensionOverridePage page = adExtensionOverrideService.get(selector);
// Display ad extension overrides.
if (page.getEntries() != null) {
for (AdExtensionOverride adExtensionOverride : page.getEntries()) {
System.out.println("Ad extension override with ad id \"" + adExtensionOverride.getAdId()
+ "\", ad extension id \"" + adExtensionOverride.getAdExtension().getId()
+ "\", and type \"" + adExtensionOverride.getAdExtension().getAdExtensionType()
+ "\" was found.");
}