question

AlexContreras-9930 avatar image
0 Votes"
AlexContreras-9930 asked AlexContreras-9930 commented

How can I get CustomerID of programmatically (not through the web UI)?

In order to perform operations such as GetKeywordsByAdGroupId I have to set the CustomerId field in the request header.

This can be found in the UI but we manage several customers and need to get this CustomerID programmatically, to then use it in other requests.

I tried the GetCustomersInfo Service Operation, but the returned ID is not the CustomerID. It's some other system ID (3 digits in this test case).

How can I find the CustomerID field programmatically? I believe this is called a Manager account Number in the UI.

advertising-api
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AlexContreras-9930 avatar image
1 Vote"
AlexContreras-9930 answered AlexContreras-9930 commented

So the docs say this CustomerID field is necessary but it looks like it's not. I can make successful API calls without setting it. So I'll just do that.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The customer ID is required for several operations when you use the campaign management service. As a best practice we recommend that you always set it.


0 Votes 0 ·

Thanks Eric. We'll try where we can. Is there a way to get this field programmatically though? Otherwise we'll be limited because we can't log into each client's UI. Thanks for the info either way.

0 Votes 0 ·