Setting AdGroup status as ENABLED throws BiddingError

97 views
Skip to first unread message

Roelf Jansen

unread,
May 13, 2013, 6:10:58 AM5/13/13
to adwor...@googlegroups.com

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]

Roelf Jansen

unread,
May 13, 2013, 6:14:30 AM5/13/13
to adwor...@googlegroups.com
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.

Takeshi Hagikura

unread,
May 13, 2013, 6:04:28 PM5/13/13
to adwor...@googlegroups.com
Hi, 

Can you please share the request xml which succeeds with 8.10.1 and the request xml which throws an error (you mentioned above)? 
(Except for sensitive info such as developer token, access token)
In the first place, BiddingStrategyConfiguration with BiddingStrategyType at AdGroup level is not allowed.
I'd like to confirm if your request contains related to BiddingStrategy stuff. 

Best,
- Takeshi, AdWords API Team

Danial Klimkin

unread,
May 15, 2013, 4:30:00 PM5/15/13
to adwor...@googlegroups.com
Hello Roelf,


It sounds like you are sending a biddingStrategyType or biddingScheme in the mutate request. I suggest creating a new AdGroup object locally and setting its ID to the ad group ID value and the status to the one you want. Please let us know if you still get this error after that.


-Danial, AdWords API Team.

Roelf Jansen

unread,
May 16, 2013, 8:47:35 AM5/16/13
to Danial Klimkin, adwor...@googlegroups.com
Hi Danial

As I responded earlier, this workaround does the trick.

I need to confirm that the tempory AdGroup object is just a local construct & won't be seen as a new AdGroup object in the Campaign ?

We do not want to use the AdGroups' long performance histories.

Regards
Roelf


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/cJDhcl996FI/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Danial Klimkin

unread,
May 16, 2013, 1:28:07 PM5/16/13
to adwor...@googlegroups.com
Hello Roelf,


Absolutely (provided you use the same ad group ID). This is known as "sparse updates" -- we recommend to only send the fields you are actually changing, and an ID to identify the object.


-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages