Re: Get the names of the customer accounts using listAccessibleCustomers

2024-05-15 Thread Rathina Boopathi
Hi all,

I tried the query the API team gave. I got the following error and the 
response itself takes above 10secs. 
mg {
  errors: [],
  '@type': 'type.googleapis.com/google.rpc.BadRequest',
  field_violations: [
{
  description: 'Invalid value (query), Starting an object on a scalar 
field'
}
  ]
}

What is the status of getting the descriptive names in 
listAccessibleCustomers() call itself?

On Wednesday, November 22, 2023 at 9:14:21 PM UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> The solution provided by ‘Olivier’ is correct. I would recommend you to 
> kindly execute the below query for retrieving the descriptive name from the 
> customer_client 
>  
> resource. 
>   
>
>
> SELECT customer_client.descriptive_name, customer_client.client_customer, 
> customer_client.level, customer_client.manager, 
> customer_client.currency_code, customer_client.time_zone, customer_client.id 
> FROM customer_client WHERE customer_client.level <= 1
>
>
> Please let us know if you run into any issues with this solution. 
>
> Kindly get back to us if you have any further questions related to the 
> Google Ads API. 
>   
> This message is in relation to case "ref:!00D1U01174p.!5004Q02ZM01g:ref"
>
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e30c541b-978b-425b-9162-054d6edef851n%40googlegroups.com.


Re: Get the names of the customer accounts using listAccessibleCustomers

2023-11-22 Thread Olivier Clémence
Hi, 
i use this to get the descriptive name in one go : 
$query = 'SELECT customer_client.descriptive_name, 
customer_client.client_customer, customer_client.level,'
. ' customer_client.manager, customer_client.descriptive_name,'
. ' customer_client.currency_code, customer_client.time_zone,'
. ' customer_client.id FROM customer_client WHERE customer_client.level <= 
1';

Le mercredi 9 août 2023 à 14:47:15 UTC+2, Google Ads API Forum Advisor a 
écrit :

> Hi Miguel,
>
>  
>
> Would you be so kind as to provide the complete API logs (request and 
> response with request-id and request header) generated on your end? This is 
> so we can further check your implementation and investigate further:
>
>- Request: 
>
> https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#request
>  
>- Response: 
>
> https://developers.google.com/google-ads/api/docs/concepts/field-service?hl=en#response
>  
>- Request-id: 
>
> https://developers.google.com/google-ads/api/docs/concepts/call-structure?hl=en#request-id
>  
>- Request header: 
>
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers
>  
>
>  
>
> For the client libraries, logging can be enabled by navigating to the 
> Client libraries > Your client library (ex Java) > Logging documentation, 
> which you can access from this link: 
> https://developers.google.com/google-ads/api/docs/client-libs. For REST 
> interface requests, you can enable logging via the curl command by using 
> the -i flag. This will cause the tool to include the HTTP response headers 
> in the output.
>
>  
>
> You may send the requested information via the *Reply privately to author* 
> option. Note that you may need to join the Google Group for you to use this 
> option. If this option is not available on your end still, you may send the 
> details directly to our alias `googleadsa...@google.com` instead.
>
>  
> This message is in relation to case "ref:_00D1U1174p._5004Q2ZM01g:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/af0417d9-8eb4-400d-ab25-f04e5af7c0aan%40googlegroups.com.


Re: Get the names of the customer accounts using listAccessibleCustomers

