GCP BigQuery Sample Queries

As an example, the below query aims to connect the tables [name]_batch_data and travel_intent_global. These two tables are normally completely independent and find no common ground. The batch data comes from an internal source which collects the email identifier (tokenized) and the intent data is a score coming from Adara that is based on the Token Identity.

In order to make the operation work, a mapping must exist of the tokenized email and the Token Identifier. This is where the token_identity_mapping comes in. It is the ID map that acts as the joining function between any two disparate sources.

Query

SQL
Copy

Result

As an output of the above query, you can see the that all rows come from the batch source with different id_types, all of which get have a unique hexdecimal string representing the tokenized version of the original id. The Adara Token Identity confirms that the first two identifiers actually belong to a single identity, which would not have been possible to identify before.

data_sourceid_typetoken_emailadara_token_identitytravel_intent
batchhashed_emailhexdecimal string 1hexdecimal string 196.0
batchcookiehexdecimal string 2hexdecimal string 196.0
batchIDFAhexdecimal string 3hexdecimal string 255.0
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard