Open the Conversions API Gateway Shell https://<private-computation-infrastructure.instance.url>/hub/shell
Run the following commands:
a. config read Kinesis
{ "PUBLISH_TO_KINESIS" : true, "BATCH_PUBLISH_PERIOD" : 1000, "BATCHING_ENABLED" : true, "FIREHOSE_DELIVERY_STREAM_NAME" : "cb-data-ingestion-stream-<TAG>", "AWS_REGION" : "<AWS REGION>" }
For AWS_REGION
, it should be lower case and formatted, for example “us-west-2”.
b. config read Athena
{ "AWS_REGION" : "<AWS REGION>", "CATALOG_NAME" : "AwsDataCatalog", "DATABASE_NAME" : "mpc-events-db-<TAG>", "TABLE_NAME" : "fb_pc_data_<TAG WITH UNDERSCORE>", "QUERY_RESULTS_S3_BUCKET_PATH" : "s3://fb-pc-data-<TAG>/query-results/", "ID_FIELDS" : "user_data.device_id,user_data.email" "USE_MULTIKEY" : false, "MULTIKEY_ID_FIELDS":"user_data.device_id|id_device_id,user_data.email|id_email,user_data.processed_client_ip_address|id_ip" }
For AWS_REGION
, it should be lower case and formatted, for example “us-west-2”.
For ID_FIELDS
c. config read CloudResources
{ "AWS_ACCESS_KEY" : "", "AWS_SECRET_KEY" : "", "AWS_SESSION_TOKEN" : "", "CONFIG_FILE_S3" : "s3://fb-pc-config-<TAG>/config.yml", "IMAGE_TAG" : "latest", "USE_IAM_USER_AUTH" : false }
{ "AWS_ACCESS_KEY" : "<YOUR AWS ACCESS KEY>", "AWS_SECRET_KEY" : "<YOUR AWS SECRET KEY>", "AWS_SESSION_TOKEN" : "", "CONFIG_FILE_S3" : "s3://fb-pc-config-<TAG>/config.yml", "IMAGE_TAG" : "latest", "USE_IAM_USER_AUTH" : false }
To help clients better troubleshoot issues and improve the product, it’s highly recommended to opt-in for sharing diagnostic data with Meta, for automatically uploading logs to Meta within 5 minutes after a failed run.
You can open the Environment tab and find the setting “Automatic diagnostic data sharing”, then click the Edit button to update the setting.
Note that:
More details can be found in Sharing Diagnostic Data with Meta.
Now you are ready to use Private Computation products. Follow the section below to run Private Lift, or go to this section to run Private Attribution.
Go to Lift Report UI (sample URL: https://business.facebook.com/ads/lift/report/?ad_study_id=<your ad_study_id>
) and select an MPC Conversion objective.
<your ad_study_id>
with your own study IDhttps://<private-computation-infrastructure.instance.url>/hub/pcs/calculation/<your ad_study_id>/<your ad_study_name>
<data bucket>/query-results/fbpcs_instances_<studyId>_<postfix>
. This will be a key resource to monitor and use for debugging purposes in case any issue occurs.After the computation is complete, click on “View Results” to navigate to Lift UI. It can take up to 2 days for the results to populate.
Request the following information if your Meta representative hasn’t provided them to you:
<data bucket>/query-results/fbpcs_instances_<ddataset id>_<ddataset timestamp>_<dpostfix>
. This will be a key resource to monitor and use for debugging purposes in case any issue occurs.Ask your Meta representative for the results.