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

# Catalog

> Browse our comprehensive catalog of bidstream integrations.

export const BadgeRowCenter = ({label, children}) => {
  return <div style={{
    display: 'flex',
    justifyContent: 'space-between',
    alignItems: 'center',
    marginBottom: '0.5rem'
  }}>
      <span style={{
    fontSize: '0.625rem',
    color: '#6b7280',
    textTransform: 'uppercase',
    fontWeight: '500',
    letterSpacing: '0.05em'
  }}>
        {label}
      </span>
      {children}
    </div>;
};

export const BadgeRow = ({label, children}) => {
  return <div style={{
    display: 'flex',
    justifyContent: 'space-between',
    alignItems: 'flex-start',
    marginBottom: '0.5rem'
  }}>
      <span style={{
    fontSize: '0.625rem',
    color: '#6b7280',
    textTransform: 'uppercase',
    fontWeight: '500',
    letterSpacing: '0.05em'
  }}>
        {label}
      </span>
      {children}
    </div>;
};

export const BadgeContainer = ({children}) => {
  return <div style={{
    display: 'flex',
    gap: '0.25rem',
    flexWrap: 'wrap',
    justifyContent: 'flex-end',
    minWidth: '0',
    flex: '1'
  }}>
      {children}
    </div>;
};

export const CapabilityBadge = ({capability}) => {
  const getBadgeStyle = capability => {
    switch (capability) {
      case 'Event Collection':
        return {
          background: '#EFDFC8',
          color: '#1A1A1A'
        };
        --clay;
      case 'Cohort Activation':
        return {
          background: '#EFDFC8',
          color: '#1A1A1A'
        };
        --clay;
      case 'Campaign Optimization':
        return {
          background: '#EFDFC8',
          color: '#1A1A1A'
        };
        --clay;
      case 'Identity Signal':
        return {
          background: '#EFDFC8',
          color: '#1A1A1A'
        };
        --clay;
      case 'Contextual Signal':
        return {
          background: '#EFDFC8',
          color: '#1A1A1A'
        };
        --clay;
      case 'Connectivity':
        return {
          background: '#EFDFC8',
          color: '#1A1A1A'
        };
        --clay;
      case 'Routing':
        return {
          background: '#EFDFC8',
          color: '#1A1A1A'
        };
        --clay;
      case 'Data Collaboration':
        return {
          background: '#EFDFC8',
          color: '#1A1A1A'
        };
        --clay;
      default:
        return {
          background: '#A7B3D9',
          color: '#1A1A1A'
        };
        --haze;
    }
  };
  const style = getBadgeStyle(capability);
  return <span style={{
    display: 'inline-block',
    padding: '0.125rem 0.375rem',
    borderRadius: '0.25rem',
    fontSize: '0.625rem',
    background: style.background,
    color: style.color,
    fontWeight: '500',
    whiteSpace: 'nowrap'
  }}>
      {capability}
    </span>;
};

export const EnvironmentBadge = ({environment}) => {
  const getBadgeStyle = environment => {
    switch (environment) {
      case 'Web':
        return {
          background: '#F9C1A8',
          color: '#1A1A1A'
        };
        --peach;
      case 'iOS':
        return {
          background: '#F9C1A8',
          color: '#1A1A1A'
        };
        --peach;
      case 'Android':
        return {
          background: '#F9C1A8',
          color: '#1A1A1A'
        };
        --peach;
      case 'CTV':
        return {
          background: '#F9C1A8',
          color: '#1A1A1A'
        };
        --peach;
      case 'API Direct':
        return {
          background: '#F9C1A8',
          color: '#1A1A1A'
        };
        --peach;
      default:
        return {
          background: '#A7B3D9',
          color: '#1A1A1A'
        };
        --haze;
    }
  };
  const style = getBadgeStyle(environment);
  return <span style={{
    display: 'inline-block',
    padding: '0.125rem 0.375rem',
    borderRadius: '0.25rem',
    fontSize: '0.625rem',
    background: style.background,
    color: style.color,
    fontWeight: '500',
    whiteSpace: 'nowrap'
  }}>
      {environment}
    </span>;
};

