Hi,
Thank you for your help.
I tried to run GetAccountHierarchy.php but I can see this error.

-php examples/AccountManagement/GetAccountHierarchy.php

No manager customer ID is specified. The example will print the hierarchies 
of all accessible customer IDs:
9xxxxx
7xxxxxx
....

ApiException was thrown with message '{
    "message": "The caller does not have permission",
    "code": 7,
    "status": "PERMISSION_DENIED",
    "details": [
        {
            "@type": 0,
            "data": 
"type.googleapis.com\/google.ads.googleads.v9.errors.GoogleAdsFailure"
        },
        {
            "@type": 0,
            "data": [
                {
                    "errorCode": {
                        "authorizationError": "CUSTOMER_NOT_ENABLED"
                    },
                    "message": "The customer can't be used because it isn't 
enabled."
                }
            ]
        },
        {
            "@type": 0,
            "data": "B127576K16hj0cC6FRK2lw"
        }
    ]
}'.

can you help me?
On Tuesday, November 16, 2021 at 3:19:29 PM UTC+9 adsapi wrote:

> Hi Oleg,
>
> Thank you for reaching out.
>
> You can utilize the get account hierarchy 
> <https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy#php>
>  
> feature to retrieve all your accounts under a specific MCC / manager 
> account. Then, for reach client account returned, you may then generate the 
> performance report you wish to to extract.
>
> An example can be found in the Parallel Report Download 
> <https://developers.google.com/google-ads/api/docs/samples/parallel-report-download#java>
>  
> documentation. However, this is currently not available for PHP 
> <https://developers.google.com/google-ads/api/docs/samples/parallel-report-download#php>.
>  
> For the possibility of a similar implementation or workaround, I would 
> recommend that you reach out to the PHP client library owners, via this 
> link <https://github.com/googleads/google-ads-php/issues>, for further 
> guidance.
>
> Best regards,
>
> Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 
> 2021 
> Google Ads API and AdWords API Annual Survey 
> <https://google.qualtrics.com/jfe/form/SV_eQbOpf4VxRyyqqO?source=so>
>   
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2R9EPZ:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/42911b9a-0626-4e96-97c3-dd8193881611n%40googlegroups.com.
  • al... Oleg Disrupt
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
      • ... Oleg Disrupt
        • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to