> ## 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.

# [Campaigns] Update Campaign Bids

export const EndpointBadge = ({method = "GET", children}) => {
  const METHOD_STYLES = {
    GET: {
      bg: "mint-bg-[#2AB673]"
    },
    POST: {
      bg: "mint-bg-[#3064E3]"
    },
    PUT: {
      bg: "mint-bg-[#C28C30]"
    },
    PATCH: {
      bg: "mint-bg-[#DA622B]"
    },
    DELETE: {
      bg: "mint-bg-[#CB3A32]"
    },
    API: {
      bg: "mint-bg-black"
    }
  };
  const key = method.toUpperCase();
  const styles = METHOD_STYLES[key] ?? METHOD_STYLES.API;
  return <div className="relative mt-7">
      <span className={`absolute -top-2 -left-2 z-10 ${styles.bg} text-white px-2.5 py-0.5 rounded-full text-xs font-bold tracking-wide`}>
        {key}
      </span>
      {children}
    </div>;
};

## **Update Bid Target For A Campaign**

Bid targets can be updated by making a `PUT` call to the campaign bids endpoint. The payload should be an array of bid changes, each specifying a `campaignId` and a `bidValue`.

<EndpointBadge method="put">
  ```http theme={null}
  https://api.criteo.com/legacy/marketing/v1/campaigns/bids
  ```
</EndpointBadge>

<CodeGroup>
  ```bash cURL theme={null}
  curl --request PUT \
    --url https://api.criteo.com/legacy/marketing/v1/campaigns/bids \
    --header 'Accept: application/json' \
    --header 'Content-Type: text/json' \
    --data '[{"campaignId":1234,"bidValue":2},{"campaignId":4,"bidValue":1.5}]'
  ```
</CodeGroup>

The API will return an array of campaigns representing the updated state:

<CodeGroup>
  ```json JSON expandable theme={null}
  [
    {
      campaignType: 'LowerFunnel',
      advertiserName: 'Advertiser US',
      categories: [],
      budgetId: 99999,
      campaignId: 1234,
      campaignName: 'Web Conversion - Retargeting',
      advertiserId: 1,
      campaignStatus: 'Running',
      campaignBid: { 
        bidValue: 2.00,
        bidCurrency: 'USD',
        bidType: 'CPC'
      } 
    },
    {
      campaignType: 'MidFunnel',
      advertiserName: 'Advertiser US',
      categories: [],
      budgetId: 99998,
      campaignId: 5678,
      campaignName: 'Web Consideration - Similar Audience',
      advertiserId: 1,
      campaignStatus: 'Running',
      campaignBid: { 
        bidValue: 1.50,
        bidCurrency: 'USD',
        bidType: 'CPC'
      } 
    }
  ]
  ```
</CodeGroup>

***

**What’s Next**

Learn about Category-Level Bidding

* [What Is Category-Level Bidding?](/marketing-solutions/v2020.07/docs/category-level-bidding)
