Hi Phil,

My apologies for the confusion. However, the main purpose of the
CustomerService.ListAccessibleCustomers
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v0.services#google.ads.googleads.v0.services.CustomerService> is
to retrieve only the list of accounts that are directly accessible by your
OAuth credentials. This being said, even if your OAuth credentials have
directly access to your MCC, this service will not include the sub-accounts
under your MCC unless your OAuth credentials has direct access to your
sub-accounts as well.

If you want to get the accounts under your manager account, you may use
customer_client
<https://developers.google.com/google-ads/api/docs/fields/customer_client> resource
instead. Below query should work to get the said accounts.

SELECT customer.id
<http://www.google.com/url?q=http%3A%2F%2Fcustomer.id&sa=D&sntz=1&usg=AFQjCNG1wYg6gAM_I2rzp8OFG8WhpGuY5Q>,
customer.descriptive_name, customer_client.resource_name,
customer_client.client_customer, customer_client.level,
customer_client.hidden FROM customer_client


Regards,
Luis
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 02/19/19 12:40:10 pste...@wordstream.com wrote:

Hi Luis, thanks again for the reply.  I understand that technically the
service will return customers available to the OAuth credentials, however
the OAuth credentials I'm using are those of the MCC account, which has
access to several sub-accounts.  In the AdWords editor, when logging into
the MCC account I can access any of the sub-accounts, however when using
the API under the MCC account's OAuth credentials I can only access the MCC
account itself.  It's this discrepancy in access that is most confusing to
me.  The OAuth credentials used to provide access to all the available
sub-accounts, when invoking the AdWords customer service, however in the
new Google Ads API, it does not.  Are you able to try an example case on
your end in order to reproduce my findings?  Thanks.

On Tuesday, February 19, 2019 at 12:04:27 PM UTC+9,
googleadsapi-forumadvisor wrote:

Hi Phil,

The CustomerService.ListAccessibleCustomers
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v0.services#google.ads.googleads.v0.services.CustomerService> does
not return the sub accounts under your MCC but rather the list of accounts
that are directly accessible via your OAuth credentials.

Hope this clears your concern.

Regards,
Luis
Google Ads API


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a
short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey
<https://support.google.com/google-ads/contact/survey_transactional?caseid=0-6530000025359&hl=en&ctx=1>

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
On 02/19/19 04:25:30 pst...@wordstream.com wrote:

Hi Luis, I believe there is a miscommunication here.  I am not providing
the login-customer-id when using list_accessible_customers, I am merely
using that service to diagnose what customers are accessible given my MCC
credentials.  To re-iterate my issue, I am saying that for an MCC account
which has managerial authorization over several sub-accounts,
list_accessible_customers only returns the customer id of the MCC account
itself and not those of the sub-accounts.  Thanks.

On Monday, February 18, 2019 at 9:49:50 AM UTC+9, Phil wrote:

I was testing calls after adding the login_customer_id header and
continually hitting an error indicating that the user did not have access
to the sub account using the google ads api (python client library v0.7).
Upon further investigation, using the customer_service, I was able to make
a call to 'list_accessible_customers' only to find that only the MCC
account's resource name comes back in the response.  This seems to indicate
that the MCC accounts are not being treated as MCCs in the new API since
they should be returning all child account customer IDs as well.

I believe this is the cause of the issue being expressed in:
https://groups.google.com/forum/#!searchin/adwords-api/login
$20customer$20id%7Csort:date/adwords-api/w7xLbo-Pn5E/SH5uY0xhGgAJ

as well as a few other posts.

This can be easily verified by invoking the customer_service.list_accessible_customers
on an MCC account using its credentials. If you require the specific MCC
account ID let me know.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/
msgid/adwords-api/219dcc4f-6b1a-4d7a-8623-9cd821dd5a91%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/219dcc4f-6b1a-4d7a-8623-9cd821dd5a91%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/2a6c15a4-e42c-4911-b4c9-d6aa2e01acbb%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/2a6c15a4-e42c-4911-b4c9-d6aa2e01acbb%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4g2ogtnulg00000109n2vi0011f2f8y60mjcd9j60o30c1g68qj6d9p%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Accessi... Phil
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
    • Re... Phil
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
        • ... Phil
          • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
            • ... Phil
            • ... Phil
              • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
              • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to