Unknown clientCustomerId

70 views
Skip to first unread message

Lucy Bowe

unread,
Sep 10, 2019, 3:43:14 PM9/10/19
to AdWords API and Google Ads API Forum
Hello,

I am trying to pull spend for all accounts underneath our business account. I have achieved this by pulling all account ids using an altered getAccountHierarchy.php (which now just finds all of the sub accounts ids), and then using altered DownloadCriteriaReportWithAwql.php (which I then set the customer ID using withClientCustomerId().

This is working well except one ad account. For one of the accounts I get the following error:

[2019-09-10 19:35:18] AW_REPORT_DOWNLOADER.WARNING: clientCustomerId=********** unknown (AwApi-PHP, googleads-php-lib/43.0.0, PHP/7.2.19-0ubuntu0.18.04.2, GuzzleHttp/6.3.3, curl/7.58.0, ReportQueryBuilder) "POST /api/adwords/reportdownload/v201809 HTTP/1.1" Status: 400
[2019-09-10 19:35:18] AW_REPORT_DOWNLOADER.NOTICE: Request:
POST
/api/adwords/reportdownload/v201809 HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: adwords.google.com
Authorization: REDACTED
developerToken
: REDACTED
clientCustomerId
: **********
User-Agent: unknown (AwApi-PHP, googleads-php-lib/43.0.0, PHP/7.2.19-0ubuntu0.18.04.2, GuzzleHttp/6.3.3, curl/7.58.0, ReportQueryBuilder)
skipReportHeader
: false
skipColumnHeader
: false
skipReportSummary
: false
useRawEnumValues
: false
includeZeroImpressions
: false


__rdquery
=SELECT CampaignName, AdGroupName, Id, CampaignId, AdGroupId, Id, Impressions, Clicks, Cost, CreativeFinalUrls, Conversions FROM AD_PERFORMANCE_REPORT WHERE Status IN ['ENABLED', 'PAUSED'] DURING 20190909, 20190909&__fmt=3073797012


Response:
REDACTED REPORT DATA
--------
Error:
Client error: `POST https://adwords.google.com/api/adwords/reportdownload/v201809` resulted in a `400 Bad Request` response

This account number does in fact exist. And it exists underneath our buainess manager. Why can I not pull a report for this account?

Lucy

Google Ads API Forum Advisor Prod

unread,
Sep 10, 2019, 11:07:41 PM9/10/19
to adwor...@googlegroups.com
Hi Lucy,

Thank you for reaching out.

To better investigate this issue, could you provide the clientCustomerId in question via reply privately to author option?

Regards,
Dannison
Google Ads API Team

ref:_00D1U1174p._5001UHGLTh:ref

Lucy Bowe

unread,
Sep 19, 2019, 10:41:13 AM9/19/19
to AdWords API and Google Ads API Forum
Hello,

I recieved an email about this being a temporary problem but I am still recieving this error.

Google Ads API Forum Advisor Prod

unread,
Sep 19, 2019, 10:54:19 PM9/19/19
to adwor...@googlegroups.com
Hi Lucy,

Since the issue still persists, could you provide the complete SOAP request and response logs that were generated when you encountered an error during the download of your reports? You may use the reply privately to author option again when providing them.

If you have not enabled logging, you could refer to this guide on how to do so.
Reply all
Reply to author
Forward
0 new messages