I'm only interested in the criterion cpc bid
With italics/bold i marked the nonexcisting functions in the api
But the data of the type is there in the data structure when i debug
but for some reason they're not accessible.
Is there any other way to get it?

The code i would like to write is:

    int offset = 0;
    boolean morePages = true;
    // Create selector.
    SelectorBuilder builder = new SelectorBuilder();
    Selector selector = builder
        .fields(
        AdGroupCriterionField.AdGroupId,
            AdGroupCriterionField.Id,
            AdGroupCriterionField.Status,
            AdGroupCriterionField.CpcBid)
        .offset(offset)
        .limit(PAGE_SIZE)
        .in(AdGroupCriterionField.AdGroupId, adGroupId.toString())
        .in(AdGroupCriterionField.Id, CriterionId.toString())
        .build();

    while (morePages) {
      // Get all ad group criteria.
      AdGroupCriterionPage page = adGroupCriterionService.get(selector);

      if (page.getEntries() != null && page.getEntries().length > 0) {
  for (AdGroupCriterion adGroupCriterionResult : page.getEntries()){
BiddingStrategyConfiguration bsc = adGroupCriterionResult.
*getBiddingStrategyConfiguration*;
long oldbid = bsc.*getBids(0).getBid.getMicroAmout*;
System.out.print("Old bid was : "+oldbid);
}      
      } else {
        System.out.println("No ad group criteria were found.");
      }

// Display ad group criteria.
      offset += PAGE_SIZE;
      selector = builder.increaseOffsetBy(PAGE_SIZE).build();
      morePages = offset < page.getTotalNumEntries();
    }


tirsdag den 5. februar 2019 kl. 21.02.09 UTC+1 skrev 
googleadsapi-forumadvisor:
>
> Hello Thomas,
>
> To get the CpcBid 
> <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupService.CpcBid>
>  
> of an AdGroup, you can use AdGroupService.get 
> <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupService#get>
>  
> API call. You will need to set the CpcBid in the selector, please refer to 
> this 
> <https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201809/basicoperations/GetAdGroups.java#L143>
>  
> Java code. If you would like to get the CpcBid 
> <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService.CpcBid>
>  
> of the criterion, you can use the AdGroupCriterionService.get 
> <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService#get>
>  
> API call. 
>
> Thanks,
> Milind, AdWords API Team
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
>     http://googleadsdeveloper.blogspot.com/search/label/adwords_api
>     https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> <https://support.google.com/google-ads/contact/survey_transactional?caseid=4-5869000025379&hl=en&ctx=1>
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/63c4b018-c497-4ea1-b71e-1e28ad95c38f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Java ma... Thomas Bisballe
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... Thomas Bisballe
        • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to