A
A
Alexey Sundukov2019-11-22 13:07:10
Google Ads
Alexey Sundukov, 2019-11-22 13:07:10

Does the Google Adwords API report on ad groups (AdGroup) currently work?

As I understand it, Google is currently moving from the Adwords API to the Ads API. And when working with both of these APIs, I had a problem - I can not get a cost report for the ad group (AdGroup). Report Types . Call example:

curl -d '__rdxml=<?xml version="1.0"?><reportDefinition><selector><fields>Cost</fields></selector><reportName>Report #1</reportName><reportType>ADGROUP_PERFORMANCE_REPORT</reportType><dateRangeType>ALL_TIME</dateRangeType><downloadFormat>CSV</downloadFormat></reportDefinition>' \
-H "Content-Type: application/x-www-form-urlencoded" \
-X POST -H "Authorization: Bearer y*****GO" \
-H "developerToken: 8v*****Q" \
-H "clientCustomerId: 10*****3" \
-H "skipReportHeader: false" \
-H "skipColumnHeader: false" \
-H "skipReportSummary: false" \
-H "useRawEnumValues: false" \
-H "includeZeroImpressions: false" \
-X POST https://adwords.google.com/api/adwords/reportdownload/v201809
Report #1 (All Time)
Cost
Total

The report is empty, although there is data in the interface itself. At the same time, I don’t see any error in the request itself, and a similar report at the campaign level (CAMPAIGN_PERFORMANCE_REPORT) gives data:
curl -d '__rdxml=<?xml version="1.0"?><reportDefinition><selector><fields>Cost</fields></selector><reportName>Report #1</reportName><reportType>CAMPAIGN_PERFORMANCE_REPORT</reportType><dateRangeType>ALL_TIME</dateRangeType><downloadFormat>CSV</downloadFormat></reportDefinition>' \
> -H "Content-Type: application/x-www-form-urlencoded" \
> -X POST -H "Authorization: Bearer y*****GO" \
> -H "developerToken: 8v*****Q" \
> -H "clientCustomerId: 10*****3" \
> -H "skipReportHeader: false" \
> -H "skipColumnHeader: false" \
> -H "skipReportSummary: false" \
> -H "useRawEnumValues: false" \
> -H "includeZeroImpressions: false" \
> -X POST https://adwords.google.com/api/adwords/reportdownload/v201809
Report #1 (All Time)
Cost
614569833
7394202575
1090851990
2234142
9570661
9567127
9733997
5078227
12609488

I can't figure out the source of the problem. Perhaps something is wrong in the call (but what?), Perhaps this data is not in the API, perhaps some special rights are needed. In this connection, the following questions arise:
1. Does the Google Adwords API report on AdGroup work at all?
2. Is there a similar API in the Google Ads API? Found https://developers.google.com/google-ads/api/docs/... but there is no cost at all and segments.date DURING LAST_30_DAYS does not work at all.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question