Set bids

Uses the cURL utility

The example shows how to implement custom bid management using the Bids.setAuto method. All keywords in the campaign are assigned a bid on search that is equal to the bid for the top position in Premium Placement plus an additional 10%, which guarantees that ads will be displayed in the highest position.

To use this example, specify the OAuth token and ID of the campaign where you are setting bids. For a request on behalf of an agency, also specify the client login.

curl \
  -H 'Authorization: Bearer TOKEN' \
  -H 'Client-Login: CLIENT_LOGIN' \
  -d '{ "method": "setAuto",
  "params": {
    "Bids": [{
      "CampaignId": CAMPAIGN_IDENTIFIER,
      "Position": "PREMIUMFIRST",      
      "IncreasePercent": 10,
      "Scope": [ "SEARCH" ],
      "CalculateBy" : "VALUE"
    }]
  }
}' https://api.direct.yandex.com/json/v5/bids
Note. For cURL in Windows, replace all single quotes with double quotes, and escape double quotes in JSON code. For example: -d "{\"method\"...