INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE

55 views
Skip to first unread message

la...@lockon-vn.com

unread,
Aug 21, 2017, 5:26:49 AM8/21/17
to AdWords API Forum
Hello

I have set target roas bidding configuration for campaign service and it throw this error. Please help me overcome this. Any association are appreciate.

TargetRoasBiddingScheme biddingScheme = new TargetRoasBiddingScheme();
// Optionally set additional bidding scheme parameters.
biddingScheme.setTargetRoas(Double.valueOf(campaignList.getTargetRoasBiddingBidValue()));

// Set bidding strategy (required).
biddingStrategyConfiguration.setBiddingScheme(biddingScheme);



Shwetha Vastrad (AdWords API Team)

unread,
Aug 21, 2017, 2:05:36 PM8/21/17
to AdWords API Forum
Hi, 

Using a portfolio-only bidding strategy type or scheme in the context of a standard strategy generates a BiddingErrors error with reason INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE. To use the TargetRoasBiddingScheme, you need to create a SharedBiddingStrategy object using BiddingStrategyService and set the biddingStrategyId in the BiddingStrategyConfiguration. The UsePortfolioBiddingStrategy Java example shows how to add a portfolio bidding strategy and use it to construct a campaign. Example code in other languages can be found here

Regards,
Shwetha, AdWords API Team.

la...@lockon-vn.com

unread,
Aug 24, 2017, 5:13:45 AM8/24/17
to AdWords API Forum
Thank you. But how can I setup portfolio at adgroup level. It seems we can't set biddingStrategyId in biddingStrategyConfiguration at level group since version v201705. Can you help me? Thank you.

Shwetha Vastrad (AdWords API Team)

unread,
Aug 24, 2017, 2:01:17 PM8/24/17
to AdWords API Forum
Hi,

Overriding bidding strategies is supported only in versions earlier than v201705. As you observed, overriding the strategy in the configuration at ad group and keyword levels is no longer available starting in v201705. The bidding strategy can only be set at the campaign level. You can set the bid at the AdGroup and keyword level directly using AdGroupService or AdGroupCriterionService. The AdGroups and keywords will inherit the biddingStrategyType, biddingStrategyId, and biddingScheme from the parent Campaign. The bid that matches the selected biddingStrategyType will be used. This guide provides more details on his change. 
Reply all
Reply to author
Forward
0 new messages