NAME

get_account_hierarchy

DESCRIPTION

This example gets the account hierarchy of the specified manager account. If you don't specify manager customer ID, the example will instead print the hierarchies of all accessible customer accounts for your authenticated Google account.

Note that if the list of accessible customers for your authenticated Google account includes accounts within the same hierarchy, this example will retrieve and print the overlapping portions of the hierarchy for each accessible customer.

SYNOPSIS

get_account_hierarchy.pl [options]

    -help                        Show the help message.
    -manager_customer_id         [optional] The Google Ads manager customer ID.