2023-08-08 Thread Miguel Angel Garcia
In case it helps, here is the code that I got so far (it probably could be 
improved a lot and maybe has mistakes, I'm a Python beginner):

def one(request):
client = credenciales(request)
ga_service = client.get_service("GoogleAdsService")

# Get customer resource names from the original code
customer_service = client.get_service("CustomerService")
accessible_customers = customer_service.list_accessible_customers()
customer_resource_names = accessible_customers.resource_names

# Prepare a list to store customer data
list_clients = []

# Iterate through each customer resource name
for resource_name in customer_resource_names:
# Extract the customer ID from the resource name
custom_id = resource_name.split('/')[-1]

# Create a query using the customer_id
query = f'''
SELECT
customer_client.descriptive_name,
customer_client.id,
customer_client.status
FROM customer_client
'''

stream = ga_service.search_stream(customer_id=custom_id, query=query
)

for batch in stream:
for row in batch.results:
data_clients = {}
data_clients["descriptive_name"] = row
.customer_client.descriptive_name
data_clients["id"] = row.customer_client.id
data_clients["status"] = row.customer_client.status
list_clients.append(data_clients)

# Pass the list of customer data to the template
context = {
'list_clients': list_clients,
}
return render(request, 'one.html', context)

It gives me the error "*authorization_error: USER_PERMISSION_DENIED*" 
(which I don't understand, because it should be automatically showing the 
accounts that the user has permission to access, I'm not giving those 
accounts/IDs manually).


On Wednesday, August 9, 2023 at 8:11:45 AM UTC+2 Miguel Angel Garcia wrote:

> OK, and what about the second part of my message?
>
> *If listAccessibleCustomers is not going to provide account names anytime 
> soon, can you at least provide code examples of how to get that info in the 
> most efficient and reliable way possible (I need it for Python).*
>
> On Tuesday, August 8, 2023 at 10:29:57 PM UTC+2 Google Ads API Forum 
> Advisor wrote:
>
>> Hi,
>>
>> Thanks for reaching out to Google Ads API Forum.
>>
>> With regards to your concern, I have checked this on our side and 
>> unfortunately this feature on list-accessible-customers is still not 
>> available on *Google Ads API*. Kindly note that we already raised a 
>> feature request for this to be available in Google Ads API, subject for 
>> review. For now, what we can advise you is to follow our *Blog* post or 
>> *Release* *Notes* for the latest updates in the API.
>>
>> Links included in this email:
>>
>>- *Google Ads API - *
>>*https://developers.google.com/google-ads/api/docs/start* 
>>  
>>- *Blog - *
>>*https://ads-developers.googleblog.com/search/label/google_ads_api* 
>>  
>>- *Release Notes - * 
>>*https://developers.google.com/google-ads/api/docs/release-notes* 
>> 
>>
>>   
>> This message is in relation to case "ref:_00D1U1174p._5004Q2ZM01g:ref"
>>
>> Thanks,
>>   
>> [image: Google Logo] Google Ads API Team 
>>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e0659f64-8359-4218-818c-7a446c8d0916n%40googlegroups.com.


Re: Get the names of the customer accounts using listAccessibleCustomers

2023-08-08 Thread Miguel Angel Garcia
OK, and what about the second part of my message?

*If listAccessibleCustomers is not going to provide account names anytime 
soon, can you at least provide code examples of how to get that info in the 
most efficient and reliable way possible (I need it for Python).*

On Tuesday, August 8, 2023 at 10:29:57 PM UTC+2 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thanks for reaching out to Google Ads API Forum.
>
> With regards to your concern, I have checked this on our side and 
> unfortunately this feature on list-accessible-customers is still not 
> available on *Google Ads API*. Kindly note that we already raised a 
> feature request for this to be available in Google Ads API, subject for 
> review. For now, what we can advise you is to follow our *Blog* post or 
> *Release* *Notes* for the latest updates in the API.
>
> Links included in this email:
>
>- *Google Ads API - *
>*https://developers.google.com/google-ads/api/docs/start* 
>  
>- *Blog - *
>*https://ads-developers.googleblog.com/search/label/google_ads_api* 
>  
>- *Release Notes - * 
>*https://developers.google.com/google-ads/api/docs/release-notes* 
> 
>
>   
> This message is in relation to case "ref:_00D1U1174p._5004Q2ZM01g:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6d161350-902b-44fc-a8bb-ee9940ed82f8n%40googlegroups.com.


Re: Get the names of the customer accounts using listAccessibleCustomers

2023-08-08 Thread Miguel Angel Garcia
Any updates on this? Seems like a pretty frequent need (I've found several 
threads about this in this forum and other websites).

If listAccessibleCustomers is not going to provide account names anytime 
soon, can you at least provide code examples of how to get that info in the 
most efficient and reliable way possible (I need it for Python).

Thanks!


On Thursday, April 14, 2022 at 7:46:08 PM UTC+2 Google Ads API Forum 
Advisor wrote:

> Hello Muhammad,
>
> Thanks for the clarification and for all the details. I understand your 
> question correctly as you said you want to fetch the account name details 
> when using list-accessible-customers 
> 
>  call. 
> Unfortunately this functionality (account name) is not available on Ads API 
> under listAccessibleCustomers API calls.
>
> With regards to your concern, I have raised a feature request for your 
> concern (require an account name details when using listAccessibleCustomers 
> API calls) internally within our team on your behalf. Please note our team 
> is unable to share any update/status for internal planning features, 
> timeline information, and there is no guarantee the request will be 
> approved.
>
> Please keep an eye on our release notes 
>  and the 
> blog  
> for further updates and announcements or for any upcoming functionality 
> updates.
>
> Best Regards,
> [image: Google Logo] 
> Jakeia 
> Google Ads API Team 
>  
>
> ref:_00D1U1174p._5004Q2ZM01g: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 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3e16b699-27b8-4bcf-83d3-edb4766a2085n%40googlegroups.com.


Re: Get the names of the customer accounts using listAccessibleCustomers

2022-04-14 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hello Muhammad,

Thanks for the clarification and for all the details. I understand your 
question correctly as you said you want to fetch the account name details when 
using list-accessible-customers call. Unfortunately this functionality (account 
name) is not available on Ads API under listAccessibleCustomers API calls.

With regards to your concern, I have raised a feature request for your concern 
(require an account name details when using listAccessibleCustomers API calls) 
internally within our team on your behalf. Please note our team is unable to 
share any update/status for internal planning features, timeline information, 
and there is no guarantee the request will be approved.

Please keep an eye on our release notes and the blog for further updates and 
announcements or for any upcoming functionality updates.

Best Regards,

Jakeia
Google Ads API Team
ref:_00D1U1174p._5004Q2ZM01g: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 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/PPGWm0RACC0D00WFAQVFFaQcaD8nb3ZqogIQ%40sfdc.net.


Re: Get the names of the customer accounts using listAccessibleCustomers

2022-04-13 Thread Muhammad Adil
Hello,

Thanks for the response Jakeia. I still have some confusion regarding the 
API. I think I did not make myself very clear in the above questions. 

I am able to get the account IDs (e.g. 123-456-789, etc.) using the List 
Accessible Accounts 

 call. 
The behavior is exactly as you mentioned in your reply and that is the 
behavior that I require. The only thing that is missing is that I also *require 
the Account Names *(e.g. Google Ads account, Ads Manager Account 2, etc.) 
along with the IDs to show these names to the user so they have some ease 
in choosing the account. So, what I require is the functionality that the List 
Accessible Accounts 

 provide 
but instead of only providing the IDs of the accounts, I also get the names 
of the accounts. 

I am sure there should be some method to achieve this, can you point out 
which one?

Also, in the earlier response, as Carmela pointed out that to fetch the 
details of the individual account, we will need to use the customer_client 
 
report. 
But I think it will be an inefficient use of the resources if we were to 
get the list of IDs and then iterate over the list and make API calls to 
get the name of each Ads account. Also, it will quickly kill the API usage 
quota. So, can you point out if any efficient solution exists to solve this 
issue?

Really grateful for the awesome support

Regards, 
Adil


On Tuesday, April 12, 2022 at 8:01:45 PM UTC+5 adsapi wrote:

> Hello Muhammad,
>
> Thanks for reaching out to the Google Ads API Forum. Unfortunately there 
> is no way to add multiple MCC account Id to fetch the list of accessible 
> accounts. Feel free to use our sample code list-accessible-customers 
> 
>  
> to retrieve the customer IDs accessible by the user.
>
> List Accessible Accounts 
> 
>  
> provides the list of accounts you are a direct user on. To illustrate this, 
> if you are a user in 3 MCC's that have deep hierarchies and 2 regular ads 
> accounts you will get 5 accounts returned. To get the similar list of 
> accounts in the UI you would click on the top right representation of your 
> Google Account and the same list should be there for you to pick from.
>
> And by using Get Account Hierarchy 
> 
>  
> it will get the account hierarchy 
>  of your manager 
> account. You aren't necessarily a user in all accounts that are in the 
> hierarchy, only because you are a user in an MCC that has access can you 
> see those accounts. Feel free to get back to us if you have any questions.
>
> Best Regards,
> [image: Google Logo] 
> Jakeia Sabrina 
> Google Ads API Team  
>
> ref:_00D1U1174p._5004Q2ZM01g: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 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4c22661e-4672-4a76-9f61-9f4e620bd4e0n%40googlegroups.com.


Re: Get the names of the customer accounts using listAccessibleCustomers

2022-04-13 Thread Muhammad Adil
  Hello.

Thanks for the response Jakeia. I still have some confusion regarding the 
API. I think I did not make myself very clear in the above questions. 

I am able to get the account IDs (e.g. 123-456-789, etc.) using the List 
Accessible Accounts 

 call. 
The behavior is exactly as you mentioned in your reply and that is the 
behavior that I require. The only thing that is missing is that I also *require 
the Account Names *(e.g. Google Ads account, Ads Manager Account 2, etc.) 
along with the IDs to show these names to the user so they have some ease 
in choosing the account. So, what I require is the functionality that the List 
Accessible Accounts 

 provide 
but instead of only providing the IDs of the accounts, I also get the names 
of the accounts. 

I am sure there should be some method to achieve this, can you point out 
which one?

Also, in the earlier response, as Carmela pointed out that to fetch the 
details of the individual account, we will need to use the customer_client 
 
report. 
But I think it will be an inefficient use of the resources if we were to 
get the list of IDs and then iterate over the list and make API calls to 
get the name of each Ads account. Also, it will quickly kill the API usage 
quota. So, can you point out if any efficient solution exists to solve this 
issue?

Really grateful for the awesome support

Regards, 
Adil


On Tuesday, April 12, 2022 at 8:01:45 PM UTC+5 adsapi wrote:

> Hello Muhammad,
>
> Thanks for reaching out to the Google Ads API Forum. Unfortunately there 
> is no way to add multiple MCC account Id to fetch the list of accessible 
> accounts. Feel free to use our sample code list-accessible-customers 
> 
>  
> to retrieve the customer IDs accessible by the user.
>
> List Accessible Accounts 
> 
>  
> provides the list of accounts you are a direct user on. To illustrate this, 
> if you are a user in 3 MCC's that have deep hierarchies and 2 regular ads 
> accounts you will get 5 accounts returned. To get the similar list of 
> accounts in the UI you would click on the top right representation of your 
> Google Account and the same list should be there for you to pick from.
>
> And by using Get Account Hierarchy 
> 
>  
> it will get the account hierarchy 
>  of your manager 
> account. You aren't necessarily a user in all accounts that are in the 
> hierarchy, only because you are a user in an MCC that has access can you 
> see those accounts. Feel free to get back to us if you have any questions.
>
> Best Regards,
> [image: Google Logo] 
> Jakeia Sabrina 
> Google Ads API Team  
>
> ref:_00D1U1174p._5004Q2ZM01g: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 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/eaf8d037-095c-47c9-a0a0-7bc32b3d54c9n%40googlegroups.com.


Re: Get the names of the customer accounts using listAccessibleCustomers

2022-04-13 Thread Muhammad Adil
Hello.

Thanks for the response. I still have some confusion regarding the API. I 
think I did not make myself very clear in the above questions. 

[image: ads2.png]


Looking at the above image, I am able to get the account IDs (e.g. 
123-456-789, etc.) using the List Accessible Accounts 

 call. 
The behavior is exactly as you mentioned in your reply and that is the 
behavior that I require. The only thing that is missing is that I also *require 
the Account Names *(e.g. Google Ads account, Ads Manager Account 2, etc.) 
along with the IDs to show these names to the user so they have some ease 
in choosing the account. So, what I require is the functionality that the List 
Accessible Accounts 

 provide 
but instead of only providing the IDs of the accounts, I also get the names 
of the accounts. 

I am sure there should be some method to achieve this, can you point out 
which one?

Also, as pointed out in the earlier response, to fetch the details of the 
individual account, we will need to use the customer_client 
 
report. 
But I think it will be an inefficient use of the resources if we were to 
get the list of IDs and then iterate over the list and make API calls to 
get the name of each Ads account. Also, it will quickly kill the API usage 
quota. So, can you point out if any efficient solution exists to solve this 
issue?

Really grateful for the awesome support

Regards, 
Adil


On Tuesday, April 12, 2022 at 8:01:45 PM UTC+5 adsapi wrote:

> Hello Muhammad,
>
> Thanks for reaching out to the Google Ads API Forum. Unfortunately there 
> is no way to add multiple MCC account Id to fetch the list of accessible 
> accounts. Feel free to use our sample code list-accessible-customers 
> 
>  
> to retrieve the customer IDs accessible by the user.
>
> List Accessible Accounts 
> 
>  
> provides the list of accounts you are a direct user on. To illustrate this, 
> if you are a user in 3 MCC's that have deep hierarchies and 2 regular ads 
> accounts you will get 5 accounts returned. To get the similar list of 
> accounts in the UI you would click on the top right representation of your 
> Google Account and the same list should be there for you to pick from.
>
> And by using Get Account Hierarchy 
> 
>  
> it will get the account hierarchy 
>  of your manager 
> account. You aren't necessarily a user in all accounts that are in the 
> hierarchy, only because you are a user in an MCC that has access can you 
> see those accounts. Feel free to get back to us if you have any questions.
>
> Best Regards,
> [image: Google Logo] 
> Jakeia Sabrina 
> Google Ads API Team  
>
> ref:_00D1U1174p._5004Q2ZM01g: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 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8e38a09d-9eee-4ead-b75e-c97df9546bcen%40googlegroups.com.


Re: Get the names of the customer accounts using listAccessibleCustomers

2022-04-13 Thread Muhammad Adil
Hello.

Thanks for the response Jakeia. I still have some confusion regarding the 
API. I think I did not make myself very clear in the above questions. 

[image: ads2.png]


Looking at the above image, I am able to get the account IDs (e.g. 
123-456-789, etc.) using the List Accessible Accounts 

 call. 
The behavior is exactly as you mentioned in your reply and that is the 
behavior that I require. The only thing that is missing is that I also *require 
the Account Names *(e.g. Google Ads account, Ads Manager Account 2, etc.) 
along with the IDs to show these names to the user so they have some ease 
in choosing the account. So, what I require is the functionality that the List 
Accessible Accounts 

 provide 
but instead of only providing the IDs of the accounts, I also get the names 
of the accounts. 

I am sure there should be some method to achieve this, can you point out 
which one?

Also, in the earlier response, as Carmela pointed out that to fetch the 
details of the individual account, we will need to use the customer_client 
 
report. 
But I think it will be an inefficient use of the resources if we were to 
get the list of IDs and then iterate over the list and make API calls to 
get the name of each Ads account. Also, it will quickly kill the API usage 
quota. So, can you point out if any efficient solution exists to solve this 
issue?

Really grateful for the awesome support

Regards, 
Adil

On Tuesday, April 12, 2022 at 8:01:45 PM UTC+5 adsapi wrote:

> Hello Muhammad,
>
> Thanks for reaching out to the Google Ads API Forum. Unfortunately there 
> is no way to add multiple MCC account Id to fetch the list of accessible 
> accounts. Feel free to use our sample code list-accessible-customers 
> 
>  
> to retrieve the customer IDs accessible by the user.
>
> List Accessible Accounts 
> 
>  
> provides the list of accounts you are a direct user on. To illustrate this, 
> if you are a user in 3 MCC's that have deep hierarchies and 2 regular ads 
> accounts you will get 5 accounts returned. To get the similar list of 
> accounts in the UI you would click on the top right representation of your 
> Google Account and the same list should be there for you to pick from.
>
> And by using Get Account Hierarchy 
> 
>  
> it will get the account hierarchy 
>  of your manager 
> account. You aren't necessarily a user in all accounts that are in the 
> hierarchy, only because you are a user in an MCC that has access can you 
> see those accounts. Feel free to get back to us if you have any questions.
>
> Best Regards,
> [image: Google Logo] 
> Jakeia Sabrina 
> Google Ads API Team  
>
> ref:_00D1U1174p._5004Q2ZM01g: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 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d4850037-ef24-4f8d-805c-8398ce5c3d82n%40googlegroups.com.


Re: Get the names of the customer accounts using listAccessibleCustomers

2022-04-13 Thread Muhammad Adil
Hello,

Thanks, Jakeia for the reply. I still have some confusion here regarding 
the API. Maybe I am not explaining my issue properly. 

[image: ads2.png]

Looking at the above image, I am able to get the Ads Customer IDs (e.g. 
123-456-789) by using the ListAccessibleCustomers. It is behaving exactly 
the way you explained above. And that is the behavior that I require. The 
only problem is that with the ID, I am unable to get the account names 
(e.g. Google Ads Account or Ads Manager Account 2, etc.). Which API 
endpoint or query will help me get the list of all these accessible 
customers along with both

   1. their customer ID and
   2. their account name

I definitely think there should be some endpoint that I can use to get a 
list of all the accounts along with their details and not just ID. Can you 
point out which one is it? 

As Carmela described in an earlier response, we can use customer_client 
 
report 
to get the detail of an individual account. But I think it will be very 
inefficient if we were to first fetch the list of IDs and then iterate over 
these IDs and use the API call to get the name of each resource separately. 
It will be wasting a lot of API quota. Is there any other way that can make 
it possible? 

Thank you for helping

Regards,
Adil

On Tuesday, April 12, 2022 at 8:01:45 PM UTC+5 adsapi wrote:

> Hello Muhammad,
>
> Thanks for reaching out to the Google Ads API Forum. Unfortunately there 
> is no way to add multiple MCC account Id to fetch the list of accessible 
> accounts. Feel free to use our sample code list-accessible-customers 
> 
>  
> to retrieve the customer IDs accessible by the user.
>
> List Accessible Accounts 
> 
>  
> provides the list of accounts you are a direct user on. To illustrate this, 
> if you are a user in 3 MCC's that have deep hierarchies and 2 regular ads 
> accounts you will get 5 accounts returned. To get the similar list of 
> accounts in the UI you would click on the top right representation of your 
> Google Account and the same list should be there for you to pick from.
>
> And by using Get Account Hierarchy 
> 
>  
> it will get the account hierarchy 
>  of your manager 
> account. You aren't necessarily a user in all accounts that are in the 
> hierarchy, only because you are a user in an MCC that has access can you 
> see those accounts. Feel free to get back to us if you have any questions.
>
> Best Regards,
> [image: Google Logo] 
> Jakeia Sabrina 
> Google Ads API Team  
>
> ref:_00D1U1174p._5004Q2ZM01g: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 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4fbe051e-5c90-435b-8d96-4ee4a31d69c3n%40googlegroups.com.


Re: Get the names of the customer accounts using listAccessibleCustomers

2022-04-12 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hello Muhammad,

Thanks for reaching out to the Google Ads API Forum. Unfortunately there is no 
way to add multiple MCC account Id to fetch the list of accessible accounts. 
Feel free to use our sample code list-accessible-customers to retrieve the 
customer IDs accessible by the user.

List Accessible Accounts provides the list of accounts you are a direct user 
on. To illustrate this, if you are a user in 3 MCC's that have deep hierarchies 
and 2 regular ads accounts you will get 5 accounts returned. To get the similar 
list of accounts in the UI you would click on the top right representation of 
your Google Account and the same list should be there for you to pick from.

And by using Get Account Hierarchy it will get the account hierarchy of your 
manager account. You aren't necessarily a user in all accounts that are in the 
hierarchy, only because you are a user in an MCC that has access can you see 
those accounts. Feel free to get back to us if you have any questions.

Best Regards,

Jakeia Sabrina
Google Ads API Team
ref:_00D1U1174p._5004Q2ZM01g: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 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/GDELu0RA8F2G00IKwR4gxCRxmcMwqa02ajeA%40sfdc.net.


Re: Get the names of the customer accounts using listAccessibleCustomers

2022-04-11 Thread Muhammad Adil
Hello, 

Thank you for your response. I had given this approach a thought. I think 
the problem with this is that if we have to list down 20 accounts, we will 
have to send 20 requests to get the names of all the top-level or manager 
accounts names, which will make the process extremely slow and 
inefficient.  Or, can we generate this report by giving multiple manager 
IDs so we can get all of them in one go? Or more ideally, is there a 
scenario where we can replace the ListAccessibleCustomers method with this 
report? 

Regards,
Adil

On Tuesday, April 12, 2022 at 10:21:37 AM UTC+5 adsapi wrote:

> Hi Muhammad,
>
> Thank you for raising this concern to the Google Ads API team.
>
> Moving forward to your concern, I see that you used the 
> ListAccessibleCustomers method. As per this document 
> ,
>  
> the expected response for this call is the resource name of customers 
> directly accessible by the user authenticating the call. That said,if you 
> want to get further information about the account, then you will need to 
> use the customer_client 
>  
> report. 
> Also, kindly note to include the customer_client.descriptive_name 
> 
>  for 
> you to get the names of the accounts.
>
> I hope this helps. Let us know if you have further questions.
>
> Regards,
> [image: Google Logo] 
> Carmela 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2ZM01g: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 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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c02b69e6-c5fd-474a-ab67-43cf5e8645a6n%40googlegroups.com.


Get the names of the customer accounts using listAccessibleCustomers

2022-04-11 Thread Muhammad Adil
Hello, 

I am able to get the IDs of the accounts with 
listAccessibleCustomers method but I would also like to get the account 
names along with the IDs. The main aim is to get all accessible accounts 
along with their name. Is it possible to do so through this endpoint? If 
not, which other API endpoint or approach will be best to do this? 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/588a0f3b-18ad-47eb-9ff0-6c39911ccb90n%40googlegroups.com.