Invalid customer ID Sample Create Customer

2,002 views
Skip to first unread message

Diogo Pereira

unread,
May 22, 2019, 5:17:53 PM5/22/19
to AdWords API and Google Ads API Forum
Hi,

I set manager customer id valid but return always invalid customer ID. Why? Can help?

[2019-05-22 10:44:15] google-ads.WARNING: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v1.services.CustomerService/CreateCustomerClient", ClientCustomerId: 762, RequestId: "A5BxfTNhQ0AiiHB9SGVa2Q", IsFault: 1, FaultMessage: "["Invalid customer ID '762-516-0092'."]"  
[2019-05-22 10:44:15] google-ads.NOTICE: Request
-------
Method Name: /google.ads.googleads.v1.services.CustomerService/CreateCustomerClient
Headers: {
    "x-goog-api-client": "gl-php\/7.1.23 gapic\/ gax\/0.38.0 grpc\/1.20.0",
    "x-goog-request-params": "customer_id=762-516-0092",
    "developer-token": "REDACTED"
}
Request: {"customerId":"762-516-0092","customerClient":{"descriptiveName":"Account created with CustomerService on 20190522 10:44:14","currencyCode":"EUR","timeZone":"Europe/Lisbon","testAccount":true}}

Response
-------
Headers: {
    "request-id": "A5BxfTNhQ0AiiHB9SGVa2Q",
    "date": "Wed, 22 May 2019 10:44:15 GMT",
    "alt-svc": "quic=\":443\"; ma=2592000; v=\"46,44,43,39\""
}

Fault
-------
Status code: 3
Details: Request contains an invalid argument.
Failure: {"errors":[{"errorCode":{"requestError":"INVALID_CUSTOMER_ID"},"message":"Invalid customer ID '762-516-0092'."}]}  
Request with ID 'A5BxfTNhQ0AiiHB9SGVa2Q' has failed.
Google Ads failure details:
        request_error: Invalid customer ID '762-516-0092'.

Google Ads API Forum Advisor Prod

unread,
May 23, 2019, 1:18:25 AM5/23/19
to adwor...@googlegroups.com

Hi,

Thank you for reaching out. The INVALID_CUSTOMER_ID error occurs if you try to make an API call with an incorrect customer ID. Could you try to remove the hyphens and retry the request again?

Feel free to write back if the error persists after removing the hyphens.

Regards,
Dave
Google Ads API Team



ref:_00D1U1174p._5001UAqNRR:ref

jewelranabd

unread,
Jan 27, 2020, 8:54:11 AM1/27/20
to AdWords API and Google Ads API Forum
Reply all
Reply to author
Forward
0 new messages