Re: Google Ads API V4 - Get AccountHierarchy

2020-07-17 Thread Vinitha Khambadkar
Hello Mitchell,

I have send the logs directly to  the email address mentioned. 
Waiting for a response here. Please let me know if more info needed.

Thank you,
Vinitha. 

On Friday, July 17, 2020 at 7:22:28 AM UTC-7 adsapiforumadvisor wrote:

> Hi Vinitha,
>
> If you are still having an issue with the reply privately button, please 
> send the logs directly to googleadsa...@google.com. The print statement 
> in the example should print "-"s that indicate the level of each account.
>
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5004Q21mPvZ: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 
"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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2101b68c-fa1c-4d40-90a6-6ee500968c6fn%40googlegroups.com.


Re: Google Ads API V4 - Get AccountHierarchy

2020-07-16 Thread Vinitha Khambadkar
On Thursday, July 16, 2020 at 10:29:34 AM UTC-7 Vinitha Khambadkar wrote:

> Hello Mitchell,
> Thank you for the response.
> NOTE:  *via Reply privately to author* is grayed out for me. (please 
> enable that for me as it is enabled in the browser settings)
> Some more info, As i mentioned i am using the same code from 
> https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy#c
>  
> to retrieve all accounts info.
> But my issue is this :
>
> There are multiple accounts under my login account. and there are multiple 
> sub-accounts linked to all the accounts. I get all the clients resource 
> name as below:
> *What i get back* :  customers/*M1*/customerClients/C1 ,  
> customers/*M1*/customerClients/p1 
> or  customers/*M1*/customerClients/L1
> *What i expect/need* :  customers/M*1*/customerClients/C1, 
> customers/*C1*/customerClients/p1 
> or  customers/*y2*/customerClients/L1
>
> I need the direct parent customer info and not indirect one which straight 
> links to Login Customer.
> 
>
>
> I tried the below:
> 1)  giving a where clause to const string query = @"SELECT
> 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,
> customer_client.resource_name
> FROM customer_client - resulted in error
> 2)  Tried giving P1 as customerId  
> PagedEnumerable response =
> googleAdsServiceClient.Search(
> customerId.ToString(),
> query,
> pageSize: PAGE_SIZE
> ); - resulted in *USER_PERMISSION_DENIED *
>
> Please let me know if you need more info on the issue..
> On Thursday, July 16, 2020 at 7:55:24 AM UTC-7 adsapiforumadvisor wrote:
>
>> Hi Vinitha,
>>
>> Thank you for reaching out. Please see here 
>> <https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy#c>
>>  
>> for information on getting the account hierarchy. As it says, it is 
>> necessary to provide the login-customer-id as this will be the starting 
>> point for returning the accounts. The sample code runs recursively to get 
>> the accounts linked to sub-manager accounts as well. If you continue to 
>> have issues with this, please share your client customer ID and complete 
>> detailed request and response logs *via Reply privately to author *so I 
>> can further investigate the issue. You can find information on enabling 
>> logging here 
>> <https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>
>> .
>>
>> Regards,
>> Mitchell
>> Google Ads API Team
>>
>> ref:_00D1U1174p._5004Q21mPvZ: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 
"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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/da40633f-a26a-4406-890b-6a6dd074883en%40googlegroups.com.


Re: Google Ads API V4 - Get AccountHierarchy

2020-07-16 Thread Vinitha Khambadkar
Hello Mitchell,
Thank you for the response.
NOTE:  *via Reply privately to author* is grayed out for me. (please enable 
that for me as it is enabled in the browser settings)
Some more info, As i mentioned i am using the same code from 
https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy#c
 
to retrieve all accounts info.
But my issue is this :

There are multiple accounts under my login account. and there are multiple 
sub-accounts linked to all the accounts. I get all the clients resource 
name as below:
*What i get back* :  customers/*M1*/customerClients/C1 ,  
customers/*M1*/customerClients/p1 
or  customers/*M1*/customerClients/L1
*What i expect/need* :  customers/M*1*/customerClients/C1, 
customers/*C1*/customerClients/p1 
or  customers/*y2*/customerClients/L1

I need the direct parent customer info and not indirect one which straight 
links to Login Customer.



I tried the below:
1)  giving a where clause to const string query = @"SELECT
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,
customer_client.resource_name
FROM customer_client - resulted in error
2)  Tried giving P1 as customerId  PagedEnumerable response =
googleAdsServiceClient.Search(
customerId.ToString(),
query,
pageSize: PAGE_SIZE
); - resulted in *USER_PERMISSION_DENIED *

Please let me know if you need more info on the issue..
On Thursday, July 16, 2020 at 7:55:24 AM UTC-7 adsapiforumadvisor wrote:

> Hi Vinitha,
>
> Thank you for reaching out. Please see here 
> 
>  
> for information on getting the account hierarchy. As it says, it is 
> necessary to provide the login-customer-id as this will be the starting 
> point for returning the accounts. The sample code runs recursively to get 
> the accounts linked to sub-manager accounts as well. If you continue to 
> have issues with this, please share your client customer ID and complete 
> detailed request and response logs *via Reply privately to author *so I 
> can further investigate the issue. You can find information on enabling 
> logging here 
> 
> .
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5004Q21mPvZ: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 
"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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e0391963-73f1-4726-9f83-a0317cc237bbn%40googlegroups.com.


Google Ads API V4 - Get AccountHierarchy

2020-07-15 Thread Vinitha Khambadkar
Hello ,

I am using the .net version of the code to fetch all Clients at all levels 
using the query below
const string query = @"SELECT
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,
customer_client.resource_name
FROM customer_client
WHERE
customer_client.level <= 3";
Successfully i get a list but it is flat with all clients at different 
levels.
My issue is i need to hierarchically create a tree with different levels. I 
need to know the clients that have level 2 is linked to which client on 
level1.

I tried using CustomerClientLink but if i provide a customer ID other than 
Login_CustomerId it throws USER_PERMISSION_DENIED exception. (FYI- this was 
not the behaviour with V2 version as i was previously using.) Please advise.

Thank you,
Vinitha.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/51ba19e2-55b5-44fb-af79-fa8b411b7155n%40googlegroups.com.