How to overwrite keyword bidding strategy

40 views
Skip to first unread message

ferry Ardhana

unread,
Oct 21, 2015, 9:08:18 AM10/21/15
to AdWords API Forum
Hi All,

I try to overwrite (change) bidding strategy for particular keyword.
Previously, the keyword's bidding strategy is inherit from campaign's (Auto). But now, for some reason I want to change it only for particular keyword.

This is screenshot how this process is accomplished via adwords web:


And this is what i've try using python lib:


ad_group_criterion_service = client.GetService(

    'AdGroupCriterionService', version='v201509')


# Construct operations and update bids.


operations = [{

    'operator': 'SET',

    'operand': {

        'xsi_type': 'BiddableAdGroupCriterion',

        'adGroupId': ad_group_id,

        'criterion': {

            'id': criterion_id,

        },

        'biddingStrategyConfiguration': {

            'biddingStrategyType': 'MANUAL_CPC',

            'bids': [

                {

                    'xsi_type': 'CpcBid',

                    'bid': {

                        'microAmount': '26000000000'

                    }

                }

            ]

        }

    }

}]

ad_group_criteria = ad_group_criterion_service.mutate(operations)


But i've receive an error: Server raised fault: 
'[BiddingErrors.CAMPAIGN_BIDDING_STRATEGY_CANNOT_BE_OVERRIDDEN @ operations[0].operand.biddingStrategyConfiguration.biddingStrategyType; trigger:'MANUAL_CPC']'

Please help me, how we can done the process via API?


Best Regards,
 

Anthony Madrigal

unread,
Oct 21, 2015, 4:06:04 PM10/21/15
to AdWords API Forum
Hi,

It does appear like you are doing anything wrong in this code. Could you please reply privately to author the adgroup and keyword Ids from this operation?

Thanks,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages