Hi Axum,

You can check if adGroupCriterion is a BiddableAdGroupCriterion. If
yes, cast it into BiddableAdGroupCriterion and check for the bids
field. If it has entries, then those correspond to keyword-specific
bids. See 
http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupCriterionService.BiddableAdGroupCriterion.html#bids
for more details.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Jul 30, 9:26 pm, axum <axumch...@gmail.com> wrote:
> I am using this code to loop through a specific adgroup to list the
> keywords I wand to be able to also display the corrosponding bid for
> each keyword.  How can I do that?
>
> long adGroupId = 1787036485;
>         // Create selector.
>         AdGroupCriterionSelector selector = new
> AdGroupCriterionSelector();
>         selector.userStatuses = new UserStatus[]
> { UserStatus.ACTIVE };
>         //selector.statsSelector = new BiddableAdGroupCriterion[]
> {bids.keywordMaxCpc };
>         // Create id filter.
>         AdGroupCriterionIdFilter idFilter = new
> AdGroupCriterionIdFilter();
>         idFilter.adGroupId = adGroupId;
>         idFilter.adGroupIdSpecified = true;
>         selector.idFilters = new AdGroupCriterionIdFilter[]
> { idFilter };
>
>         // Get all ad group criteria.
>             AdGroupCriterionPage adGroupCriterionPage =
> adGroupCriterionService.get(
>                 selector);
>             if (adGroupCriterionPage != null &&
> adGroupCriterionPage.entries != null)
>             {
>                 // Display ad group criteria.
>                 foreach (AdGroupCriterion adGroupCriterion in
> adGroupCriterionPage.entries)
>                 {
>                     if (adGroupCriterion.criterion is Keyword)
>                     {
>                         Keyword keyword =
> (Keyword)adGroupCriterion.criterion;
>                         this.ListBox3.Items.Add( keyword.id + "," +
> "," + keyword.text + "," + keyword.matchType);
>                     }
>                 }

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to