Skip to content

Google Ads ad-group report

POST
/v1/report/google_ads/ad_group
curl --request POST \
--url 'https://restapi.affattr.com/v1/report/google_ads/ad_group?only=currencies' \
--header 'API-KEY: <API-KEY>' \
--header 'Content-Type: application/json' \
--data '{ "dimensions": [ "date" ], "filter": { "additionalProperty": [ "example" ] }, "filter[ad_group_id]": [ 1 ], "filter[ad_group_type]": [ "example" ], "filter[applications]": [ 1 ], "filter[campaign_id]": [ 1 ], "filter[currencies]": [ "example" ], "filter[customer_id]": [ "example" ], "filter[date_from]": "example", "filter[date_to]": "example", "filter[environment]": "example", "filter[partners]": [ 1 ], "format": "example", "only": "example", "to_currency": "example", "tz": "example" }'

Google Ads cost, clicks, impressions and conversions by customer, campaign and ad group (by time_slot). Without Google cost data in the period, installs and events of the applications. Formats: tree, plain, csv2, params; json (default) and csv as a flat table. filter[environment] is accepted but in effect ignored: ad cost has no environment, and the installs are filtered only in the fallback, when the period has no Google cost data. Agency key: allowed (one application of the agency in filter[applications]); it gets the Google Ads data of its partners only — ad_cost, clicks, impressions, conversions; never revenue, payouts or the installs fallback.

only
string
Allowed values: currencies

With format=params: currencies returns {\

Request

Media type application/json
object
dimensions

See DimensionsList

Array<string>
Allowed values: date install_date hours day week month client_id app_id app_version sdk_version partner_id event conversion_type country continent region city currency product_id fraud blocked_reason cap_id google_customer_id google_ad_group_id google_ad_group_name google_ad_type google_campaign_id google_campaign_name network skan_campaign_id skan_campaign_name conversion_value coarse_conversion_value fidelity_type redownload fb_account_id fb_ad_id fb_ad_objective_name fb_adgroup_id fb_adgroup_name fb_campaign_id fb_campaign_name fb_campaign_group_id fb_campaign_group_name click_ad_id click_ad_name click_ad_set click_ad_set_id click_ad_type click_campaign_id click_campaign_name click_site_id click_sub_site_id click_media_type click_partner_name click_sub1 click_sub2 click_sub3 click_sub4 click_sub5 shortlink_id singlelink_id os_name os_version device_manufacturer device_model device_type language session_start_from session_start_to days_since_last_session_from days_since_last_session_to sessions_count_from sessions_count_to days_since_install_from days_since_install_to with_organic
filter
object
key
additional properties
Array
filter[ad_group_id]
Array<integer>
filter[ad_group_type]
Array<string>
filter[applications]
Array<integer>
filter[campaign_id]
Array<integer>
filter[currencies]
Array<string>
filter[customer_id]
Array<string>
filter[date_from]
string
filter[date_to]
string
filter[environment]

In effect ignored, see ReportGoogleAdGroup

string
filter[partners]
Array<integer>
format

"", csv

string
only

With format=params: currencies

string
to_currency
string
tz
string

Report data

Media type application/json
object
key
additional properties
any
Example generated
{}

Bad request

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}

No credentials (answered with 403 until default-deny is enabled)

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}

Invalid credentials or no access

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}

Internal server error

Media type application/json
object
error

What went wrong. 403 always says “Access denied”.

string
request_id

Id of the request, to quote to support.

string
Example
{
"error": "Access denied",
"request_id": "6ebb1a30-76ef-42fe-8ba8-c423791de78e"
}