> ## Documentation Index
> Fetch the complete documentation index at: https://developers.criteo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# /2025-01/retail-media/line-items/{id}/keywords/set-bid

> Set bid overrides for associated keywords to the given line item in bulk



## OpenAPI

````yaml https://api.criteo.com/2025-01/retailmedia/open-api-specifications.json post /2025-01/retail-media/line-items/{id}/keywords/set-bid
openapi: 3.0.1
info:
  title: Criteo API
  description: Criteo API - RetailMedia
  version: 2025-01
servers:
  - url: https://api.criteo.com
security:
  - oauth: []
tags:
  - name: Accounts
  - name: Analytics
  - name: Audience
  - name: Balance
  - name: Campaign
  - name: Gateway
paths:
  /2025-01/retail-media/line-items/{id}/keywords/set-bid:
    post:
      tags:
        - Campaign
      summary: /2025-01/retail-media/line-items/{id}/keywords/set-bid
      description: Set bid overrides for associated keywords to the given line item in bulk
      operationId: SetKeywordBids
      parameters:
        - name: id
          in: path
          description: ID of the line item
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetBidsModelRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceOutcome'
      security:
        - oauth:
            - RetailMedia_Campaign_Manage
components:
  schemas:
    SetBidsModelRequest:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/SetBidsModelResource'
      additionalProperties: false
      description: >-
        Request object to set bid overrides for keywords associated with a line
        item
    ResourceOutcome:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/RmcaCommonProblem'
          nullable: true
          readOnly: true
        warnings:
          type: array
          items:
            $ref: '#/components/schemas/RmcaCommonProblem'
          nullable: true
          readOnly: true
      additionalProperties: false
      description: Outcome object containing errors and warnings.
    SetBidsModelResource:
      type: object
      properties:
        attributes:
          $ref: '#/components/schemas/SetBidsModel'
        id:
          type: string
          nullable: true
        type:
          type: string
          nullable: true
      additionalProperties: false
      description: Resource object containing keywords and their associated bid overrides
    RmcaCommonProblem:
      type: object
      properties:
        code:
          type: string
          description: A machine-readable  error code, expressed as a string value.
          nullable: true
        detail:
          type: string
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem
          nullable: true
        instance:
          type: string
          description: A URI that identifies the specific occurrence of the problem.
          nullable: true
        source:
          type: object
          additionalProperties:
            type: string
          description: >-
            A machine-readable structure to reference to the exact location(s)
            causing the error(s)
          nullable: true
        stackTrace:
          type: string
          nullable: true
        status:
          type: integer
          description: The problem's HTTP Status code.
          format: int32
          nullable: true
        title:
          type: string
          description: A short human-readable description of the problem type
          nullable: true
        traceId:
          type: string
          description: The request correlation ID this problem comes from.
          nullable: true
        type:
          enum:
            - unknown
            - access-control
            - authentication
            - authorization
            - availability
            - deprecation
            - quota
            - validation
          type: string
          description: The problem's category.
          nullable: true
      additionalProperties: {}
      description: Common problem object.
    SetBidsModel:
      type: object
      properties:
        keywords:
          type: array
          items:
            $ref: '#/components/schemas/SetBidModel'
          nullable: true
      additionalProperties: false
      description: Data model containing keywords and their associated bid overrides
    SetBidModel:
      type: object
      properties:
        bid:
          type: number
          format: double
          nullable: true
        phrase:
          maxLength: 255
          minLength: 0
          type: string
          nullable: true
      additionalProperties: false
      description: A single keyword and associated bid override
  securitySchemes:
    oauth:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://api.criteo.com/oauth2/token
          scopes: {}
        authorizationCode:
          authorizationUrl: https://api.criteo.com/oauth2
          tokenUrl: https://api.criteo.com/oauth2/token
          scopes: {}

````