export const DirectionBadge = ({direction}) => {
  const getBadgeStyle = direction => {
    switch (direction) {
      case 'Bidirectional':
        return {
          background: '#FA8784',
          color: '#1A1A1A'
        };
        --tomato;
      case 'Destination':
        return {
          background: '#FA8784',
          color: '#1A1A1A'
        };
        --tomato;
      case 'Source':
        return {
          background: '#FA8784',
          color: '#1A1A1A'
        };
        --tomato;
      default:
        return {
          background: '#A7B3D9',
          color: '#1A1A1A'
        };
        --haze;
    }
  };
  const style = getBadgeStyle(direction);
  return <span style={{
    display: 'inline-block',
    padding: '0.125rem 0.375rem',
    borderRadius: '0.25rem',
    fontSize: '0.625rem',
    background: style.background,
    color: style.color,
    fontWeight: '500'
  }}>
      {direction}
    </span>;
};

# Bidstream Integrations

<CardGroup cols={2}>
  <Card title="" href="/integrations/advertising/bidstream/prebid">
    <div style={{ display: 'flex', alignItems: 'center', marginBottom: '1rem' }}>
      <div style={{ width: '32px', height: '32px', marginRight: '0.75rem', display: 'flex', alignItems: 'center', justifyContent: 'center', flexShrink: 0 }}>
        <img src="https://mintcdn.com/permutive/pNhz39ducTVcQczh/images/integrations/logos/prebid.svg?fit=max&auto=format&n=pNhz39ducTVcQczh&q=85&s=f7b4dcb74c21ec06e0cb6c77ff3bd731" alt="Prebid" style={{ maxWidth: '32px', maxHeight: '32px', display: 'block', backgroundColor: '#f3f4f6', borderRadius: '4px', padding: '2px' }} width="400" height="400" data-path="images/integrations/logos/prebid.svg" />
      </div>

      <h3 style={{ margin: 0, fontSize: '1.125rem', fontWeight: '600' }}>Prebid</h3>
    </div>

    <div style={{ marginBottom: '1rem' }}>
      <BadgeRowCenter label="Direction">
        <DirectionBadge direction="Bidirectional" />
      </BadgeRowCenter>

      <BadgeRow label="Environment">
        <BadgeContainer>
          <EnvironmentBadge environment="Web" />
        </BadgeContainer>
      </BadgeRow>

      <BadgeRow label="Capability">
        <BadgeContainer>
          <CapabilityBadge capability="Event Collection" />

          <CapabilityBadge capability="Cohort Activation" />

          <CapabilityBadge capability="Identity Signal" />
        </BadgeContainer>
      </BadgeRow>
    </div>

    <p style={{ margin: 0, fontSize: '0.875rem', color: '#6b7280', lineHeight: '1.5' }}>
      Prebid is an open-source header bidding solution that enables publishers to maximize revenue through real-time bidding.
    </p>
  </Card>

  <Card title="" href="/integrations/advertising/bidstream/aps">
    <div style={{ display: 'flex', alignItems: 'center', marginBottom: '1rem' }}>
      <div style={{ width: '32px', height: '32px', marginRight: '0.75rem', display: 'flex', alignItems: 'center', justifyContent: 'center', flexShrink: 0 }}>
        <img src="https://mintcdn.com/permutive/pNhz39ducTVcQczh/images/integrations/logos/aps.svg?fit=max&auto=format&n=pNhz39ducTVcQczh&q=85&s=4700d697873c7183681e574da7950692" alt="Amazon Publisher Services" style={{ maxWidth: '32px', maxHeight: '32px', display: 'block', backgroundColor: '#f3f4f6', borderRadius: '4px', padding: '2px' }} width="123" height="112" data-path="images/integrations/logos/aps.svg" />
      </div>

      <h3 style={{ margin: 0, fontSize: '1.125rem', fontWeight: '600' }}>Amazon Publisher Services</h3>
    </div>

    <div style={{ marginBottom: '1rem' }}>
      <BadgeRowCenter label="Direction">
        <DirectionBadge direction="Destination" />
      </BadgeRowCenter>

      <BadgeRow label="Environment">
        <BadgeContainer>
          <EnvironmentBadge environment="Web" />
        </BadgeContainer>
      </BadgeRow>

      <BadgeRow label="Capability">
        <BadgeContainer>
          <CapabilityBadge capability="Identity Signal" />
        </BadgeContainer>
      </BadgeRow>
    </div>

    <p style={{ margin: 0, fontSize: '0.875rem', color: '#6b7280', lineHeight: '1.5' }}>
      Amazon Publisher Services (APS) is a header bidding platform that helps publishers maximize revenue. Permutive activates identity signals in APS bid requests.
    </p>
  </Card>
</CardGroup>
