We are using API to download ad performance reports for all our customers. The hierarchy is this:
One top level account has many MMC accounts, each of which has many customer accounts. So I have a client_id for the top level account, an client_id each for each MMC and many client_customer_ids, one for each end customer.
I am using this script:
I tried to generate oauth access token in the yml file using the top account client_id and MCC client_id and then run get_account_hierarchy. I always ended up with the error
Message: [AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED @ ; trigger:'<null>']
Errors:
Error [1]:
field_path:
trigger: <null>
error_string: AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED
api_error_type: AuthenticationError
reason: CLIENT_CUSTOMER_ID_IS_REQUIRED
xsi_type: AuthenticationError
Does anyone know why? Is this the right approach to get a whole list of client_customer_ids ?? My gut feeling is that I am filling up the yml file wrong.