Model sync (Reverse ETL) from BigQuery to LinkedIn Ads
Model sync (Reverse ETL) from BigQuery to LinkedIn Ads
Model sync (Reverse ETL) from BigQuery to LinkedIn Ads
This example creates a Model Sync from BigQuery to LinkedIn Ads using the Polytomic Terraform provider.
Prerequisites:
Configure the Polytomic provider in your Terraform script:
Define var.polytomic_api_key in your variables file or pass it at apply time.
🤝 Partner keys
If you are using a partner key, set
partner_keyon the provider and setorganizationon each resource that targets a specific organization.
Define a resource for the BigQuery connection:
This example loads the service account key with the file function.
Any string value or variable works as well.
Create the LinkedIn Ads Connection through Polytomic’s OAuth flow so Polytomic can request the required LinkedIn Ads API permissions on your behalf. Use the admin console or embedded authentication.
Once the Connection exists, reference it from Terraform with the Polytomic LinkedIn Ads datasource. Pass the Connection ID from the admin console:
Define a model that queries BigQuery:
Define a resource that syncs the model to a LinkedIn Ads audience:
Initialize Terraform and apply:
Review the planned changes and confirm to proceed.
For more details, see the Polytomic Terraform provider documentation.