# Integration Specifications

## **Integration Overview**&#x20;

Google is the place people go to search for information, places, products, and more, so this is where brands want to make sure they have a presence. Show up when users search in text, product listing, video ads, and more with Ads.

The Daasity Google Ads integration extracts key advertising information from the Google platform, like spend, clicks, and impressions. Because Google has several networks, info is available in the area of Google (i.e., Youtube, Text Search) and by the campaign.

## **Integration Availability**&#x20;

This integration is available for:

* Enterprise
* Growth

## **API Endpoints**

The Daasity Google Ads extractor is built based on this [Google Ads API Documentation](https://developers.google.com/google-ads/api/docs/start). The following endpoints are used by Daasity to replicate data from Google Ads.

* [Reports](https://developers.google.com/google-ads/api/docs/reporting/overview)

## **Entity Relationship Diagram (ERD)**

[Click here to view the ERD for the Daasity Google Ads integration](https://lucid.app/documents/embedded/455c6558-5c32-49fa-8530-b437327b00c0) illustrating the different tables and keys to join across tables.

## **Google Ads Schema**

The Daasity Google Ads extractor creates these tables using the endpoints and replication methods listed.  The data is mapped from the source API endpoint to the table based on the mapping logic outlined in each table.

* [Ads](#a-ds)
* [Ad Groups](#a-d-groups)
* [Campaigns](#campaigns)
* [Keywords](#keywords)

### **Ads**&#x20;

* Endpoint: [Reports](https://developers.google.com/google-ads/api/docs/reporting/overview)
* Update Method: UPSERT
* Table Name: \[`adwords.ads`]

| JSON Element                                                                   | Database Column                      |
| ------------------------------------------------------------------------------ | ------------------------------------ |
| Id                                                                             | id                                   |
| Date                                                                           | date                                 |
| Device                                                                         | device                               |
| BusinessName                                                                   | business\_name                       |
| AccountDescriptiveName                                                         | account\_descriptive\_name           |
| Automated                                                                      | automated                            |
| AdGroupId                                                                      | ad\_group\_id                        |
| AdType                                                                         | ad\_type                             |
| AdNetworkType1                                                                 | ad\_network\_type1                   |
| AdNetworkType2                                                                 | ad\_network\_type2                   |
| ActiveViewCpm                                                                  | active\_view\_cpm                    |
| ActiveViewCtr                                                                  | active\_view\_ctr                    |
| ActiveViewImpressions                                                          | active\_view\_impressions            |
| AverageCost                                                                    | average\_cost                        |
| AverageCpc                                                                     | average\_cpc                         |
| AverageCpm                                                                     | average\_cpm                         |
| AverageCpv                                                                     | average\_cpv                         |
| AveragePosition                                                                | average\_position                    |
| CallToActionText                                                               | call\_to\_action\_next               |
| Clicks                                                                         | clicks                               |
| Conversions                                                                    | conversions                          |
| ConversionValue                                                                | conversion\_value                    |
| Cost                                                                           | cost                                 |
| AllConversions                                                                 | all\_conversions                     |
| AllConversionValue                                                             | all\_conversion\_value               |
| CreativeDestinationUrl                                                         | creative\_destination\_url           |
| CrossDeviceConversions                                                         | cross\_device\_conversions           |
| Ctr                                                                            | ctr                                  |
| Description                                                                    | description                          |
| DisplayUrl                                                                     | display\_url                         |
| GmailTeaserHeadline                                                            | gmail\_teaser\_headline              |
| Headline                                                                       | headline                             |
| ImageCreativeName                                                              | image\_creative\_name                |
| Impressions                                                                    | impressions                          |
| Interactions                                                                   | interactions                         |
| InteractionTypes                                                               | interaction\_types                   |
| MainColor                                                                      | main\_color                          |
| AccentColor                                                                    | accent\_color                        |
| MarketingImageHeadline                                                         | marketing\_image\_headline           |
| MarketingImageDescription                                                      | marketing\_image\_description        |
| ResponsiveSearchAdHeadlines                                                    | responsive\_search\_ad\_headlines    |
| ResponsiveSearchAdDescriptions                                                 | responsive\_search\_ad\_descriptions |
| Status                                                                         | status                               |
| VideoQuartile25Rate                                                            | video\_quartile25\_rate              |
| VideoQuartile50Rate                                                            | video\_quartile50\_rate              |
| VideoQuartile75Rate                                                            | video\_quartile75\_rate              |
| VideoQuartile100Rate                                                           | video\_quartile100\_rate             |
| VideoViews                                                                     | video\_views                         |
| ViewThroughConversions                                                         | view\_through\_conversions           |
| Google Adwords Account ID                                                      | adwords\_client\_id                  |
| MD5(Id + Date + Device + AdGroupId + AdType + AdNetworkType1 + AdNetworkType2) | \_key                                |
| ID of Merchant in Daasity App                                                  | \_account\_id                        |
| timestamp when data was extracted from Shopify                                 | \_\_synced\_at                       |

### **Ad Groups**&#x20;

* Endpoint: [Reports](https://developers.google.com/google-ads/api/docs/reporting/overview)
* Update Method: UPSERT
* Table Name: \[`adwords.adgroups`]

| JSON Element                                                                                | Database Column            |
| ------------------------------------------------------------------------------------------- | -------------------------- |
| Id                                                                                          | id                         |
| Date                                                                                        | date                       |
| Device                                                                                      | device                     |
| CampaignId                                                                                  | campaign\_id               |
| AdGroupId                                                                                   | ad\_group\_id              |
| AdGroupName                                                                                 | ad\_group\_name            |
| AdGroupStatus                                                                               | ad\_group\_status          |
| AdGroupType                                                                                 | ad\_group\_type            |
| AdNetworkType1                                                                              | ad\_network\_type1         |
| AdNetworkType2                                                                              | ad\_network\_type2         |
| AdRotationMode                                                                              | ad\_rotation\_mode         |
| CpcBid                                                                                      | cpc\_bid                   |
| CpmBid                                                                                      | cpm\_bid                   |
| CpvBid                                                                                      | cpv\_bid                   |
| ViewThroughConversions                                                                      | view\_through\_conversions |
| AllConversionRate                                                                           | all\_conversion\_rate      |
| ConversionRate                                                                              | conversion\_rate           |
| AllConversionValue                                                                          | all\_conversion\_value     |
| ConversionValue                                                                             | conversion\_value          |
| Cost                                                                                        | cost                       |
| Google Adwords Account ID                                                                   | adwords\_client\_id        |
| MD5(AdGroupId + Date + Device + CampaignId + AdGroupType + AdNetworkType1 + AdNetworkType2) | \_key                      |
| ID of Merchant in Daasity App                                                               | \_account\_id              |
| timestamp when data was extracted from Shopify                                              | \_\_synced\_at             |

### **Campaigns**

* Endpoint: [Reports](https://developers.google.com/google-ads/api/docs/reporting/overview)
* Update Method: UPSERT
* Table Name: \[`adwords.campaigns`]

| JSON Element                                                                                | Database Column            |
| ------------------------------------------------------------------------------------------- | -------------------------- |
| Id                                                                                          | id                         |
| Date                                                                                        | date                       |
| Device                                                                                      | device                     |
| CampaignGroupId                                                                             | campaign\_group\_id        |
| CampaignId                                                                                  | campaign\_id               |
| CampaignName                                                                                | campaign\_name             |
| CampaignStatus                                                                              | campaign\_status           |
| ViewThroughConversions                                                                      | view\_through\_conversions |
| AllConversions                                                                              | all\_conversions           |
| Conversions                                                                                 | conversions                |
| CrossDeviceConversions                                                                      | cross\_device\_conversions |
| AllConversionRate                                                                           | all\_conversions\_rate     |
| ConversionRate                                                                              | conversion\_rate           |
| AllConversionValue                                                                          | all\_conversion\_value     |
| Cost                                                                                        | cost                       |
| Google Adwords Account ID                                                                   | adwords\_client\_id        |
| MD5(AdGroupId + Date + Device + CampaignId + AdGroupType + AdNetworkType1 + AdNetworkType2) | \_key                      |
| ID of Merchant in Daasity App                                                               | \_account\_id              |
| timestamp when data was extracted from Shopify                                              | \_\_synced\_at             |

### **Keywords**&#x20;

* Endpoint: [Reports](https://developers.google.com/google-ads/api/docs/reporting/overview)
* Update Method: UPSERT
* Table Name: \[`adwords.keywords`]

| JSON Element                                   | Database Column                                  |
| ---------------------------------------------- | ------------------------------------------------ |
| Id                                             | id                                               |
| Date                                           | date                                             |
| AdGroupId                                      | ad\_group\_id                                    |
| CpcBid                                         | cpc\_bid                                         |
| CpmBid                                         | cpm\_bid                                         |
| EstimatedAddClicksAtFirstPositionCpc           | estimated\_add\_clicks\_at\_first\_position\_cpc |
| EstimatedAddCostAtFirstPositionCpc             | estimated\_add\_cost\_at\_first\_position\_cpc   |
| FirstPageCpc                                   | first\_page\_cpc                                 |
| FirstPositionCpc                               | first\_position\_cpc                             |
| TopOfPageCpc                                   | top\_of\_page\_cpc                               |
| CreativeQualityScore                           | creative\_quality\_score                         |
| KeywordMatchType                               | keyword\_match\_type                             |
| PostClickQualityScore                          | post\_click\_quality\_score                      |
| QualityScore                                   | quality\_score                                   |
| SearchPredictedCtr                             | search\_predicted\_ctr                           |
| Status                                         | status                                           |
| UrlCustomParameters                            | url\_custom\_parameters                          |
| ActiveViewCpm                                  | active\_view\_cpm                                |
| Clicks                                         | clicks                                           |
| Impressions                                    | impressions                                      |
| Interactions                                   | interactions                                     |
| AverageCost                                    | average\_cost                                    |
| AverageCpc                                     | average\_cpc                                     |
| AverageCpm                                     | average\_cpm                                     |
| AverageCpv                                     | average\_cpv                                     |
| AveragePosition                                | average\_position                                |
| Conversions                                    | conversions                                      |
| ConversionValue                                | conversion\_value                                |
| CostPerAllConversion                           | cost\_per\_all\_conversion                       |
| CostPerConversion                              | cost\_per\_conversion                            |
| Ctr                                            | ctr                                              |
| SearchExactMatchImpressionShare                | search\_exact\_match\_impression\_share          |
| SearchImpressionShare                          | search\_rank\_lost\_impression\_share            |
| SearchRankLostImpressionShare                  | value\_per\_all\_conversion                      |
| ValuePerAllConversion                          | value\_per\_conversion                           |
| Google Adwords Account ID                      | adwords\_client\_id                              |
| MD5(Id + Date + Device + AdGroupId)            | \_key                                            |
| ID of Merchant in Daasity App                  | \_account\_id                                    |
| timestamp when data was extracted from Shopify | \_\_synced\_at                                   |

{% hint style="info" %}
 **NOTE**: Not all dimensions are used in transformation and/or exposed. If you would like to explore customization for this data, please contact <support@daasity.com>. &#x20;
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.daasity.com/core-concepts/data-integrations/setup-guides/digital-integrations/google-ads/integration-specifications.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
