Get Resource Segments (For GAQL)
Name
get_resource_segments
Description
Get segments (Group By Fields) for all or selected resource using GAQL [API reference]
Parameters
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description |
---|---|---|---|---|---|
Name |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
ResourceName |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
If the column you are looking for is missing, consider customizing Google Ads Connector.
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime. |
Examples
SSIS
Use Google Ads Connector in API Source component to read data or in API Destination component to read/write data:
Get Resource Segments (For GAQL) using API Source
Google Ads
Get Resource Segments (For GAQL)

Get Resource Segments (For GAQL) using API Destination
Google Ads
Get Resource Segments (For GAQL)

ODBC application
Use these SQL queries in your ODBC application data source:
Get resource segments
SELECT * FROM get_resource_segments
WITH
(
"Resource" = 'Campaign'
)
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Get resource segments
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM get_resource_segments
WITH
(
"Resource" = ''Campaign''
)';
EXEC (@MyQuery) AT [LS_TO_GOOGLE_ADS_IN_GATEWAY];