Setting bids
Uses the cURL utility
The example shows how to implement custom bid management using the KeywordBids.setAuto method. All keywords in the campaign are assigned a bid on search that is equal to the bid for the traffic volume of 75 plus 10%, which corresponds to premium impressions.
To use this example, specify the OAuth token and ID of the campaign where you are setting bids. If you're submitting a request on behalf of an agency, be sure to include the client's login.
curl \
-H 'Authorization: Bearer TOKEN' \
-H 'Client-Login: CLIENT_LOGIN' \
-d '{ "method": "setAuto",
"params": {
"KeywordBids": [{
"CampaignId": CAMPAIGN_ID,
"BiddingRule": {
"SearchByTrafficVolume": {
"TargetTrafficVolume": 75,
"IncreasePercent": 10
}
}
}]
}
}' https://api.direct.yandex.com/json/v5/keywordbids
Note
For cURL in Windows, replace all single quotes with double quotes, and escape double quotes in JSON code. For example: -d "{\"method\"
...
Was the article helpful?
Previous