O, I forgot to note that this code worked with adwords-api-8.10.1 but is not working in adwords-api-8.11.1.
On Monday, May 13, 2013 12:10:58 PM UTC+2, Roelf Jansen wrote: > > > I'm trying to enable a paused AdGroup in a Campaign which is set up for > automatic bidding. > > However, when I try to mutate I'm told I'm not allow to override the > BiddingStrategy. I don't understand how enabling the AdGroup should > trigger a BiddingStrategy exception ? > > .... > > AdGroup adGroup = (AdGroup)adGroupEntries[j]; > > > if ("PAUSED".equals(adGroup.getStatus().toString())){ > > adGroup.setStatus(AdGroupStatus.ENABLED); > > AdGroupOperation enableOperation = new AdGroupOperation(); > enableOperation.setOperand(adGroup); > enableOperation.setOperator(Operator.SET); > > AdGroupOperation[] enableOperations = new > AdGroupOperation[]{enableOperation}; > > AdGroupReturnValue enableResult = > adGroupService.mutate(enableOperations); > > } > > .... > > AxisFault > faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server > faultSubcode: > faultString: [BiddingErrors.BIDDING_STRATEGY_OVERRIDE_NOT_ALLOWED @ > operations[0].operand.biddingStrategyConfiguration] > faultActor: > faultNode: > faultDetail: > > {https://adwords.google.com/api/adwords/cm/v201302}ApiExceptionFault:<message>[BiddingErrors.BIDDING_STRATEGY_OVERRIDE_NOT_ALLOWED > > @ > operations[0].operand.biddingStrategyConfiguration]</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="BiddingErrors"><fieldPath>operations[0].operand.biddingStrategyConfiguration</fieldPath><trigger/><errorString>BiddingErrors.BIDDING_STRATEGY_OVERRIDE_NOT_ALLOWED</errorString><ApiError.Type>BiddingErrors</ApiError.Type><reason>BIDDING_STRATEGY_OVERRIDE_NOT_ALLOWED</reason></errors> > > [BiddingErrors.BIDDING_STRATEGY_OVERRIDE_NOT_ALLOWED @ > operations[0].operand.biddingStrategyConfiguration] -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.