Skip to main content
Version: v3

Upsert ad campaign group

PUT 

/ad-publishing/linkedin/ads

Create or update a LinkedIn ad campaign group with campaigns and ads

Request

Version stringrequired

API Version

Available optionsv3
application/json

Bodyrequired

    idstring

    Internal ID

    locationIdstringrequired

    Location ID

    budgetobject

    Campaign group budget

    adCampaignsobject[]

    Child ad campaigns

    adBudgetOptimizationstring

    Ad budget optimization mode

    Available optionsMAXIMUM_DELIVERYCOST_CAP
    objectiveTypestring

    Campaign group objective

    Available optionsLEAD_GENERATIONWEBSITE_VISIT
    namestring

    Campaign group name

    adCampaignGroupIdstring

    LinkedIn campaign group resource ID

    publishingStatusstring

    Publishing status

    Available optionsDRAFTSCHEDULEDPUBLISHEDPUBLISHINGFAILEDIN_REVIEWPAUSEDARCHIVEDWITH_ISSUESREJECTED
    linkedInAdAccountIdstring

    LinkedIn ad account identifier

    unpublishedChangesboolean

    Whether the campaign group has unpublished changes

    metaobject

    Additional metadata

    linkedInErrorstring

    LinkedIn API error message

    customValueMappingsobject

    User-provided overrides for custom_values merge tags used in ad copy

application/json

The saved campaign group, same shape as GET /linkedin/ads/{adId}

Schema
    idstringrequired

    Campaign group identifier

    namestringrequired

    Campaign group name

    locationIdstringrequired

    Location identifier

    linkedInAdAccountIdstringrequired

    LinkedIn ad account id the group belongs to

    adCampaignGroupIdstring

    LinkedIn campaign group id, set once published

    publishingStatusstringrequired

    Publishing status

    linkedInErrorstringrequired

    Publish or review error from LinkedIn. Empty string when there is none.

    objectiveTypestringrequired

    Campaign objective

    Available optionsLEAD_GENERATIONWEBSITE_VISIT
    adBudgetOptimizationstring

    Budget optimisation mode

    Available optionsMAXIMUM_DELIVERYCOST_CAP
    budgetobjectrequired

    Budget configuration

    adCampaignsobject[]required

    Ad campaigns with their ads

    metaobject

    Ancillary metadata

    unpublishedChangesboolean

    Whether the group has edits not yet published. Absent on reads that have never been edited; set by the upsert.

    createdBystringrequired

    User who created the group

    updatedBystringrequired

    User who last updated the group

    createdAtstringrequired

    Created at

    updatedAtstringrequired

    Updated at