Since no one else has answered, and I've figured it out, I thought I'd post 
my solution here. Hope this helps somebody...

            long adGroupID = 123456789;
            AdWordsUser user = new AdWordsUser();
            AdGroupCriterionService adGroupCriterionService =
               (AdGroupCriterionService)user
               .GetService(AdWordsService.v201302.AdGroupCriterionService);
            
            ProductCondition[] pcs = new ProductCondition[1];
            ProductCondition pc = new ProductCondition();
            pc.operand = new ProductConditionOperand();
            pc.operand.operand = "id";
            pc.argument = "ABC123";
            pcs[0] = pc;
 
            Product p = new Product();
            p.conditions = pcs;
            
            BiddableAdGroupCriterion pgc = new BiddableAdGroupCriterion();
            pgc.adGroupId = adGroupID;
            pgc.criterion = p;
 
            AdGroupCriterionOperation aop = new AdGroupCriterionOperation();
            aop.@operator = Operator.ADD;
            aop.operand = pgc;
 
            AdGroupCriterionOperation[] aops = new AdGroupCriterionOperation[1];
            aops[0] = aop;
 
            adGroupCriterionService.mutate(aops); //magic happens here



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

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to