Get Campaign

Returns the full details of a single campaign by its ID, including budget, frequency cap, drug and diagnosis associations, management fee configuration, and custom fields.

Endpoint

GET

https://lifeapi.pulsepoint.com/RestApi/v2/account/{accountId}/campaigns/{campaignId}

Path Parameters

NameData TypeRequiredNotes
accountIdintegeryesThe ID of the account that owns the campaign
campaignIdintegeryesThe ID of the campaign to retrieve

Sample Request

GET https://lifeapi.pulsepoint.com/RestApi/v2/account/559145/campaigns/345678

Response Field List

NameData TypeNotes
idstringUnique campaign identifier
namestringCampaign name
typestringCampaign type (e.g. Regular)
descriptionstringCampaign description
statusstringCampaign status (e.g. Incomplete, Pending Approval, Active)
budgetCapnumberTotal budget cap for the campaign. null if not set
budgetStatusstringBudget status (e.g. Pending Approval). null if not set
createdAtstringISO 8601 timestamp of when the campaign was created
updatedAtstringISO 8601 timestamp of when the campaign was last updated
createdBystringID of the user who created the campaign
updatedBystringID of the user who last updated the campaign
advertiserobjectAdvertiser associated with this campaign
advertiser.idstringAdvertiser ID
advertiser.namestringAdvertiser name
drugobjectPrimary drug associated with this campaign. {} if not set
drug.productNdcstringNDC code of the drug. null if not set
drug.brandNamestringBrand name of the drug. null if not set
marketBasketDrugobjectMarket basket drug associated with this campaign. {} if not set
marketBasketDrug.productNdcstringNDC code of the market basket drug. null if not set
marketBasketDrug.brandNamestringBrand name of the market basket drug. null if not set
diagnosisobjectDiagnosis associated with this campaign. {} if not set
diagnosis.icd10CodestringICD-10 code for the diagnosis. null if not set
diagnosis.shortDescriptionstringShort description of the diagnosis. null if not set
frequencyCapobjectFrequency cap configuration for the campaign
frequencyCap.applyFrequencyCapbooleanWhether a frequency cap is applied
frequencyCap.timesnumberNumber of times an ad can be shown within the period. null if not set
frequencyCap.periodstringPeriod unit for frequency cap (e.g. day, week, month). null if not set
frequencyCap.hoursValuenumberNumber of hours for a custom frequency period. null if not set
frequencyCap.crossDevicestringCross-device frequency cap setting (e.g. Per Device). null if not set
managementFeeobjectManagement fee configuration
managementFee.typestringFee type (e.g. percentage_and_cpm). null if not set
managementFee.percentagenumberFee percentage. null if not set
managementFee.cpmnumberCPM fee amount. null if not set
customFieldsarrayList of custom field key-value pairs. [] if none set
customFields.fieldNamestringCustom field name
customFields.fieldValuestringCustom field value
creativeSeparationobjectCreative separation configuration
creativeSeparation.enabledbooleanWhether creative separation is enabled
creativeSeparation.campaignIdsarrayList of campaign IDs from which creatives are separated. [] if none set

Sample Response

{
  "id": "345678",
  "advertiser": {
    "id": "adv_987654321",
    "name": "Example Advertiser Inc."
  },
  "name": "Q1 2024 Brand Awareness Campaign",
  "type": "Regular",
  "drug": {
    "productNdc": "drug_456789",
    "brandName": "Example Drug Name"
  },
  "marketBasketDrug": {
    "productNdc": "mbd_789456",
    "brandName": "Market Basket Drug Name"
  },
  "diagnosis": {
    "icd10Code": "A234",
    "shortDescription": "Example Diagnosis"
  },
  "budgetCap": 50000.00,
  "frequencyCap": {
    "applyFrequencyCap": true,
    "times": 5,
    "period": "day",
    "hoursValue": 2,
    "crossDevice": "Per Device"
  },
  "description": "Campaign description with details about objectives and strategy",
  "budgetStatus": "Pending Approval",
  "managementFee": {
    "type": "percentage_and_cpm",
    "percentage": 25,
    "cpm": 2
  },
  "customFields": [
    {
      "fieldName": "Line Item Custom Field REST",
      "fieldValue": "line item field value"
    }
  ],
  "creativeSeparation": {
    "enabled": false,
    "campaignIds": []
  },
  "status": "Incomplete",
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-20T14:45:00Z",
  "createdBy": "user_789012",
  "updatedBy": "user_789012"
}

Errors

HTTP StatusErrorDescription
400Bad RequestInvalid query parameters
403ForbiddenInsufficient permissions to access this campaign
404Not FoundCampaign not found for the given account and campaign ID