Hi Mike,
Thank you for chiming in. A
linked-customer-id header is only used by
third-party app analytics providers when uploading conversions to a linked Google Ads account. The Customer ID used in the URL should be the
operating customer. You only need a login customer Id if the Google Account that generated your refresh token can only access the operating customer account via an MCC account that that Google Account is a user on.
A visual way to explain this is to imagine that the same Google account that generated the refresh token was to access an account via the Ads UI. They will see all the the accounts that
List Accessible Accounts returns in the top right drop down list when you click the circle representation of the user in the UI. These are accounts the user has direct access to. If an account in that list is an MCC with child accounts attached, then to see the child accounts you would select that MCC in the top right of the UI and then the child accounts are accessible in the top left - middle accounts drop down list box in the UI. These are the same accounts that
Get Account Hierarchy shows.
To access accounts that are in the top left - middle accounts drop down list box via the API you would put the selected account in the top right list in the UI as login customer Id, and you would put the selected account in the top left - middle accounts drop down list box as the operating customer.
Any account returned by
Get Account Hierarchy when you you don't specify manager ID and login customer ID can be accessed by your refresh token you used to make the API call.
Any account returned by
List Accessible Accounts when using a specific refresh token doesn't need the login customer Id.
Another property of those accounts returned by
List Accessible Accounts is they are the only accounts that can be a login customer Id for the specific refresh token making the API call.
Feel free to get back to us.
Regards,
 |
| Aryeh |
| Google Ads API Team |
|
|
| |

ref:_00D1U1174p._5004Q2cT9cV:ref