}
public static void runExample(AdWordsServices adWordsServices,
AdWordsSession session) throws Exception {
// Get the AdGroupBidModifierService.
AdGroupBidModifierServiceInterface adGroupBidModifierService =
adWordsServices.get(session, AdGroupBidModifierServiceInterface.class);
int offset = 0;
// Create selector.
Selector selector = new Selector();
selector.setFields(new String[] {"CampaignId",
"AdGroupId",
"BidModifier",
"Id"});
selector.setPaging(new Paging(offset, PAGE_SIZE));
AdGroupBidModifierPage page = adGroupBidModifierService.get(selector);
if (page.getEntries() != null) {
for (AdGroupBidModifier bidModifierResult : page.getEntries()) {
String bidModifierValue =
bidModifierResult.getBidModifier() != null
? bidModifierResult.getBidModifier().toString()