Hi Dominic,
Probably, you haven't set the AdGroupCriterion type correctly.
If you use Java, you can refer to
this example to see how BiddableAdGroupCriterion is used with SET operations to modify updates a bid of the keyword.
This might be similar to what you would like to do in your code.
You can find examples for other languages from the repositories
here.
Cheers,
Thanet