Thanks, Bharani.

In the meantime I started to figure things out.

Part of what was confusing me is that when I query all customer_client for 
each accessible customer, I get many more accounts that I have access to 
(or at least that show on my Google Ads panel). For example, one of the 
accounts in the Google Ads panel lists 31 accounts, but if I query the API 
it lists 195 accounts, but I only have access to those 31 metioned before, 
so I get a lot of the following error:

{
    "error": {
        "code": 403,
        "message": "The caller does not have permission",
        "status": "PERMISSION_DENIED",
        "details": [
            {
                "@type": 
"type.googleapis.com/google.ads.googleads.v2.errors.GoogleAdsFailure",
                "errors": [
                    {
                        "errorCode": {
                            "authorizationError": "CUSTOMER_NOT_ENABLED"
                        },
                        "message": "The customer can't be used because it 
isn't enabled."
                    }
                ]
            }
        ]
    }
}

Is there a way to get all customer_client but filtered by enabled?

Thanks,
AP.


segunda-feira, 19 de Agosto de 2019 às 18:57:33 UTC+1, adsapiforumadvisor 
escreveu:
>
> Hello André, 
>
> If you are using OAuth credentials from a manager account and are 
> accessing a related customer account the login-customer-id 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id>
>  header 
> to the customer ID of the manager account. If you are using OAuth 
> credentials from a manager account, then you should be able to find this by 
> logging into your Google Ads manager account on the top right corner. To 
> pull the specific ad group details in a client account, you will need to 
> use the client customer Id here 
> <https://github.com/googleads/google-ads-java/blob/master/google-ads-examples/src/main/java/com/google/ads/googleads/examples/basicoperations/GetAdGroups.java#L52>
>  
> and then pull the specific ad groups from the account. 
>
> Let me know if you have any concerns. 
>
> Thanks,
> Bharani, Google Ads API Team
>
> ref:_00D1U1174p._5001UEJTua: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/d5066aa4-b697-42f9-a8e4-57b73461115f%40googlegroups.com.

Reply via email to