Hi Axum,

See 
http://code.google.com/p/google-api-adwords-dotnet/source/browse/trunk/Examples/v201003/UpdateAdGroupCriterion.cs
for an example on how the bids of a criterion can be updated. Also,
criterionId can be obtained from the criterion object as criterion.id.
See 
http://code.google.com/p/google-api-adwords-dotnet/source/browse/trunk/Examples/v201003/GetAllAdGroupCriteria.cs
for an example on how to retrieve and print criterion ids.

Cheers,
Anash P. Oommen,
AdWords API Team

On Aug 4, 11:21 pm, axum <axumch...@gmail.com> wrote:
> I have looked at the code samples.  I can loop through an adgroup
> keyword list and see the bid:
>  foreach (AdGroupCriterion adGroupCriterion in
> adGroupCriterionPage.entries)
>                 {
>                     if (adGroupCriterion.criterion is Keyword)
>                     {
>                         bidAmount = ((adGroupCriterion as
> BiddableAdGroupCriterion).bids as
>
> ManualCPCAdGroupCriterionBids).maxCpc.amount.microAmount;
>                         Keyword keyword =
> (Keyword)adGroupCriterion.criterion;
>                         this.ListBox3.Items.Add((bidAmount/1000000) +
> " - " + keyword.id + "-" + "," + keyword.text + "," +
> keyword.matchType);
>
>                     i just can not seem to understand how to update
> the bid.
> this sample throws me off I do not understand or get the criterion:
>  long adGroupId = long.Parse(_T("INSERT_AD_GROUP_ID_HERE"));
>       long criterionId = long.Parse(_T("INSERT_CRITERION_ID_HERE"));
>
> I can get the adGroupId & campaignid I can get the keywordif,text and
> type. I just dont understand getting the criterionid (for use with the
> keyword) where does that come from and how do I get it to use it to
> change the maxcpc for the keyword.?.
>
> I am coding in csharp, so java and php examples do not help.  Thanks
> for any input or help.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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