[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[[["\u003cp\u003eCortex Framework Data Foundation integrates with LiveRamp, a data collaboration platform, to enhance marketing strategies by enabling data analysis, combination with other sources, and the use of AI for deeper insights.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003econfig.json\u003c/code\u003e file is used to configure the connection settings for LiveRamp data sources, including parameters for enabling the LiveRamp deployment and specifying the CDC dataset.\u003c/p\u003e\n"],["\u003cp\u003eCortex Framework facilitates Identity Resolution through LiveRamp's RampID, which allows businesses to identify and consolidate records across multiple systems using PII data, leading to more targeted marketing.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003erampid_lookup_input\u003c/code\u003e and \u003ccode\u003erampid_lookup\u003c/code\u003e BigQuery tables are used to manage the RampID Lookup process, where the input table contains customer PII data and the output table stores the corresponding RampIDs.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication with LiveRamp requires obtaining a Client ID and Client Secret, which are stored in Secret Manager, and Cloud Composer connections are necessary for transferring data through the LiveRamp API.\u003c/p\u003e\n"]]],[],null,["# Integration with LiveRamp\n=========================\n\nThis page describes the required configurations to bring data from LiveRamp\nas a data source of the marketing workload of Cortex Framework Data Foundation.\n\nLiveRamp is a data collaboration platform that helps businesses\nconnect, control, and activate their data to improve customer experiences\nand drive better business outcomes. Cortex Framework offers the\ntools and platform to analyze it, combine it with other data sources, and\nuse AI to gain deeper insights and optimize your marketing strategy.\n\nThe following diagram describes how LiveRamp data source is\navailable through the marketing workload of Cortex Framework Data Foundation:\n\n**Figure 1**. LiveRamp data source. **Note:** For accessing configuration files, analytical views and models for the LiveRamp data source, see the [data source directory](https://github.com/GoogleCloudPlatform/cortex-data-foundation/tree/main/src/marketing/src/LiveRamp).\n\nConfiguration file\n------------------\n\nThe [`config.json`](https://github.com/GoogleCloudPlatform/cortex-data-foundation/blob/main/config/config.json) file configures the settings required to connect to data sources for transferring\ndata from various workloads. This file contains the following parameters for LiveRamp: \n\n \"marketing\": {\n \"deployLiveRamp\": true,\n \"LiveRamp\": {\n \"datasets\": {\n \"cdc\": \"\"\n }\n }\n }\n\nThe following table describes the value for each LiveRamp parameter:\n\nAPI connection\n--------------\n\nCortex Framework Data Foundation enables Identity Resolution by\n[integrating with LiveRamp](https://docs.liveramp.com/identity/en/identity-resolution.html).Cortex Frameworks can perform\n[RampID lookup](https://docs.liveramp.com/connect/en/rampid-methodology.html),\nwhich allow businesses to identify known audiences or customer segments from\ntheir CRM systems.\n\nRampID is an identifier generated by LiveRamp's API using Personally\nIdentifiable Information (PII) like\nemail, phone number, and name. This RampID allows businesses to identify and\nconsolidate records across multiple systems, such as audiences of\ndifferent campaigns. By integrating with LiveRamp, businesses can\nimprove their ability to identify and target their audiences, leading to\nmore effective and personalized marketing campaigns.\n\n[LiveRamp Identity Resolution Retrieval API](https://developers.liveramp.com/rampid-api/reference/getting-started)\nlets businesses to programmatically resolve PII data to\nindividuals. Cortex Framework uses LiveRamp's\n[Lookup Endpoint](https://developers.liveramp.com/rampid-api/docs/the-lookup-endpoint-1)\nby sending hashed PII data over the API call.\n\nInput and output tables\n-----------------------\n\nAfter [deploying Cortex Framework](/cortex/docs/deployment),\nthe system creates the following two BigQuery tables in\nrelevant dataset provided in `config.json`.\n\n### `rampid_lookup_input` table\n\nThe `rampid_lookup_input` table is the input for the RampID Lookup process.\n\nThe `rampid_lookup_input` table needs to be populated on a periodic basis\n(based on your business needs) with your customer's PII details like.\nCortex Framework does not provide an automated way to do so, but it\nprovides a sample script [ddls/samples/populate_rampid_lookup_input.sql](https://github.com/GoogleCloudPlatform/cortex-data-foundation/tree/main/src/marketing/src/LiveRamp/src/ddls/samples/populate_rampid_lookup_input.sql) that shows how you could populate this table using data in your\nSalesforce system already deployed with Cortex Framework. You can use\nthis file as a guide in case your data comes from another system.\n\nEnsure you don't have duplicate entries in the `rampid_lookup_input` table\n(for example, the same individual is present multiple times with same PII information,\neven if their `ID` might be different). Cortex Framework Lookup DAG would\nfail if a segment contains many duplicate entries. This is enforced by\nLiveRamp APIs.\n\n### The `rampid_lookup` table\n\nThe `rampid_lookup` table is an output table containing RampIDs for each\nsegment in the input record. LiveRamp by design does not allow to map RampID\nto an individual record.\n\nLiveRamp RampIDs [can change over a period of time](https://docs.liveramp.com/connect/en/interpreting-rampid,-liveramp-s-people-based-identifier.html#idm45078819449264_body),\nfor the same individual. This means, you need to perform a fresh lookup for\nalready processed data from time to time. Cortex Framework provides a\nsample script [ddls/samples/clean_up_segment_matching.sql](https://github.com/GoogleCloudPlatform/cortex-data-foundation/tree/main/src/marketing/src/LiveRamp/src/ddls/samples/clean_up_segment_matching.sql)\nthat shows how you can do this at a segment level. This way, you can reset\na whole segment, and the system would perform a lookup for that segment and\ngive you up to date RampIDs.\n\nThe `rampid_lookup` (output table) might contain slightly less number of\nrecords compared to the input table. This is by design, as\nCortex Framework tries to debug the input records using PII details\nto ensure LiveRamp API lookup does not fail.\n\nAccount authentication\n----------------------\n\n1. [Contact LiveRamp](https://liveramp.com/contact/) to obtain authentication credentials. This should include **Client ID** and **Client Secret**.\n2. Create a secret using Secret Manager with name\n `cortex-framework-liveramp`, and use the following as value. See instructions\n in [Secret-Manager](/secret-manager/docs/create-secret-quickstart) documentation.\n\n {\n 'client_id':'\u003cvar translate=\"no\"\u003eCLIENT_ID\u003c/var\u003e',\n 'client_secret':'\u003cvar translate=\"no\"\u003eCLIENT_SECRET\u003c/var\u003e',\n 'grant_type':'client_credentials'\n }\n\n Replace the following:\n - '\u003cvar translate=\"no\"\u003eCLIENT_ID\u003c/var\u003e' with the client ID obtained from step 1.\n - '\u003cvar translate=\"no\"\u003eCLIENT_SECRET\u003c/var\u003e' with the client secret obtained from step 1.\n\nCloud Composer connections\n--------------------------\n\nCreate the following connections in Cloud Composer. See more details in the\n[Manage Airflow connections documentation](/composer/docs/how-to/managing/connections).\n\nConfiguration\n-------------\n\nThe `config.ini` file controls some behavior of the Cloud Composer DAG,\nas well as how LiveRamp APIs are consumed. Configure the [`LiveRamp/src/pipelines/config.ini`](https://github.com/GoogleCloudPlatform/cortex-data-foundation/tree/main/src/marketing/src/LiveRamp/src/pipelines/config.ini) file\nbased on your needs. While these parameters are already described in the file,\npay attention to `liveramp_api_base_url`. This parameter by default points\nto LiveRamp's production API URL, for testing purposes, you might need to\npoint it to the staging version, depending on your setup.\n\nWhat's next?\n------------\n\n- For more information about other data sources and workloads, see [Data sources and workloads](/cortex/docs/data-sources-and-workloads).\n- For more information about the steps for deployment in production environments, see [Cortex Framework Data Foundation deployment prerequisites](/cortex/docs/deployment-prerequisites)."]]