Google Display & Video 360 API Configuration
For more information about authentication, accessing the Fivetran REST API, and request and response formats, see Getting Started with the Fivetran REST API.
Request
POST https://api.fivetran.com/v1/connections
{ "group_id": "group_id", "service": "google_display_and_video_360", "trust_certificates": true, "trust_fingerprints": true, "run_setup_tests": true, "paused": false, "pause_after_trial": false, "sync_frequency": 1440, "data_delay_sensitivity": "LOW", "data_delay_threshold": 0, "daily_sync_time": "14:00", "schedule_type": "auto", "connect_card_config": { "redirect_uri": "https://your.site/path", "hide_setup_guide": true, "all_fields": true }, "proxy_agent_id": "proxy_agent_id", "private_link_id": "private_link_id", "networking_method": "Directly", "hybrid_deployment_agent_id": "hybrid_deployment_agent_id", "destination_configuration": { "virtual_warehouse": "virtual_warehouse" }, "destination_schema_names": "FIVETRAN_NAMING", "schedule": { "cron": "0 */6 * * *", "interval": 360, "schedule_type": "INTERVAL", "days_of_week": [ "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY" ], "time_of_day": "14:00", "time_zone": "Europe/Prague" }, "external_secrets_manager_id": "esm_id", "data_checks": true, "config": { "advertisers": [ "string" ], "auth_type": "OAUTH2", "partners": [ "string" ], "reports": [ { "advertisers": [ "string" ], "config_method": "CREATE_NEW", "dimensions": "FILTER_ADVERTISER", "metrics": "METRIC_CLICKS", "partners": [ "string" ], "query_id": "123456789", "report_type": "REACH", "split_by_advertiser": true, "table_name": "table_2", "update_config_on_each_sync": true } ], "timeframe_months": "TWENTY_FOUR", "schema": "schema_name", "table": "table_name" }, "auth": { "client_access": { "client_id": "my_client_id", "client_secret": "my_client_secret" }, "refresh_token": "my_refresh_token" } }
Config parameters
| Name | Description |
|---|---|
advertisers | The list of advertisers to sync for the whole connection, including metadata tables and reports with config_method set to CREATE_NEW. Use it with syncMode set to SpecificAdvertisers. An empty list syncs all advertisers. All advertisers will be synced but only selected will be used for reports. If syncMode is set to AllAdvertisers, this field will be ignored. |
auth_type | Authentication used by client to authenticate with google |
partners | The list of partners to sync for the whole connection, including metadata tables and reports with config_method set to CREATE_NEW. Use it with syncMode set to SpecificPartners. An empty list syncs all partners. All partners will be synced but only selected will be used for reports. If syncMode is set to AllAdvertisers, this field will be ignored. |
reports | The list of reports. Each report corresponds to a table within the schema to which connector will sync the data. |
reports[0].advertisers | The list of advertisers to include into a sync. This parameter only takes effect when config_method is set to CREATE_NEW. |
reports[0].config_method | The report configuration method. Specifies whether a new configuration is defined manually or an existing configuration is reused. The default value is CREATE_NEW. |
reports[0].dimensions | The report dimensions (filters) to include into a sync. The dimension names are provided in the API format. This is a required parameter when config_method is set to CREATE_NEW. NOTE: At least one of the following date dimensions must be included for report data aggregation: FILTER_DATE (daily), FILTER_WEEK (weekly), or FILTER_MONTH (monthly). |
reports[0].metrics | The report metrics to include into a sync. The metric names are provided in the API format. This is a required parameter when config_method is set to CREATE_NEW. |
reports[0].partners | The list of partners to include into a sync. This parameter only takes effect when config_method is set to CREATE_NEW. |
reports[0].query_id | The ID of the query whose configuration you want to reuse. This is a required parameter when config_method is set to REUSE_EXISTING. |
reports[0].report_type | The type of the report to create. This is a required parameter when config_method is set to CREATE_NEW. |
reports[0].split_by_advertiser | If enabled, the report will be queried separately for each advertiser, and the FILTER_ADVERTISER dimension will be added automatically if not already selected. This parameter only takes effect when config_method is set to CREATE_NEW. The default value is false. |
reports[0].table_name | The table name within the schema to which connector will sync the data of the specific report. |
reports[0].update_config_on_each_sync | Specifies whether the configuration is updated before each sync or only when the connector settings are saved. This parameter only takes effect when config_method is set to REUSE_EXISTING. The default value is true. |
timeframe_months | Number of months' worth of reporting data you'd like to include in your initial sync. A change of this value will trigger a re-sync for enabled reports during the next connector sync. NOTE: The more months of reporting data you sync, the longer your initial sync will take. |
schema (required) | Destination schema name. Schema name is permanent and cannot be changed after connection creation |
table | Destination table. Table is permanent and cannot be changed after connection creation |
Authorization
There are two ways to authorize this connector type:
- By specifying the values for the
client_accessandrefresh_tokenparameters in theauthsection.POST https://api.fivetran.com/v1/connections{ "service": "google_display_and_video_360", "group_id": "group_id", "auth": { "client_access": { "client_id": "my_client_id", "client_secret": "my_client_secret" }, "refresh_token": "my_refresh_token" } }Auth Parameters
Name Description client_accessclient_access.client_idClient IDof your Google Display & Video 360 client application.client_access.client_secretClient Secretof your Google Display & Video 360 client application.refresh_tokenThe long-lived Refresh tokenalong with theclient_idandclient_secretparameters carry the information necessary to get a new access token for API resources. By using the Connect Card or the Fivetran dashboard.