PostgreSQL

On this page


Requirements

  • The Postgres database that you want to use must be accessible over the internet.
  • You must provide Search Ads 360 with a username or password for an account in the database with access to the table containing the data you would like to use.

Set up PostgreSQL as a data source

Apply a use case now

The following sections walk you through a single procedure to link a data source to a use case, such as audience or Floodlight conversion creation. To link the data source only, and apply a use case later, you can refer to Apply a use case later .

Customer Match

Through the "Audience manager" page

  1. Sign in to your Search Ads 360  account.
  2. Navigate to a sub-manager account, and then to the Google Ads client account .
  3. In the page menu, select Audience managerunder the Shared librarydrop-down.
    Note: If you already created a segment and skipped adding a data source then:
    1. Go to the Setupdropdown under “Tools & settings” and select Data manager.
    2. Select + Connect Product, then go to step 5.
  4. Select the plus button, and then select + Customer list.
  5. In the “Data source” card, select Connect a new data source.
    1. If you previously linked a data source from the Data manager screen that you want to use, choose Select an existing source.
  1. Select PostgreSQLfrom the list of data sources.
  2. Select Direct connection, then select Continue.
  3. Select the data type, then select Next.
  4. Enter your PostgreSQL database location, port, username, password, and database, then select  Connect.
  5. Enter the PostgreSQL schema and table (or view) that you want to use, then select Next. Learn how to Format your data for Customer Match.
  6. Optional: You can apply filters to define the audience segment that you’ll import. Learn more about using filters .
  7. To map fields, select the data source fields from the dropdown lists that match the destination fields.
  8. Optional: Apply transformations to your data.
  9. Select Next.
  10. Enter a name for this connection.
  11. Optional: Edit connection details .
  12. Select Finish.
  13. Enter a name for the segment, confirm policy compliance, then select Save and continue.

Learn more about Customer Match and audience segments .

Offline conversion import

Through the “Conversions” page

  1. Sign in to your Search Ads 360  account.
  2. Navigate to a sub-manager account .
  3. In the page menu, select Summaryunder the Conversionsdrop-down.
  4. Select + Create conversion action.
  5. Select Import.
  6. Select CRMs, files, or other data sources.
  7. Select a tracking method.
  8. In the “Data source” card, select Connect a new data source.
    1. If you previously linked a data source from the Data manager screen that you want to use, choose Select an existing source.
  9. Search and select PostgreSQLfrom the list of data sources.
  10. Select Direct connection, then select Continue.
  11. Read and accept the customer data policy, then select Continue.
  12. Select a category from the conversion goal list, then select Set up.
  13. Enter your PostgreSQL database location, port, username, password, and database, then select  Connect.
  14. Enter the PostgreSQL schema and table (or view) that you want to use, then select Next.
  15. Optional: You can apply filters to define the conversion events that you’ll import. This is important especially if you have multiple different conversion goals in the file you will be importing. Learn more about using filters .
  16. To map fields, select the data source fields from the drop-down lists that match the destination fields.
  17. Optional: Apply transformations to your data.
  18. Select Next.
  19. Enter a name for this connection.
  20. Optional: Edit connection details .
  21. Select Finish.
  22. Select Save and continue.

Apply a use case later

In this type of setup, you complete each part of the connection at different times. This can be useful when you are ready to link a data source, but you are not ready to set up your use case, for example, you aren’t ready to create a customer list.

Example

Consider the following scenario:

  • Step 1: Dana is an engineer who manages data for your company. Dana sets up the data source to be used for activation in Search Ads 360. The data source is ready to be associated with a use case.
  • Step 2: Mahan is a media specialist who needs to measure audience activation. Mahan creates a customer list and then associates it to the data source that Dana has previously set up, to use that data for Customer Match.

Step 1. Initiate the connection to the data source

Note: It’s recommended that you add an audience segment or conversion goal to a connection that you created. You can either set up an audience segment or conversion goal before you link a data source or you can create an audience segment or conversion goal in the final step of setting up a data source.

Open Setup, select Data manager. Select the connection you just made from “Connected products” and under “Usage”, select  + Add audience segmentor + Add conversion action.

Set up a data source and create a connection to be associated with a use case later.

  1. Sign in to your Search Ads 360  account.
  2. Navigate to a sub-manager account .
  3. In the page menu, select Setupdrop-down, and then select Data manager.
  4. Select + Connect Product.
  5. Under Data source, search and select a data source from the list of products.
  6. If prompted, select Direct connection.
  7. Select your use case, read and accept the customer data policy, then select Continue. If you select Audiences, you are prompted to select the data type at this step.
  8. Enter your data source location and credentials*, then select Next.
  9. To map fields, select the data source fields from the dropdown lists that match the destination fields.
  10. Optional: Apply transformations to your data.
  11. Select Next.
  12. Enter a name for this connection.
  13. Optional: Edit connection details .
  14. Select Finish.
Note: If you already completed the instructions for initiating the data source connection, including the optional step, you can skip the remaining instructions for completing the connection.

* Use the same credentials and location details for this data source as described in the first part of this article.

Step 2. Complete the connection by applying a use case

  1. Open the destination you intend to use–for example, begin to create a new customer list or conversion goal using the steps from the previous sections. Return to these steps before completing the data source step.
  2. Under Data source, choose  Select an existing source.
  3. Select the data source that was initiated in Step 1 from the list of data sources.
  4. Continue to follow the remaining steps for your use case in the first part of this article. Note that you will skip further data source-related steps, such as entering credentials, because you completed these previously.

Troubleshoot errors

Setup errors

  • Ensure that you are entering the correct database location URL and credentials.
  • Ensure that the credentials you’re using have the appropriate permissions to access the data you need.
  • Ensure that your conversion action has successfully connected to the chosen connection. Otherwise, no data will come in.

Scheduled run errors

  • The most common cause of scheduled run failures is updated permissions in PostgreSQL. Check that the role or user account that corresponds to your database has permissions to read the data.
  • Ensure that the data still exists and that the names of the schema and table haven’t changed.

Was this helpful?

How can we improve it?

Need more help?

Try these next steps:

true
Search
Clear search
Close search
Google apps
Main menu
13262160986898906724
true
Search Help Center
false
true
true
true
true
true
5055977
true
false
false
false
Create a Mobile Website
View Site in Mobile | Classic
Share by: