Skip to main content
All CollectionsIntegrations
Creating a “Video Views” Custom Object in Salesforce
Creating a “Video Views” Custom Object in Salesforce
Updated over a week ago

Creating the Custom Object

  1. Login to Salesforce (Admin role required)

  2. Navigate to Setup and under Create->Objects click on New Custom Object

  3. Update the form as per the below -

    1. Label - Video

    2. Plural Label - Videos

    3. Under Optional Features, select the following boxes - Allow Reports, Track Field History

    4. Under Search Status select the Allow Search box

Creating the Custom Object Fields

Data Group

Data Type

Description

SF Data Type

User Data

AnyClip User ID

AnyClip generated user ID

Text(52)

External User ID

Customer’s user ID

Lookup (Contact)

Video Attributes

Video Name/ Event Name

The title of the video

Text(100)

Video ID/ Event ID

The unique AnyClip internal video ID

Text(52)

Video GUID/ Live External Identifier

The unique Customer’s external video ID

Text(52)

Video Creation Date/ Live Event Start Time

The date in which this video was created

Date

Watch Name

The name of the Watch the video was part of (null if not part of a watch)

Text(52)

Channel Name

The name of the Channel the video was part of (null if not part of a channel)

Text(52)

Playback Data

Session ID

The unique AnyClip session ID that is associated every time the player loads

Text(52)

Playback/live date time

The date when this video was viewed (playback of the first view of this video)

Date

Views

The number of times a user watched this video

Number(5, 0)

Minutes Viewed

The total number of minutes a user watched this video

Number(5, 0)

Percentage Viewed

The percentage of the video that the user watched (this metric is based on Quartiles: 0%, 25%, 50%, 75%, 100%)

Percent(5, 0)

Unmute

The number of time unmute was pressed

Number(5, 0)

Clip Click

The number of time elements of the player were clicked

Clip Seek

The number of time the seek bar was used

Player Full Screen

The number of time the full screen button was pressed

Likes

The number of time the like button was pressed

shares

The number of time the video was shared

Comment Add

The number of comments added

Engage Click CTA

The number of time the links in the Engage+ were clicked

Engage Click Open

The number of time the Engage+ was opened by the user

Engage Click Close

The number of time the Engage+ was closed by the user (pressed the X)

Placement Attributes

Player ID

The Unique Anyclip Player ID

Text(52)

Player Name

The name of the video player

Text(100)

Domain

The Domain URL where this video was viewed

URL(255)

Page URL

The web page URL where this video was viewed

URL(255)

Video Intelligence

Content Categories

The content categories associated with this video (based on IAB categories)

Long Text Area(32768)

People

The People that are appearing in this video

Long Text Area(32768)

Brands

The Brands that are appearing in this video

Long Text Area(32768)

Labels

The manual metadata labels that are tied to this video

Long Text Area(32768)

Brand Safety

The detected brand safety categories in this video

Long Text Area(32768)

Data Dump

JSON records will be created by AnyClip per user, per session, per video, per channel and can be loaded to a location of choice (Azure Blob for example) at a requested schedule and cadence (daily / hourly). These JSONs can then be imported into your Salesforce instance to update the "Video Views" custom object as described above

See JSON Sample below -

{

"anyclip_user_id__c" : "0b794a09844a0kjlkj0313ca0f2e291294",

"contact__c" : "2843033",

"name" : "14 - ATTD22;53;916;Sleep and diabetes_default",

"video_id__c" : "gbcegobzlfaueuswjm4faslbkjgtallr",

"video_guid__c" : "0DC89YABRVK8PIaRM0 - q",

"video_creation_date__c" : "2022-05-24",

"session_id__c" : "ezT0udwTFSugjyygS7JCAtZiwUKnPU2a",

"player_id__c" : "0016900002rdZtuAAE_W6504",

"player_name__c" : "KenesGroupDemoVideos",

"domain__c" : "videomanager.anyclip.com",

"watch_name__c" : "gfgf",

"channel_name__c" : "demo123",

"content_categories__c" : "Medical Health, Diseases and Conditions",

"labels__c" : null

"people__c" : null,

"brands__c" : null,

"brand_safety__c" : null,

"playback_date_time__c" : "2022-08-17T03:15:58Z",

"views__c" : 1.0,

"minutes_watched__c" : 8.0,

"percentage_viewed__c" : 25,

"unmute" : 0,

"clip_click" : 1,

"clip_seek" : 1,

"player_full_screen" : 0,

"likes" : 0,

"shares" : 1,

"comment_add" : 2,

"engage_click_cta" : 0,

"engage_click_open" : 0,

"engage_click_close" : 0

}

Did this answer your question?