Endpoint 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
| Parameter | Required | Options |
|---|---|---|
|
Name:
Label: Resource |
YES | |
|
Name:
Label: CustomerId (without dash e.g. 2125557752) Login to your Google Ads account and see top-right corner for your CustomerId |
Output Columns
| Label | Data Type (SSIS) | Data Type (SQL) | Length | Description |
|---|---|---|---|---|
| Name |
DT_WSTR
|
nvarchar(4000)
|
4000 | |
| ResourceName |
DT_WSTR
|
nvarchar(4000)
|
4000 |
If the column you are looking for is missing, consider customizing Google Ads Connector.
Input Columns
| Label | Data Type (SSIS) | Data Type (SQL) | Length | 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 or in API Destination SSIS Data Flow components to read or write data.
API Source
API Source - Google Ads
Read / write Google Ads data inside your app (e.g. Campaigns, Ad Groups, Keywords, Spending, Performance); perform many Google Ads operations without coding, just using easy to use high performance API Connector for Google Ads
Google Ads
Get Resource Segments (For GAQL)
| Required Parameters | |
|---|---|
| Resource | Fill-in the parameter... |
API Destination
API Destination - Google Ads
Read / write Google Ads data inside your app (e.g. Campaigns, Ad Groups, Keywords, Spending, Performance); perform many Google Ads operations without coding, just using easy to use high performance API Connector for Google Ads
Google Ads
Get Resource Segments (For GAQL)
| Required Parameters | |
|---|---|
| Resource | Fill-in the parameter... |
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];