Error Accessing Client Account's Campaigns Under Manager Account: "User doesn't have permission to access customer"

2023-08-01 Thread adi aharonov
I am facing an issue while trying to fetch campaigns from a test client 
account under my test manager account using the Google Ads API. While 
executing the query, I receive the following error:

ud {
  errors: [
_d {
  error_code: [p],
  message: "User doesn't have permission to access customer. Note: If 
you're accessing a client customer, the manager's customer id must be set 
in the 'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid;
}
  ],
  request_id: 'mI1hCRLhmiYhN2b8HmdTPQ'
}


I have made sure that I am using the correct manager's customer ID and have 
set it in the 'login-customer-id' header, but I still encounter this error. 
I am trying to get campaigns from a client account that's under the 
management of my manager account, all within a testing environment.

Has anyone encountered a similar issue or can provide guidance on resolving 
this? Is this even possible to achieve using a test account? If this 
approach is not suitable for test accounts, are there alternative solutions 
or workarounds that could be suggested? Any insights, assistance, or 
recommendations would be greatly appreciated.

Thank you!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d70bd904-454d-41bb-81a9-134cc61f721dn%40googlegroups.com.


USER_PERMISSION_DENIED - User doesn't have permission to access customer.

2022-09-28 Thread Jaime Oliver
I am having some real issues trying to use the Google Ads API. 

I have followed all the steps to get the app running and authenticated. I 
am using the LaravelExampleApp from here: 
https://github.com/googleads/google-ads-php/blob/HEAD/examples/LaravelSampleApp/README.md

I am getting this error when trying to run a report : 
"authorizationError":"USER_PERMISSION_DENIED"},"message":"User doesn't have 
permission to access customer. Note: If you're accessing a client customer, 
the manager's customer id must be set in the 'login-customer-id' header.

I am using the developerToken from my live manager account from the API 
Center along with my cientID and clientSecret and refreshToken from the GCP 
Project and OAuth credentials. I created a TEST Manager account so that I 
could create a TEST CLIENT account. I updated those credentials inside the 
google_ads_php.ini file in my project folder.

The app runs but when I try to run a report against the test client account 
using the test client_id I get that error. I tried to link or create the 
test client account inside my live manager account but was unable to do so. 

My developer token is only allowed to run reports on test accounts but it 
doesn't let me run reports on any of the test accounts I created under the 
Test Manager account.

This is all overly complicated. Can anyone provide some assistance?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/dfc253ca-34b9-40ea-a94a-f6ce668db236n%40googlegroups.com.


Re: Login-customer-id as Manager Id but get User doesn't have permission to access customer

2022-07-26 Thread Nhat Ho
Dear Adsapi,
Currently, I am migrate from Adwords to Google Ads API. 
Everything work fine before, my account have access to Google Ads Manager 
account. 
But I don't have permission to view Oauth2 credentials(company policy). 
So my guess the problem is the old credentials don't have access to my 
account 
Is there any method for me to confirm that this is the problem above?

Thanks you for replying
Regards,

On Tuesday, July 26, 2022 at 1:33:48 PM UTC+7 adsapi wrote:

> Hi Nhat,
>
> Thank you for raising this concern to the Google Ads API team.
>  
> With regard to your concern, it appears that you have encountered 
> the authorization_error: USER_PERMISSION_DENIED. Upon seeing the error, it 
> is mentioned that "*User doesn't have permission to access customer.*", 
> that said, kindly note that you will need to ensure that the user / email 
> address you used to generate the credentials indeed has access to the 
> account in your request. If the user / email address has access or is 
> associated with the MCC / manager account, you will need to specify the MCC 
> / manager account's ID without hyphens (-) as the value of the 
> login-customer-id field.
>
> If error still persists even following the above guide, then you may 
> provide the complete request 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>  
> and response 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>  
> logs with request ID 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>  
> and request header 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>
>  generated 
> on your end. If you haven't yet, 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?hl=en>. 
>
> You can provide it via *Reply privately to author* option. If this option 
> is not available, then send it instead on this email address 
> googleadsa...@google.com 
> <https://mail.google.com/mail/u/0/?fs=1=cm=mailto=googleadsapi-supp...@google.com>
> .
>
> Regards,
> [image: Google Logo] 
> Carmela 
> Google Ads API Team 
>
>
> ref:_00D1U1174p._5004Q2d1Qhe: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/b4aa801e-4dc6-4e17-a23e-715241d29f67n%40googlegroups.com.


Login-customer-id as Manager Id but get User doesn't have permission to access customer

2022-07-25 Thread Nhat Ho
Dear Google Ads Support,
Currently, I have set loginCustomerId as ManagerId but when I try to query 
I get permission error.

"SELECT customer_client.id, customer_client.descriptive_name " +
"FROM customer_client " +
"WHERE customer_client.level <= 1"

Error: errors {\n  error_code {\nauthorization_error: 
USER_PERMISSION_DENIED\n  }\n  message: \"User doesn\\'t have permission to 
access customer. Note: If you\\'re accessing a client customer, the 
manager\\'s customer id must be set in the \\'login-customer-id\\' header. 
See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid\"\n}\nrequest_id:
 
\"rotxDQoc2kJusDVsOUqLNQ\"\n\n","timestamp":{"seconds":1658809717,"nanos":61600},"thread":"vert.x-eventloop-thread-2","severity":"ERROR"}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/68f983c4-5091-43be-a989-5e0f6b394186n%40googlegroups.com.


Re: User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header. See https://developers.google

2022-07-06 Thread Mike M
Hmmm. As far as I understand it, the Customer ID used in the URL should be 
the Linked Customer ID. Basically, that's the customer ID where you wish to 
add, modify, or remove data. And you have to be granted permission by the 
other Google Adwords account to be able to do that linkage. The Login 
Customer ID, however, is what I use in the REST header to be the Google 
Adwords account of the account used for the API calls (ie, my developer 
account). The only reason I would make them the same ID is when in fact 
they might be, such as someone using one single Google Adwords account to 
not only do the API call but to affect the same account where you placed 
the API call. In my particular case, I'm working with multiple clients, and 
so I have my Login Customer ID, and then multiple Linked Customer IDs.

So, yes, you are correct if you're likely doing the API call from the same 
account where you wish to make this change. But for other readers of this 
post who have multiple clients, I wanted to address this so that they are 
clear as well. The documentation is not very clear on this.

On Wednesday, July 6, 2022 at 12:20:21 PM UTC-4 khan...@gmail.com wrote:

> Hi,
>
> I found the issue. I was passing correctly the *login-customer-id* the 
> issue was in the URL
> https://googleads.googleapis.com/v11/customers/*[CUSTOMER_ID]*
> /customerClientLinks:mutate
>
> Google says *[CUSTOMER_ID]* should be customer id but it should be equal 
> to *login-customer-id == [CUSTOMER_ID]*
>
> So when I pass the same ID to both parameters API works.
>
> On Wed, Jul 6, 2022 at 8:14 PM Google Ads API Forum Advisor 
>  wrote:
>
>> Hi Aman,
>>
>> Thank you for raising your concern. Allow me to provide support.
>>
>> It appears that you are experiencing the USER_PERMISSION_DENIED error. 
>> This error occurs when you're not specifying the customer ID of the Google 
>> Ads Account, where your login user account / email address (that you've 
>> used to generate Oauth2 credential) has direct access, to the 
>> login-customer-id. If your login user account / email address has access to 
>> the manager account, then its customer id must be set in the 
>> login-customer-id header.
>>
>> If the error persists after trying the provided suggestion, please 
>> provide the email address / user account used in the authentication and the 
>> complete request 
>> 
>>  
>> and response 
>> 
>>  
>> logs with request ID 
>> 
>>  
>> and request header 
>> 
>>  
>> generated on your end to further investigate.
>>
>> You can provide it via *Reply privately to author* option. If this 
>> option is not available, then send it instead on this email address 
>> googleadsa...@google.com.
>>
>> Regards,
>> [image: Google Logo] 
>> Ernie John 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2cT9cV: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/6ed8149b-0e7b-4383-aad4-a48b31a26956n%40googlegroups.com.


Re: User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header. See https://developers.google

2022-07-06 Thread Aman Bansal
Hi,

I found the issue. I was passing correctly the *login-customer-id* the
issue was in the URL
https://googleads.googleapis.com/v11/customers/*[CUSTOMER_ID]*
/customerClientLinks:mutate

Google says *[CUSTOMER_ID]* should be customer id but it should be
equal to *login-customer-id
== [CUSTOMER_ID]*

So when I pass the same ID to both parameters API works.

On Wed, Jul 6, 2022 at 8:14 PM Google Ads API Forum Advisor
 wrote:

> Hi Aman,
>
> Thank you for raising your concern. Allow me to provide support.
>
> It appears that you are experiencing the USER_PERMISSION_DENIED error.
> This error occurs when you're not specifying the customer ID of the Google
> Ads Account, where your login user account / email address (that you've
> used to generate Oauth2 credential) has direct access, to the
> login-customer-id. If your login user account / email address has access to
> the manager account, then its customer id must be set in the
> login-customer-id header.
>
> If the error persists after trying the provided suggestion, please provide
> the email address / user account used in the authentication and the
> complete request
> 
> and response
> 
> logs with request ID
> 
> and request header
> 
> generated on your end to further investigate.
>
> You can provide it via *Reply privately to author* option. If this option
> is not available, then send it instead on this email address
> googleadsapi-supp...@google.com.
>
> Regards,
> [image: Google Logo]
> Ernie John
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2cT9cV: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/CAB0%2BXccC%3Dc%2BaKWPRcbBYHCEJGeCboye83SUz8bRjp%2Bb_dcXtDQ%40mail.gmail.com.


User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header. See https://developers.google.com

2022-07-06 Thread Aman Bansal
When i use python script the api works but rest api does not works it gives 
error

I am using this 
api 
https://developers.google.com/google-ads/api/rest/reference/rest/v11/customers/createCustomerClient

User doesn't have permission to access customer. Note: If you're accessing 
a client customer, the manager's customer id must be set in the 
'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ba4b7d31-0827-465e-8080-aaead541ec0an%40googlegroups.com.


RE: authorization_error: User doesn't have permission to access customer

2022-04-27 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Miguel,

Thank you for reaching out.

To investigate the issue further, could you please provide the complete request 
and response logs, with the request-id? If you haven't yet, logging can be 
enabled by navigating to the Client libraries > Your client library (ex. Java) 
> Logging documentation, which you can access from this link. You can provide 
it via Reply privately to author option. If this option is not available, then 
send it instead on this email address googleadsa...@google.com.

Thanks,

Nirmita
Google Ads API Team
ref:_00D1U1174p._5004Q2aO1U0: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/YKvJS0RB0CZC00Sb5wo9ezS0KkCkOfgfpc3Q%40sfdc.net.


authorization_error: User doesn't have permission to access customer

2022-04-27 Thread Miguel Angel Calleja
Hi
PHP 8
Google Ads V9 => 13.0.0

Im getting the Customer Manager Links from my account 6765096429:

Array
(
[resource_name] => 
customers/6765096429/customerManagerLinks/2508518472~216663108
[status] => ACTIVE
[manager_customer] => customers/2508518472
[manager_link_id] => 216663108
)

At the next step I want to query the Customer Client "customers/2508518472" 
to get their descriptiveName but I receive an authorization error:

authorization_error: User doesn't have permission to access customer. Note: 
If you're accessing a client customer, the manager's customer id must be 
set in the 'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid

Im passsing the customer 6765096429 like customer_login_id in the 
credentials:

$oAuth2Credential = (new OAuth2TokenBuilder())
->withClientId($client_id)
->withClientSecret($secret)
->withRefreshToken($refresh_token)
->build();

$googleAdsClient = (new GoogleAdsClientBuilder())
->withDeveloperToken($developer_token)
->withOAuth2Credential($oAuth2Credential)
->withLoginCustomerId(6765096429)
->build();

// Here, I query customer client 2508518472 to get the descriptiveName
$customerId=2508518472;
$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.test_account,'
. ' customer_client.id FROM customer_client 
limit 1';
$googleAdsServiceClient = $googleAdsClient->getGoogleAdsServiceClient();
$customer = $googleAdsServiceClient->search($customerId, 
$query)->getIterator()->current()->getCustomerClient();

print "name: ".$customer->getDescriptiveName();

At this point I receive the authorization_error

What am I doing wrong?

Best regards




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fcb5e917-1e88-4d21-8249-aed321467f4dn%40googlegroups.com.


Re: Error message of "User doesn't have permission to access customer", but my user does have permission.

2022-03-01 Thread Rachel Suddeth
sing a 
>>> client customer, the manager's customer id must be set in the 
>>> 'login-customer-id' header. See 
>>> https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid\u0012\u0016HcvNuecETNXmZqsUAU1gFA;,
>>>  
>>> "request-id": "HcvNuecETNXmZqsUAU1gFA" } Fault: errors { error_code { 
>>> authorization_error: USER_PERMISSION_DENIED } message: "User doesn\'t have 
>>> permission to access customer. Note: If you\'re accessing a client 
>>> customer, the manager\'s customer id must be set in the 
>>> \'login-customer-id\' header. See 
>>> https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid;
>>>  
>>> } request_id: "HcvNuecETNXmZqsUAU1gFA" [WARNING] 2022-03-01T17:35:20.088Z 
>>> 7a161f66-8ddc-48f0-8352-90f184b7115d Request made: ClientCustomerId: 
>>> 8161358072, Host: googleads.googleapis.com, Method: 
>>> /google.ads.googleads.v9.services.GoogleAdsService/Search, RequestId: 
>>> HcvNuecETNXmZqsUAU1gFA, IsFault: True, FaultMessage: User doesn't have 
>>> permission to access customer. Note: If you're accessing a client customer, 
>>> the manager's customer id must be set in the 'login-customer-id' header. 
>>> See 
>>> https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid
>>>  
>>> [ERROR] 2022-03-01T17:35:20.088Z 7a161f66-8ddc-48f0-8352-90f184b7115d 
>>> Exception caught in decorator: Traceback (most recent call last): File 
>>> "/var/task/helper/search_utility.py", line 82, in queryWithPaging return 
>>> googleAdsService.search(search_request) File 
>>> "/var/task/google/ads/googleads/v9/services/services/google_ads_service/client.py",
>>>  
>>> line 3184, in search response = rpc( File 
>>> "/var/task/google/api_core/gapic_v1/method.py", line 154, in __call__ 
>>> return wrapped_func(*args, **kwargs) File 
>>> "/var/task/google/api_core/grpc_helpers.py", line 66, in 
>>> error_remapped_callable return callable_(*args, **kwargs) File 
>>> "/var/task/grpc/_interceptor.py", line 216, in __call__ response, 
>>> ignored_call = self._with_call(request, File 
>>> "/var/task/grpc/_interceptor.py", line 257, in _with_call return 
>>> call.result(), call File "/var/task/grpc/_interceptor.py", line 126, in 
>>> result raise self._exception File "/var/task/grpc/_interceptor.py", line 
>>> 241, in continuation response, call = self._thunk(new_method).with_call( 
>>> File "/var/task/grpc/_interceptor.py", line 266, in with_call return 
>>> self._with_call(request, File "/var/task/grpc/_interceptor.py", line 257, 
>>> in _with_call return call.result(), call File 
>>> "/var/task/grpc/_interceptor.py", line 126, in result raise self._exception 
>>> File "/var/task/grpc/_interceptor.py", line 241, in continuation response, 
>>> call = self._thunk(new_method).with_call( File 
>>> "/var/task/grpc/_interceptor.py", line 266, in with_call return 
>>> self._with_call(request, File "/var/task/grpc/_interceptor.py", line 254, 
>>> in _with_call call = self._interceptor.intercept_unary_unary(continuation, 
>>> File 
>>> "/var/task/google/ads/googleads/interceptors/exception_interceptor.py", 
>>> line 99, in intercept_unary_unary self._handle_grpc_failure(response) File 
>>> "/var/task/google/ads/googleads/interceptors/exception_interceptor.py", 
>>> line 71, in _handle_grpc_failure raise 
>>> self._get_error_from_response(response) 
>>> google.ads.googleads.errors.GoogleAdsException: (<_InactiveRpcError of RPC 
>>> that terminated with: status = StatusCode.PERMISSION_DENIED details = "The 
>>> caller does not have permission" debug_error_string = " { "created": 
>>> "@1646156119.387356371", "description": "Error received from peer ipv4:
>>> 172.217.9.202:443", "file": "src/core/lib/surface/call.cc", 
>>> "file_line": 1063, "grpc_message": "The caller does not have permission", 
>>> "grpc_status": 7 } " >, <_InactiveRpcError of RPC that terminated with: 
>>> status = StatusCode.PERMISSION_DENIED details = "The caller does not have 
>>> permission" debug_error_string = " { "created": "@1646156119.387356371", 
>>> "description": "Error received from peer ipv4:172.217.9.202:443", 
>>> "file": "src/core/lib/surface/call.cc", "file_line": 1063, "grpc_message": 
>>> "The caller does not have permission", "grpc_status": 7 } " >, errors { 
>>> error_code { authorization_error: USER_PERMISSION_DENIED } message: "User 
>>> doesn\'t have permission to access customer. Note: If you\'re accessing a 
>>> client customer, the manager\'s customer id must be set in the 
>>> \'login-customer-id\' header. See 
>>> https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid;
>>>  
>>> } request_id: "HcvNuecETNXmZqsUAU1gFA" , 'HcvNuecETNXmZqsUAU1gFA')
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8778f551-d98e-4759-8624-211ce0aa6cecn%40googlegroups.com.


Re: Error message of "User doesn't have permission to access customer", but my user does have permission.

2022-03-01 Thread Rachel Suddeth
We have large customers that use these manager accounts, so it's crucial to 
the business that we get this fixed. Right now this error is keeping some 
of the largest customers from getting what they want from Google Ads.

On Tuesday, March 1, 2022 at 12:00:38 PM UTC-6 Rachel Suddeth wrote:

> Just to show that the manager account is indeed authorized, and that the 
> client account does belong to the manager account, there is a query with a 
> successful result:
>
> [DEBUG] 2022-03-01T17:52:25.454Z 15cf012b-bac8-4f6a-bc0c-559ab45eb9ea 
> Request --- Method: 
> /google.ads.googleads.v9.services.GoogleAdsService/Search Host: 
> googleads.googleapis.com
> Headers: {
>  "developer-token": "REDACTED",
>  "login-customer-id": "6363265550", 
> "x-goog-api-client": "gl-python/3.8.12 grpc/1.42.0 gax/2.2.2 gccl/14.1.0",
>  "x-goog-request-params": "customer_id=6363265550" }
> Request: customer_id: "6363265550"
> query: "\n SELECT\n customer_client.id,\n FROM \n customer_client\n 
> WHERE\n customer_client.manager = FALSE\n " 
> page_size: 1000 
>
> Response --- Headers: 
> { "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; 
> ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; 
> ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; 
> v=\"46,43\"", "content-disposition": "attachment", "date": "Tue, 01 Mar 
> 2022 17:52:25 GMT", "request-id": "_1JlfaFEUYSTiq2LhC7qDA" }
>
> Response:
>  results { customer_client { resource_name: 
> "customers/6363265550/customerClients/6945759442" 
> id: 6945759442 } }
>  results { customer_client { resource_name: 
> "customers/6363265550/customerClients/8161358072"  
> id: 8161358072 } } 
> results { customer_client { resource_name: "customers/6363265550
> /customerClients/4244915335" id: 4244915335 } ...
>  } field_mask { paths: "customer_client.id"" }
>
> On Tuesday, March 1, 2022 at 11:50:50 AM UTC-6 Rachel Suddeth wrote:
>
>> The scenario: - I have authorized to use customer id of 6363265550 
>> <(636)%20326-5550>, which is a manager account. I want to look for 
>> information on customer 8161358072, which is managed by 6363265550 
>> <(636)%20326-5550>. Here is what is being logged. Method: 
>> /google.ads.googleads.v9.services.GoogleAdsService/Search Host: 
>> googleads.googleapis.com Headers: { "developer-token": "REDACTED", 
>> "linked-customer-id": "8161358072", "login-customer-id": "6363265550 
>> <(636)%20326-5550>", "x-goog-api-client": "gl-python/3.8.12 grpc/1.42.0 
>> gax/2.2.2 gccl/14.1.0", "x-goog-request-params": "customer_id=8161358072" } 
>> Request: customer_id: "8161358072" query: "SELECT 
>> customer.descriptive_name, 
>> customer.conversion_tracking_setting.cross_account_conversion_tracking_id, 
>> customer.time_zone FROM customer WHERE customer.id = 8161358072" 
>> page_size: 1000 Response --- Headers: { 
>> "google.ads.googleads.v9.errors.googleadsfailure-bin": 
>> "\n\u0001\n\u0002H\u0002\u0012\u0001User doesn't have permission to access 
>> customer. Note: If you're accessing a client customer, the manager's 
>> customer id must be set in the 'login-customer-id' header. See 
>> https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid\u0012\u0016HcvNuecETNXmZqsUAU1gFA;,
>>  
>> "grpc-status-details-bin": "\b\u0007\u0012#The caller does not have 
>> permission\u001a\u0002\
>> nCtype.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure\u0012\u0002\n\u0001\n\u0002H\u0002\u0012\u0001User
>>  
>> <http://nCtype.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure%5Cu0012%5Cu0002%5Cn%5Cu0001%5Cn%5Cu0002H%5Cu0002%5Cu0012%5Cu0001User>
>>  
>> doesn't have permission to access customer. Note: If you're accessing a 
>> client customer, the manager's customer id must be set in the 
>> 'login-customer-id' header. See 
>> https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid\u0012\u0016HcvNuecETNXmZqsUAU1gFA;,
>>  
>> "request-id": "HcvNuecETNXmZqsUAU1gFA" } Fault: errors { error_code { 
>> authorization_error: USER_PERMISSION_DENIED } message: "User doesn\'t have 
>> permission to access customer. Note: If you\'re accessing a client 
>> customer, the manager\'s custo

Re: Error message of "User doesn't have permission to access customer", but my user does have permission.

2022-03-01 Thread Rachel Suddeth
Just to show that the manager account is indeed authorized, and that the 
client account does belong to the manager account, there is a query with a 
successful result:

[DEBUG] 2022-03-01T17:52:25.454Z 15cf012b-bac8-4f6a-bc0c-559ab45eb9ea 
Request --- Method: 
/google.ads.googleads.v9.services.GoogleAdsService/Search Host: 
googleads.googleapis.com
Headers: {
 "developer-token": "REDACTED",
 "login-customer-id": "6363265550", 
"x-goog-api-client": "gl-python/3.8.12 grpc/1.42.0 gax/2.2.2 gccl/14.1.0",
 "x-goog-request-params": "customer_id=6363265550" }
Request: customer_id: "6363265550"
query: "\n SELECT\n customer_client.id,\n FROM \n customer_client\n WHERE\n 
customer_client.manager = FALSE\n " 
page_size: 1000 

Response --- Headers: 
{ "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; 
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; 
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; 
v=\"46,43\"", "content-disposition": "attachment", "date": "Tue, 01 Mar 
2022 17:52:25 GMT", "request-id": "_1JlfaFEUYSTiq2LhC7qDA" }

Response:
 results { customer_client { resource_name: 
"customers/6363265550/customerClients/6945759442" 
id: 6945759442 } }
 results { customer_client { resource_name: 
"customers/6363265550/customerClients/8161358072"  
id: 8161358072 } } 
results { customer_client { resource_name: "customers/6363265550
/customerClients/4244915335" id: 4244915335 } ...
 } field_mask { paths: "customer_client.id"" }

On Tuesday, March 1, 2022 at 11:50:50 AM UTC-6 Rachel Suddeth wrote:

> The scenario: - I have authorized to use customer id of 6363265550 
> <(636)%20326-5550>, which is a manager account. I want to look for 
> information on customer 8161358072, which is managed by 6363265550 
> <(636)%20326-5550>. Here is what is being logged. Method: 
> /google.ads.googleads.v9.services.GoogleAdsService/Search Host: 
> googleads.googleapis.com Headers: { "developer-token": "REDACTED", 
> "linked-customer-id": "8161358072", "login-customer-id": "6363265550 
> <(636)%20326-5550>", "x-goog-api-client": "gl-python/3.8.12 grpc/1.42.0 
> gax/2.2.2 gccl/14.1.0", "x-goog-request-params": "customer_id=8161358072" } 
> Request: customer_id: "8161358072" query: "SELECT 
> customer.descriptive_name, 
> customer.conversion_tracking_setting.cross_account_conversion_tracking_id, 
> customer.time_zone FROM customer WHERE customer.id = 8161358072" 
> page_size: 1000 Response --- Headers: { 
> "google.ads.googleads.v9.errors.googleadsfailure-bin": 
> "\n\u0001\n\u0002H\u0002\u0012\u0001User doesn't have permission to access 
> customer. Note: If you're accessing a client customer, the manager's 
> customer id must be set in the 'login-customer-id' header. See 
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid\u0012\u0016HcvNuecETNXmZqsUAU1gFA;,
>  
> "grpc-status-details-bin": "\b\u0007\u0012#The caller does not have 
> permission\u001a\u0002\
> nCtype.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure\u0012\u0002\n\u0001\n\u0002H\u0002\u0012\u0001User
>  
> <http://nCtype.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure%5Cu0012%5Cu0002%5Cn%5Cu0001%5Cn%5Cu0002H%5Cu0002%5Cu0012%5Cu0001User>
>  
> doesn't have permission to access customer. Note: If you're accessing a 
> client customer, the manager's customer id must be set in the 
> 'login-customer-id' header. See 
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid\u0012\u0016HcvNuecETNXmZqsUAU1gFA;,
>  
> "request-id": "HcvNuecETNXmZqsUAU1gFA" } Fault: errors { error_code { 
> authorization_error: USER_PERMISSION_DENIED } message: "User doesn\'t have 
> permission to access customer. Note: If you\'re accessing a client 
> customer, the manager\'s customer id must be set in the 
> \'login-customer-id\' header. See 
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid;
>  
> } request_id: "HcvNuecETNXmZqsUAU1gFA" [WARNING] 2022-03-01T17:35:20.088Z 
> 7a161f66-8ddc-48f0-8352-90f184b7115d Request made: ClientCustomerId: 
> 8161358072, Host: googleads.googleapis.com, Method: 
> /google.ads.googleads.v9.services.GoogleAdsService/Search, RequestId: 
> HcvNuecETNXmZqsUAU1gFA, IsFault: True, FaultMessage: User doesn't have 
> permission to access customer. Note: If you're accessing a client cus

Re: Error message of "User doesn't have permission to access customer", but my user does have permission.

2022-03-01 Thread Rachel Suddeth

Just to show that the manager account is indeed authorized, and that the 
client account does belong to the manager account, there is a query with a 
successful result:

[DEBUG] 2022-03-01T17:52:25.454Z 15cf012b-bac8-4f6a-bc0c-559ab45eb9ea 
Request --- Method: 
/google.ads.googleads.v9.services.GoogleAdsService/Search Host: 
googleads.googleapis.com 
Headers: {
 "developer-token": "REDACTED",
 "login-customer-id": "6363265550", 
"x-goog-api-client": "gl-python/3.8.12 grpc/1.42.0 gax/2.2.2 gccl/14.1.0",
 "x-goog-request-params": "customer_id=6363265550" } 
Request: customer_id: "6363265550" 
query: "\n SELECT\n customer_client.id,\n FROM \n customer_client\n WHERE\n 
customer_client.manager = FALSE\n " 
page_size: 1000 

Response --- Headers: 
{ "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; 
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; 
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; 
v=\"46,43\"", "content-disposition": "attachment", "date": "Tue, 01 Mar 
2022 17:52:25 GMT", "request-id": "_1JlfaFEUYSTiq2LhC7qDA" }

Response:
 results { customer_client { resource_name: 
"customers/6363265550/customerClients/6945759442" id: 6945759442 } }
 results { customer_client { resource_name: 
"customers/6363265550/customerClients/8161358072"  id: 8161358072 } } 
results { customer_client { resource_name: 
"customers/6363265550/customerClients/4244915335" descriptive_name: 
"Lebowski Rug Retrieval Service" id: 4244915335 } ...
 } field_mask { paths: "customer_client.id"" }
On Tuesday, March 1, 2022 at 11:50:50 AM UTC-6 Rachel Suddeth wrote:

> The scenario: - I have authorized to use customer id of 6363265550 
> <(636)%20326-5550>, which is a manager account. I want to look for 
> information on customer 8161358072, which is managed by 6363265550 
> <(636)%20326-5550>. Here is what is being logged. Method: 
> /google.ads.googleads.v9.services.GoogleAdsService/Search Host: 
> googleads.googleapis.com Headers: { "developer-token": "REDACTED", 
> "linked-customer-id": "8161358072", "login-customer-id": "6363265550 
> <(636)%20326-5550>", "x-goog-api-client": "gl-python/3.8.12 grpc/1.42.0 
> gax/2.2.2 gccl/14.1.0", "x-goog-request-params": "customer_id=8161358072" } 
> Request: customer_id: "8161358072" query: "SELECT 
> customer.descriptive_name, 
> customer.conversion_tracking_setting.cross_account_conversion_tracking_id, 
> customer.time_zone FROM customer WHERE customer.id = 8161358072" 
> page_size: 1000 Response --- Headers: { 
> "google.ads.googleads.v9.errors.googleadsfailure-bin": 
> "\n\u0001\n\u0002H\u0002\u0012\u0001User doesn't have permission to access 
> customer. Note: If you're accessing a client customer, the manager's 
> customer id must be set in the 'login-customer-id' header. See 
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid\u0012\u0016HcvNuecETNXmZqsUAU1gFA;,
>  
> "grpc-status-details-bin": "\b\u0007\u0012#The caller does not have 
> permission\u001a\u0002\
> nCtype.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure\u0012\u0002\n\u0001\n\u0002H\u0002\u0012\u0001User
>  
> <http://nCtype.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure%5Cu0012%5Cu0002%5Cn%5Cu0001%5Cn%5Cu0002H%5Cu0002%5Cu0012%5Cu0001User>
>  
> doesn't have permission to access customer. Note: If you're accessing a 
> client customer, the manager's customer id must be set in the 
> 'login-customer-id' header. See 
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid\u0012\u0016HcvNuecETNXmZqsUAU1gFA;,
>  
> "request-id": "HcvNuecETNXmZqsUAU1gFA" } Fault: errors { error_code { 
> authorization_error: USER_PERMISSION_DENIED } message: "User doesn\'t have 
> permission to access customer. Note: If you\'re accessing a client 
> customer, the manager\'s customer id must be set in the 
> \'login-customer-id\' header. See 
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid;
>  
> } request_id: "HcvNuecETNXmZqsUAU1gFA" [WARNING] 2022-03-01T17:35:20.088Z 
> 7a161f66-8ddc-48f0-8352-90f184b7115d Request made: ClientCustomerId: 
> 8161358072, Host: googleads.googleapis.com, Method: 
> /google.ads.googleads.v9.services.GoogleAdsService/Search, RequestId: 
> HcvNuecETNXmZqsUAU1gFA, IsFault: True, FaultMessage: User doesn't have 
> permission to

Error message of "User doesn't have permission to access customer", but my user does have permission.

2022-03-01 Thread Rachel Suddeth
The scenario: - I have authorized to use customer id of 6363265550, which 
is a manager account. I want to look for information on customer 8161358072, 
which is managed by 6363265550. Here is what is being logged. Method: 
/google.ads.googleads.v9.services.GoogleAdsService/Search Host: 
googleads.googleapis.com Headers: { "developer-token": "REDACTED", 
"linked-customer-id": "8161358072", "login-customer-id": "6363265550", 
"x-goog-api-client": "gl-python/3.8.12 grpc/1.42.0 gax/2.2.2 gccl/14.1.0", 
"x-goog-request-params": "customer_id=8161358072" } Request: customer_id: 
"8161358072" query: "SELECT customer.descriptive_name, 
customer.conversion_tracking_setting.cross_account_conversion_tracking_id, 
customer.time_zone FROM customer WHERE customer.id = 8161358072" page_size: 
1000 Response --- Headers: { 
"google.ads.googleads.v9.errors.googleadsfailure-bin": 
"\n\u0001\n\u0002H\u0002\u0012\u0001User doesn't have permission to access 
customer. Note: If you're accessing a client customer, the manager's 
customer id must be set in the 'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid\u0012\u0016HcvNuecETNXmZqsUAU1gFA;,
 
"grpc-status-details-bin": "\b\u0007\u0012#The caller does not have 
permission\u001a\u0002\nCtype.googleapis.com/google.ads.googleads.v9.errors.GoogleAdsFailure\u0012\u0002\n\u0001\n\u0002H\u0002\u0012\u0001User
 
doesn't have permission to access customer. Note: If you're accessing a 
client customer, the manager's customer id must be set in the 
'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid\u0012\u0016HcvNuecETNXmZqsUAU1gFA;,
 
"request-id": "HcvNuecETNXmZqsUAU1gFA" } Fault: errors { error_code { 
authorization_error: USER_PERMISSION_DENIED } message: "User doesn\'t have 
permission to access customer. Note: If you\'re accessing a client 
customer, the manager\'s customer id must be set in the 
\'login-customer-id\' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid; 
} request_id: "HcvNuecETNXmZqsUAU1gFA" [WARNING] 2022-03-01T17:35:20.088Z 
7a161f66-8ddc-48f0-8352-90f184b7115d Request made: ClientCustomerId: 
8161358072, Host: googleads.googleapis.com, Method: 
/google.ads.googleads.v9.services.GoogleAdsService/Search, RequestId: 
HcvNuecETNXmZqsUAU1gFA, IsFault: True, FaultMessage: User doesn't have 
permission to access customer. Note: If you're accessing a client customer, 
the manager's customer id must be set in the 'login-customer-id' header. 
See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid 
[ERROR] 2022-03-01T17:35:20.088Z 7a161f66-8ddc-48f0-8352-90f184b7115d 
Exception caught in decorator: Traceback (most recent call last): File 
"/var/task/helper/search_utility.py", line 82, in queryWithPaging return 
googleAdsService.search(search_request) File 
"/var/task/google/ads/googleads/v9/services/services/google_ads_service/client.py",
 
line 3184, in search response = rpc( File 
"/var/task/google/api_core/gapic_v1/method.py", line 154, in __call__ 
return wrapped_func(*args, **kwargs) File 
"/var/task/google/api_core/grpc_helpers.py", line 66, in 
error_remapped_callable return callable_(*args, **kwargs) File 
"/var/task/grpc/_interceptor.py", line 216, in __call__ response, 
ignored_call = self._with_call(request, File 
"/var/task/grpc/_interceptor.py", line 257, in _with_call return 
call.result(), call File "/var/task/grpc/_interceptor.py", line 126, in 
result raise self._exception File "/var/task/grpc/_interceptor.py", line 
241, in continuation response, call = self._thunk(new_method).with_call( 
File "/var/task/grpc/_interceptor.py", line 266, in with_call return 
self._with_call(request, File "/var/task/grpc/_interceptor.py", line 257, 
in _with_call return call.result(), call File 
"/var/task/grpc/_interceptor.py", line 126, in result raise self._exception 
File "/var/task/grpc/_interceptor.py", line 241, in continuation response, 
call = self._thunk(new_method).with_call( File 
"/var/task/grpc/_interceptor.py", line 266, in with_call return 
self._with_call(request, File "/var/task/grpc/_interceptor.py", line 254, 
in _with_call call = self._interceptor.intercept_unary_unary(continuation, 
File 
"/var/task/google/ads/googleads/interceptors/exception_interceptor.py", 
line 99, in intercept_unary_unary self._handle_grpc_failure(response) File 
"/var/task/google/ads/googleads/interceptors/exception_interceptor.py", 
line 71, in _handle_grpc_failure raise 
self._get_error_from_response(response) 
google.ads.googleads.errors

RE: User doesn't have permission to access customer Error in Google Ads API

2022-01-25 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hello Mark,

Thanks for providing all the information. I understand that you’ve encountered 
the error ‘USER_PERMISSION_DENIED’, usually this error occurs when the 
authorized customer does not have access to the operating customer.
You may double check if your credentials are correct for the said user. With 
that error, I would recommend that you regenerate the refreshToken and the 
OAuth2 credential using an email address which currently has access to your 
Google Ads account. And for setting the login-customer-id header details you 
can find here.

However, in the testing phase, the refresh token will expire in 7 days. Please 
refer to this OAuth guide: 
https://developers.google.com/identity/protocols/oauth2#expiration

If the issue persists, could you please provide us with the complete logs 
(request and response with request-id) via the Reply privately to the author 
option.

Best regards,

Jakeia Sabrina
Google Ads API Team
ref:_00D1U1174p._5004Q2VOrxi: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/49pSc0R69X8R009P1_Kw4NSdWt96wMeVgbyQ%40sfdc.net.


Re: User doesn't have permission to access customer Error in Google Ads API

2022-01-24 Thread Mark Guza
Hello! Thank you for your answer! But i can't get new refresh token and 
OAuth2, because now i have scripts that works on Adwords API ( for example 
to get reports and send 'postbacks'(data) in google.ads, and it all works 
fine. Maybe there is another problem? 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4fb7d79d-d2ee-4b09-8618-743167daf5cbn%40googlegroups.com.


RE: User doesn't have permission to access customer Error in Google Ads API

2022-01-24 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hello Mark,

Thank you for reaching out.

As mentioned that you've encountered the error "USER_PERMISSION_DENIED", it 
usually has following root causes:

The link between the manager and client account was removed.
The OAuth credentials are for a user who does not have direct access to the 
Customer ID specified in the login-customer-id.

With that, I would recommend that you generate the refresh token and the OAuth2 
credential using an email address which currently has access to your Google Ads 
account you've set in the login-customer-id.

Best regards,

Jinky Mandaya
Google Ads API Team
ref:_00D1U1174p._5004Q2VOrxi: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/HMoLx0R68V8I00vBdPszbiR1arjsoBVJ1WMw%40sfdc.net.


Re: User doesn't have permission to access customer Error in Google Ads API

2022-01-24 Thread Mark Guza
Btw: i did all steps in 'Getting Started', install all extensions. And i 
found that when i connect developer token to GoogleAdsClientBuilder with: 
`->withDeveloperToken()`, and when i put some words, for example, 
->withDeveloperToken('test') instead of my original developer token - i 
have the same issue, maybe it's the problem? Developer token is correctly 
100%, because it use now for dowloading reports via Adwords API.

понедельник, 24 января 2022 г. в 14:22:27 UTC+3, Mark Guza: 

> Hello! I try to change our code from Adwords API to Google Ads Api. I did 
> all steps in https://github.com/googleads/google-ads-php ( Getting 
> started). But when i run script GetCampaings.php with my customer id - i 
> have an error. 
> Fault
> ---
> Status code: 7
> Details: The caller does not have permission
> Failure: 
> {"errors":[{"errorCode":{"authorizationError":"USER_PERMISSION_DENIED"},"message":"User
>  
> doesn't have permission to access customer. Note: If you're accessing a 
> client customer, the manager's customer id must be set in the 
> 'login-customer-id' header. See https:\/\/developers.google.com
> \/google-ads\/api\/docs\/concepts\/call-structure#cid"}]
> In Adwords API all works fine. 
> How to fix this problem? Maybe need to put a check mark somewhere? 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3bf38bd2-7a32-43bf-a608-09eaf8e21078n%40googlegroups.com.


User doesn't have permission to access customer Error in Google Ads API

2022-01-24 Thread Mark Guza
Hello! I try to change our code from Adwords API to Google Ads Api. I did 
all steps in https://github.com/googleads/google-ads-php ( Getting 
started). But when i run script GetCampaings.php with my customer id - i 
have an error. 
Fault
---
Status code: 7
Details: The caller does not have permission
Failure: 
{"errors":[{"errorCode":{"authorizationError":"USER_PERMISSION_DENIED"},"message":"User
 
doesn't have permission to access customer. Note: If you're accessing a 
client customer, the manager's customer id must be set in the 
'login-customer-id' header. See 
https:\/\/developers.google.com\/google-ads\/api\/docs\/concepts\/call-structure#cid"}]
In Adwords API all works fine. 
How to fix this problem? Maybe need to put a check mark somewhere? 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e252ba05-db39-492c-bdc1-0f41ae317b90n%40googlegroups.com.


RE: User doesn't have permission to access customer.

2021-06-25 Thread Google Ads API Forum Advisor
Hi Michael,

Thank you for reaching out. My guess is that you created the OAuth2 credential 
using account 2934192297, however, you set the login_customer_id as 2329994790. 
You could either set the login_customer_id as 2934192297 or create the OAuth2 
credentials using manager account 2329994790 to make it consistent.

Thanks and regards,
Xiaoming, Google Ads API Team

Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2Iy9ZV: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/gAoc30QV9S6F003Zj5gO1AQDSyrswygg0Bhw%40sfdc.net.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2021-02-24 Thread Google Ads API Forum Advisor Prod
Hi Austin,

Thank you for the reply. I work with Xiaoming and let me provide support to 
your concern.

So that our team can have a deeper analysis to the issue, could you provide the 
following details via Reply privately to author option to investigate?

Complete API request and response logs with request ID generated on your end 
for omitting and not omitting the 'login-customer-id' and 'manager-id'
email address / user account used to generate Oauth2 credentials


If you haven't enabled the logging of the API transactions for the specific 
client library that you are using, then please refer to the specific guide 
below:

Java - 
https://developers.google.com/google-ads/api/docs/client-libs/java/logging
.Net - 
https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging
PHP - https://developers.google.com/google-ads/api/docs/client-libs/php/logging
Python - 
https://developers.google.com/google-ads/api/docs/client-libs/python/logging
Ruby - 
https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging
Perl - 
https://developers.google.com/google-ads/api/docs/client-libs/perl/logging


Regards,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q2CPk7n: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/q1fQR0QP0XBX00YONClamSRJierxgZZ6R9nQ%40sfdc.net.


Re: User doesn't have permission to access customer - what am I missing?

2021-02-23 Thread Rob Sharp
Hey Mark,

Thanks for your response. Your description of the variables helped me a 
lot. I had the mental model backwards.

I replaced *login-customer-id* with the oauth token UID, and the download 
runs as expected.

Thanks for your help!

On Tuesday, February 23, 2021 at 1:28:51 PM UTC+11 adsapiforumadvisor wrote:

> Hi Rob,
>
> Thanks for raising this to us.
>
> Given the error string (User doesn't have permission to access customer) 
> provided, I can see that you've encountered the USER_PERMISSION_DENIED 
> <https://developers.google.com/google-ads/api/docs/best-practices/common-errors#user_permission_denied>
>  error 
> which signifies that the authorized customer does not have access to the 
> operating customer. That said, could you confirm if the OAuth2 credentials 
> being used was generated from a user’s email address that has an access to 
> the *login-customer-id* found in your API request header? Also, could you 
> confirm if the *login-customer-id *is correct (as the manager account ID 
> without hyphens)? If indeed the user has right access credentials to the 
> *login-customer-id*, could you provide us the details below (via *Reply 
> privately to author* option) so our team can further investigate?
>
>- Complete request 
>
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
> and response 
>
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
> (with request-id 
>
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>) logs 
>- Email Address used to authenticate the API call 
>- Customer ID of the authenticated user 
>
> As an aside, since you're using the Ruby version of the client library, 
> could you try following the configuration guide as mentioned here 
> <https://developers.google.com/google-ads/api/docs/client-libs/ruby/configuration>
> ?
>
> Regards,
> [image: Google Logo] 
> Mark Kevin Albios 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2CThqf: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/e33d51d8-bd83-4cb2-a220-2a2f2dab2661n%40googlegroups.com.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2021-02-23 Thread Austin Becker
Hello Xiaoming, 

I really appreciate your reply. Thank you for looking into this. I could 
not understand the problem after reviewing the code comments in great 
details. 

I see in your response to Lewis that you recommend adding the 
'login-customer-id' in the configuration file. This is where my confusion 
is coming from. The comments in the code state that:

"


*If you don't specify manager ID and login customer ID, the example will 
insteadprint the hierarchies of all accessible customer accounts for 
yourauthenticated Google account.*
"
However, when I do not specify the manager ID and login customer ID, I get 
this "USER PERMISSIONS" error. 

So that's my question. Why do I still get this "USER PERMISSIONS" 
error when I omit the '*login-customer-id*' '*manager-id*' even though the 
code sample comments say that I may omit the '*login-customer-id*' along 
with the '*manager-ID'*? 

It seems to me, after reading the code sample comments, that I should be 
able to omit both and then retrieve the hierarchies of all accounts 
(manager accounts and sub manager accounts included) from the authenticated 
Google Ads account.

Would greatly appreciate your help. 

Thank you,
On Tuesday, February 23, 2021 at 3:38:18 PM UTC-5 adsapiforumadvisor wrote:

> Hi Lewis,
>
> Thank you for reaching out. It’s very likely you didn’t set the 
> 'login-customer-id' in the configuration file. Please do so and try it 
> again.
>
>
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>
> [image: Google Logo] 
> Xiaoming 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2CPk7n: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/f8c1aaf6-9cd0-428c-873c-c75a56d1d507n%40googlegroups.com.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2021-02-23 Thread Google Ads API Forum Advisor Prod
Hi Lewis,

Thank you for reaching out. It’s very likely you didn’t set the 
'login-customer-id' in the configuration file. Please do so and try it again.

Thanks and regards,
Xiaoming, Google Ads API Team



Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2CPk7n: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/vVe7B0QP01BD00lbc_1ZWdSOGJBKjsbb75cg%40sfdc.net.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2021-02-23 Thread Lewis C
Hi Xiaoming,

I'm having the same issue as Austin. Your response doesn't explain why the 
error would occur. 

The code pulls account IDs that the user has access to e.g.
client.service.customer.list_accessible_customers().resource_names

It then trys to pull information about each account to build the hierarchy. 
Why would it say "grpc_message":"The caller does not have 
permission","grpc_status":7" if it's only accessing information about an 
account the API has said you have access to?

Regards,

Lewis


On Thursday, 11 February 2021 at 17:09:27 UTC adsapiforumadvisor wrote:

> Hi Austin,
>
> Thank you for reaching out. This code example would go through the account 
> hierarchy and print them out. If you don’t specify the managerId, then the 
> direct accounts under the authenticated manager would be fetched first to 
> build the hierarchy. Otherwise, if you specify the managerId to query on 
> then you have to specify the loginCustomerId as well. You could read 
> through the comments 
> 
>  
> in the code to better understand how the code works.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>  
> [image: Google Logo] 
> Xiaoming 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2CPk7n: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/88243ad4-6073-4756-95c0-1cc5b83f4708n%40googlegroups.com.


RE: User doesn't have permission to access customer - what am I missing?

2021-02-22 Thread Google Ads API Forum Advisor Prod
Hi Rob,

Thanks for raising this to us.

Given the error string (User doesn't have permission to access customer) 
provided, I can see that you've encountered the USER_PERMISSION_DENIED error 
which signifies that the authorized customer does not have access to the 
operating customer. That said, could you confirm if the OAuth2 credentials 
being used was generated from a user’s email address that has an access to the 
login-customer-id found in your API request header? Also, could you confirm if 
the login-customer-id is correct (as the manager account ID without hyphens)? 
If indeed the user has right access credentials to the login-customer-id, could 
you provide us the details below (via Reply privately to author option) so our 
team can further investigate?

Complete request and response (with request-id) logs
Email Address used to authenticate the API call
Customer ID of the authenticated user

As an aside, since you're using the Ruby version of the client library, could 
you try following the configuration guide as mentioned here?

Regards,

Mark Kevin Albios
Google Ads API Team
ref:_00D1U1174p._5004Q2CThqf: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/07Q9h0QOYMVN00PMIx5wuqRN2YKF1MVNbszw%40sfdc.net.


User doesn't have permission to access customer - what am I missing?

2021-02-22 Thread Rob Sharp
Hi,

I'm downloading customer data using a customer OAuth token.

I'm seeing the following error:

Google::Ads::GoogleAds::Errors::GoogleAdsError(Google::Ads::GoogleAds::Errors::GoogleAdsError):
 
User doesn't have permission to access customer. Note: If you're accessing 
a client customer, the manager's customer id must be set in the 
'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid

My token structure looks like this (Ruby))

client = Google::Ads::GoogleAds::GoogleAdsClient.new do |config|
  config.client_id = ENV.fetch('GOOGLE_CONSUMER_KEY')
  config.client_secret = ENV.fetch('GOOGLE_CONSUMER_SECRET')
  config.developer_token = ENV.fetch('GOOGLE_DEVELOPER_TOKEN')
  config.refresh_token = token['refresh_token'] # customers oauth refresh 
token
  config.logger = Logger.new(STDOUT)
  config.login_customer_id = token['manager_id'] # managers (mcc) ID
end

customer_id = token['uid'] # customers oauth uid

ga_service = client.service.google_ads

responses = ga_service.search_stream(
  :customer_id => customer_id,
  :query => <<~QUERY
 
As far as I can tell, the manager_id has the customer_id as a child. The 
oauth token is valid, and the login_customer_id header is being supplied.

What have I missed to make this run correctly?

Thanks,

 -- Rob

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c68c76ae-20b4-414b-aa50-e926afe26a45n%40googlegroups.com.


RE: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2021-02-11 Thread Google Ads API Forum Advisor Prod
Hi Austin,

Thank you for reaching out. This code example would go through the account 
hierarchy and print them out. If you don’t specify the managerId, then the 
direct accounts under the authenticated manager would be fetched first to build 
the hierarchy. Otherwise, if you specify the managerId to query on then you 
have to specify the loginCustomerId as well. You could read through the 
comments in the code to better understand how the code works.

Thanks and regards,
Xiaoming, Google Ads API Team

Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2CPk7n: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/FNg6L0QODJN8006ttASCTrQH6Vb-pZrVAuOw%40sfdc.net.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2021-02-10 Thread Austin Becker


Hello,

I am using this 'Get Account Hierarchy' script: 
https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy

What I want is to see the full account hierarchy of accounts to which I 
have access with my authenticated email address. This script should show me 
1) direct access accounts 2) manager accounts 3) sub manager accounts. The 
above script successfully shows me accounts to which I have direct access. 
However, it throws the below error on manager accounts:

"
Request made: ClientCustomerId: 3351472384, Host: 
googleads.googleapis.com:443, Method: 
/google.ads.googleads.v6.services.GoogleAdsService/Search, RequestId: 
yd0tvbMgYRXSdHe0a4GL1g, IsFault: True, FaultMessage: User doesn't have 
permission to access customer. Note: If you're accessing a client customer, 
the manager's customer id must be set in the 'login-customer-id' header. 
See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid

Request with ID 'yd0tvbMgYRXSdHe0a4GL1g' failed with status 
'PERMISSION_DENIED' and includes the following errors:
Error with message 'User doesn't have permission to access customer. Note: 
If you're accessing a client customer, the manager's customer id must be 
set in the 'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid
'.
An exception has occurred, use %tb to see the full traceback.
"

I'm not clear on why the error message is that I "don't have permission to 
access customer." even though I can access this customer via the Google Ads 
online UI. I understand that I could, instead of using the above script as 
it is written, I could make a new google-ads.yaml file per manager account 
and get the sub-accounts that way. But that would be cumbersome. Is there 
not a way to get all the account hierarchy with the above script?
On Monday, March 11, 2019 at 10:38:52 AM UTC-4 Ananth Sakthivel wrote:

> *Finally Fixed the Issue. i just updated the library to the stable 
> version(Google.Ads.GoogleAds). then its working fine.*
> *trim empty space if "LoginCustomerId" has.  *
>
> [image: 2019-03-11_20-06-38.png]
>
>
> On Monday, 11 March 2019 15:08:10 UTC+5:30, pe...@meetweet.nl wrote:
>>
>> Hi Sai,
>>
>> A week ago I sent you my credential information and response data in a 
>> private message.
>> Any progress on this issue?
>>
>> Regards,
>> Peter
>>
>> Op woensdag 13 februari 2019 12:47:25 UTC+1 schreef Ananth Sakthivel:
>>>
>>> since yesterday my code was working fine and it's fetching the 
>>> AdsAccount Details through the Service of "GetCustomer()". but today 
>>> onwards its stop working and throwing the Below error,
>>>
>>> *Google.Ads.GoogleAds.Lib.GoogleAdsException*
>>> *  HResult=0x80131500*
>>> *  Message=Status(StatusCode=PermissionDenied, Detail="The caller does 
>>> not have permission")*
>>> *  Source=Google.Api.Gax.Grpc*
>>>
>>> I have already added the "LoginCustomerId" in my config file. but still, 
>>> it's not sorted out.
>>>
>>> My TestManager CustomerID: 2349150893 <(234)%20915-0893>
>>> Developer token:XX
>>> *please have a look on my code below, also I attached the screenshot of 
>>> my errors.*
>>>
>>>  try
>>> {
>>> Client = new GoogleAdsClient();
>>> CustomerService = 
>>> Client.GetService(Services.V0.CustomerService);   
>>> GoogleAdsServiceClient googleAdsService = 
>>> Client.GetService(Services.V0.GoogleAdsService);
>>> SearchGoogleAdsRequest request = new 
>>> SearchGoogleAdsRequest()
>>> {
>>> Query = @"SELECT customer_client.client_customer 
>>> FROM customer_client",
>>> CustomerId = Client.Config.LoginCustomerId
>>> };
>>> PagedEnumerable>> GoogleAdsRow> searchPagedResponse = googleAdsService.Search(request);
>>> object sync = new Object();
>>>
>>> Parallel.ForEach(searchPagedResponse, response =>
>>> {
>>>  lock (sync)
>>>  {
>>>  var ClientDetails = 
>>> CustomerService.GetCustomer(response.CustomerClient.ClientCustomer);//Error 
>>> at this line
>>>  if (!ClientDetails.Manager.Value)
>>>   

RE: :User doesn't have permission to access customer" error when trying to use API for test account

2021-02-05 Thread Google Ads API Forum Advisor Prod
Hi Ľubo,

Thank you for reaching out. This error indicating that you don’t have 
permission to access the customer most probably comes from the fact that you 
were not using the email of account 438-671-3590 to generate the OAuth2 
credentials, however, you were trying to access this manager account. Please 
use the email of 438-671-3590 to generate the OAuth2 credentials and try it 
again. Also keep in mind that you are supposed to add campaigns to a client 
customer account rather than a manager account.

Thanks and regards,
Xiaoming, Google Ads API Team

Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2BdmDL: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/JVUWq0QO2E3200yjGIIA3zR3OsN7x5rM_GYw%40sfdc.net.


Re: User doesn't have permission to access customer.

2020-04-27 Thread Ahmet Enes DABANLIOGLU
I set manager's customer id to login-customer-id. This fix my issue.

Thank you.

On Monday, 27 April 2020 15:48:19 UTC+1, adsapiforumadvisor wrote:
>
> Hi Ahmet,
>
> Thank you for reaching out to us. Could you check that in the 
> login-customer-id field has the manager's customer id? If it does, could 
> you check that the manager account and the customer account are linked? If 
> the login-customer-id field has the manager's customer id, and the customer 
> account is linked under the manager account, could you check that your user 
> with the client credentials that you're using to make the call is given the 
> correct permissions to access this account? You can check if the user has 
> access by logging into your account, then clicking "Tools and Settings" > 
> "Setup" > "Account Access" and your user's email should be listed under the 
> "Users" tab. Let me know if you have further questions.
>
> Thank you,
> Bryan, Google Ads API Team
>
> ref:_00D1U1174p._5001UaSP06: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/73f2dc20-379b-4f7a-8028-97313693c370%40googlegroups.com.


User doesn't have permission to access customer.

2020-04-26 Thread Ahmet Enes DABANLIOGLU
I created a new customer with this code 
https://github.com/googleads/google-ads-php/blob/master/examples/AccountManagement/CreateCustomer.php

When I look linked account, I seeing my test mcc account and everything 
look good. (admin permission etc.)

after that I tried add a campaign under this account with this code 
https://github.com/googleads/google-ads-php/blob/master/examples/BasicOperations/AddCampaigns.php

but I see this error.

===

[2020-04-26T14:27:11.129454+02:00] google-ads.INFO: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v3.services.CustomerService/CreateCustomerClient", 
ClientCustomerId: 133855, RequestId: "FTeid-Bq26C7EkSVIV2dSw", IsFault: 
0, FaultMessage: "None"  

Created a customer with resource name "customers/481193" under the 
manager account with customer ID 133855.

[2020-04-26T14:29:00.011704+02:00] google-ads.WARNING: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v3.services.CampaignBudgetService/MutateCampaignBudgets",
 
ClientCustomerId: 481193XXXX, RequestId: "OmVm383tnrDYE0u-8LlzpA", IsFault: 
1, FaultMessage: "["User doesn't have permission to access customer. Note: 
If you're accessing a client customer, the manager's customer id must be 
set in the 'login-customer-id' header. See 
https:\/\/developers.google.com\/google-ads\/api\/docs\/concepts\/call-structure#login-customer-id"]"
  
[2020-04-26T14:29:00.015405+02:00] google-ads.NOTICE: Request
---
Method Name: 
/google.ads.googleads.v3.services.CampaignBudgetService/MutateCampaignBudgets
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/7.4.4 gapic\/ gax\/1.3.0 grpc\/1.28.0",
"x-goog-request-params": "customer_id=481193",
"developer-token": "REDACTED"
}
Request: 
{"customerId":"481193","operations":[{"create":{"name":"Interplanetary 
Cruise Budget 
#5ea57e8b53734","amountMicros":"50","deliveryMethod":"STANDARD"}}]}

Response
---
Headers: {
"request-id": "OmVm383tnrDYE0u-8LlzpA",
"date": "Sun, 26 Apr 2020 12:28:58 GMT",
"alt-svc": "quic=\":443\"; ma=2592000; v=\"46,43\",h3-Q050=\":443\"; 
ma=2592000,h3-Q049=\":443\"; ma=2592000,h3-Q048=\":443\"; 
ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; 
ma=2592000,h3-T050=\":443\"; ma=2592000"
}

Fault
---
Status code: 7
Details: The caller does not have permission
Failure: 
{"errors":[{"errorCode":{"authorizationError":"USER_PERMISSION_DENIED"},"message":"User
 
doesn't have permission to access customer. Note: If you're accessing a 
client customer, the manager's customer id must be set in the 
'login-customer-id' header. See 
https:\/\/developers.google.com\/google-ads\/api\/docs\/concepts\/call-structure#login-customer-id"}]}
  


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1f854a62-c0bd-49d8-901b-f71dd788fe7e%40googlegroups.com.


RE: 7 PERMISSION_DENIED: User doesn't have permission to access customer

2019-12-16 Thread Google Ads API Forum Advisor Prod
Hello,

Thank you for writing to us. If you are requesting OAuth credentials from a 
manager account and accessing a related customer account, you will need to set 
the login-customer-id header to the customer ID of the manager account, 
removing any hyphens in the Id and customer id in the request code. Could you 
please confirm if you are using the credentials associated with the login 
customer id to make API call? If yes, could you please share the email address 
used while generating Oauth credentials and the client customer id against 
which you are trying to make the API call for me to investigate this further on 
my end?

P.S. Please use Reply privately to author option while sharing the details for 
investigation.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001UOEc2P: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/ruyRP0Q2M7OY000Inikp9ZS2a3L5KWudkizA%40sfdc.net.


Re: 7 PERMISSION_DENIED: User doesn't have permission to access customer

2019-12-16 Thread 'Grzegorz Cieślik' via AdWords API and Google Ads API Forum
Do you have any idea how can i fix it?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/16ac7454-30e1-4345-b48d-5f7a1f84cc87%40googlegroups.com.


Re: 7 PERMISSION_DENIED: User doesn't have permission to access customer

2019-12-16 Thread 'Grzegorz Cieślik' via AdWords API and Google Ads API Forum


W dniu poniedziałek, 16 grudnia 2019 09:25:55 UTC+1 użytkownik Grzegorz 
Cieślik napisał:
>
> Hi,
> I use this lib ( https://github.com/Opteo/google-ads-api) for connect 
> googleAds 
> with my service in node.js. I try connect to my account, but i have this 
> error message.
>
> Error: User doesn't have permission to access customer. Note: If you're 
> accessing a client customer, the manager's customer id must be set in the 
> 'login-customer-id' header. See 
> https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id
> at CustomerClientLinkService. 
> (/home/gcieslik/workspace/export-creator-worker/node_modules/google-ads-api/build/services/service.js:178:23)
> at Generator.throw ()
> at rejected 
> (/home/gcieslik/workspace/export-creator-worker/node_modules/google-ads-api/build/services/service.js:6:65)
>   code: { authorizationError: 2 },
>
>
> My code here
>

 authorize() {

const client = new GoogleAdsApi({
client_id: this.clientId,
client_secret: this.clientSecret,
developer_token: this.developerToken
});

this.customer = client.Customer({
customer_account_id: this.customerAccountId,
login_customer_id: this.loginCustomerId,
refresh_token: this.refreshToken
});
}


 Do you have any idea how can i fix it?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/40bd8d5d-520f-4ded-97bf-a3fe1fb69071%40googlegroups.com.


7 PERMISSION_DENIED: User doesn't have permission to access customer

2019-12-16 Thread 'Grzegorz Cieślik' via AdWords API and Google Ads API Forum
Hi,
I use this lib ( https://github.com/Opteo/google-ads-api) for connect 
googleAds 
with my service in node.js. I try connect to my account, but i have this 
error message.

Error: User doesn't have permission to access customer. Note: If you're 
accessing a client customer, the manager's customer id must be set in the 
'login-customer-id' header. See 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#login-customer-id
at CustomerClientLinkService. 
(/home/gcieslik/workspace/export-creator-worker/node_modules/google-ads-api/build/services/service.js:178:23)
at Generator.throw ()
at rejected 
(/home/gcieslik/workspace/export-creator-worker/node_modules/google-ads-api/build/services/service.js:6:65)
  code: { authorizationError: 2 },


My code here

authorize() {
const client = new GoogleAdsApi({
client_id: this.clientId,
client_secret: this.clientSecret,
developer_token: this.developerToken
});

this.customer = client.Customer({
customer_account_id: this.customerAccountId,
login_customer_id: this.loginCustomerId,
refresh_token: this.refreshToken
});
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/c62b9477-7c3d-4552-a26c-02da030a6eaf%40googlegroups.com.


RE: Private message regarding: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-03-20 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum


Hello Peter,

Poki replied to you privately 2 weeks ago. Looks like the login-customer-id
is not set when she took a look at your logs. One option you would try is
setting loginCustomerId programmatically when you construct your
GoogleAdsClient as shown below:

googleAdsClient = GoogleAdsClient.newBuilder().fromPropertiesFile().
  setLoginCustomerId(2048921294L).build();

If that works, then the issue lies with the configuration file.

@Ananth,

Glad you solved the issue. While adding the LoginCustomerId we should make
sure there are no spaces and no dashes in the ID.

Regards,
Sai Teja, 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ijlio1gj0o018ec3ti000mi5t4x6smj6d1p6so30c1g68qj4cpl%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-03-11 Thread Ananth Sakthivel
*Finally Fixed the Issue. i just updated the library to the stable 
version(Google.Ads.GoogleAds). then its working fine.*
*trim empty space if "LoginCustomerId" has.  *

[image: 2019-03-11_20-06-38.png]


On Monday, 11 March 2019 15:08:10 UTC+5:30, pe...@meetweet.nl wrote:
>
> Hi Sai,
>
> A week ago I sent you my credential information and response data in a 
> private message.
> Any progress on this issue?
>
> Regards,
> Peter
>
> Op woensdag 13 februari 2019 12:47:25 UTC+1 schreef Ananth Sakthivel:
>>
>> since yesterday my code was working fine and it's fetching the AdsAccount 
>> Details through the Service of "GetCustomer()". but today onwards its stop 
>> working and throwing the Below error,
>>
>> *Google.Ads.GoogleAds.Lib.GoogleAdsException*
>> *  HResult=0x80131500*
>> *  Message=Status(StatusCode=PermissionDenied, Detail="The caller does 
>> not have permission")*
>> *  Source=Google.Api.Gax.Grpc*
>>
>> I have already added the "LoginCustomerId" in my config file. but still, 
>> it's not sorted out.
>>
>> My TestManager CustomerID: 2349150893
>> Developer token:XX
>> *please have a look on my code below, also I attached the screenshot of 
>> my errors.*
>>
>>  try
>> {
>> Client = new GoogleAdsClient();
>> CustomerService = 
>> Client.GetService(Services.V0.CustomerService);   
>> GoogleAdsServiceClient googleAdsService = 
>> Client.GetService(Services.V0.GoogleAdsService);
>> SearchGoogleAdsRequest request = new 
>> SearchGoogleAdsRequest()
>> {
>> Query = @"SELECT customer_client.client_customer 
>> FROM customer_client",
>> CustomerId = Client.Config.LoginCustomerId
>> };
>> PagedEnumerable> GoogleAdsRow> searchPagedResponse = googleAdsService.Search(request);
>> object sync = new Object();
>>
>> Parallel.ForEach(searchPagedResponse, response =>
>> {
>>  lock (sync)
>>  {
>>  var ClientDetails = 
>> CustomerService.GetCustomer(response.CustomerClient.ClientCustomer);//Error 
>> at this line
>>  if (!ClientDetails.Manager.Value)
>>  {
>> 
>>  }
>>  }
>>
>> });
>> }
>>
>> [image: 2019-02-13_17-12-10.png]
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7f34f166-316c-493f-80da-01c32ad60a13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-03-11 Thread peter
Hi Sai,

A week ago I sent you my credential information and response data in a 
private message.
Any progress on this issue?

Regards,
Peter

Op woensdag 13 februari 2019 12:47:25 UTC+1 schreef Ananth Sakthivel:
>
> since yesterday my code was working fine and it's fetching the AdsAccount 
> Details through the Service of "GetCustomer()". but today onwards its stop 
> working and throwing the Below error,
>
> *Google.Ads.GoogleAds.Lib.GoogleAdsException*
> *  HResult=0x80131500*
> *  Message=Status(StatusCode=PermissionDenied, Detail="The caller does not 
> have permission")*
> *  Source=Google.Api.Gax.Grpc*
>
> I have already added the "LoginCustomerId" in my config file. but still, 
> it's not sorted out.
>
> My TestManager CustomerID: 2349150893
> Developer token:XX
> *please have a look on my code below, also I attached the screenshot of my 
> errors.*
>
>  try
> {
> Client = new GoogleAdsClient();
> CustomerService = 
> Client.GetService(Services.V0.CustomerService);   
> GoogleAdsServiceClient googleAdsService = 
> Client.GetService(Services.V0.GoogleAdsService);
> SearchGoogleAdsRequest request = new 
> SearchGoogleAdsRequest()
> {
> Query = @"SELECT customer_client.client_customer 
> FROM customer_client",
> CustomerId = Client.Config.LoginCustomerId
> };
> PagedEnumerable 
> searchPagedResponse = googleAdsService.Search(request);
> object sync = new Object();
>
> Parallel.ForEach(searchPagedResponse, response =>
> {
>  lock (sync)
>  {
>  var ClientDetails = 
> CustomerService.GetCustomer(response.CustomerClient.ClientCustomer);//Error 
> at this line
>  if (!ClientDetails.Manager.Value)
>  {
> 
>  }
>  }
>
> });
> }
>
> [image: 2019-02-13_17-12-10.png]
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0e35fd81-389c-4a4a-b8bc-f257561ba669%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-03-11 Thread Ananth Sakthivel
Hello sai,

Please check my previous thread. i have already mentioned that below 
solution is not working for me.

On Tuesday, 5 March 2019 02:27:53 UTC+5:30, googleadsapi-forumadvisor wrote:
>
> Hello Anath,
>
> The other users on this thread added * value="INSERT_LOGIN_CUSTOMER_ID_HERE" />* to their app.config file and 
> was able to fix the issue. Could you please try the same? In general we 
> specify the login-customer-id(to manager authenticating client's account) 
> in the app.config file and then pass the client customer id to the program 
> from which you are pulling the data. if you are still facing the 
> PERMISSON_DENIED error, please share the clientCustomerId and 
> login-customer-id and the user authenticating the call. You could use reply 
> privately to the author option while sharing the details requested.
>
> @Inspired UM
>
> The "Main account"(assuming the user of this account is authenticating the 
> call) CID should be present in the google-ads.yaml file and the 
> clientCustomerId of the "Account" you want to access should be present in 
> the query as customer_id. If you are still facing the PERMISSON_DENIED 
> error, please share the clientCustomerId and login-customer-id and the 
> email address of the user authenticating the call. You could use reply 
> privately to the author option while sharing the details requested.
>
> Regards,
> Sai Teja, Google Adws 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/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> 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 
> 
>
> 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 03/04/19 03:30:55 inspired...@gmail.com  wrote:
>
> Hi Sai,
>
> I still have same issue. 
> I am using google-ads-python library. I followed instructions in README 
> section of library, used provided template, and specified 'login_customer_id' 
> in google-ads.yaml file, but still have "PermissionDenied: 403 The caller 
> does not have permission" error. The account I want to access has a 
> hierarchy like this:
> Main Account/Sub-Account/Sub-sub-Account/Account I want to access. Which 
> ID should go to "google-ads.yaml" file and which to "customer_id" in quety 
> "google_ads_service.search(customer_id, query=query,page_size=1000) "
>
> Thank you
>
>
> On Saturday, 2 March 2019 00:44:58 UTC+2, googleadsapi-forumadvisor wrote:
>
> Hello Everyone,
>
> Looks like some of you have solved the USER_PERMISSION_DENIED error by 
> adding the login-customer-id in the properties file. If you are still 
> facing the issue, could you please go through this blog post 
> 
>  
> and follow the instructions mentioned there to add login-customer-id in the 
> properties file? If you are still facing the issue, could you please go 
> through this blog post and follow the instructions mentioned there to add 
> login-customer-id in the properties file? 
>
> Regards,
> Sai Teja, Google Ads API Team
>
> 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 
> 
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>
> -- 
> -- 
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 
> 

RE: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-03-05 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum


Hello Peter,

Basically, the loginCustomerId is to specify which user is making calls to
the API. If you are making calls on behalf of your client account with the
credentials of the user of your manager account, then the manager account
CID should be placed as loginCustomerId without dashes in the properties
file. If you are making calls to the client account with the credentials of
the user of the account itself then in such case loginCustomerId will be
the CID of the client account. I tried with my test accounts and this is
working fine. Also, it is recommended to upgrade your Java client library
to the latest v0.7.0
 if not
yet upgraded. If you are still facing the PERMISSION_DENIED error. Please
share the loginCustomerId, clientCustomerId and the email address of the
user authenticating the call along with the request _id of the API call for
further investigation. You could use reply privately to the author option
while sharing the information requested.

Regards,
Sai Teja, 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/00d12jebf001g956gm001ujs6ky6smj6d1p6so30c1g68qj4cpl%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-03-04 Thread peter
Hello Sai,

Same problem here. I am using the Java client library with an 
ads.properties file. Before the 11th of Feb it all worked fine. Then, after 
that date I added the *api.googleads.loginCustomerId* property as was 
explained in an earlier Google post. From then on I only get the 
USER_PERMISSION_DENIED message.

I tried the loginCustomerId of the MCC test account (tried it with and 
without dashes), which I think should be the id to use right? I also tried 
the id's of the MCC production account and the test account itself, same 
thing.

Regards,
Peter

Op maandag 4 maart 2019 21:57:53 UTC+1 schreef googleadsapi-forumadvisor:
>
> Hello Anath,
>
> The other users on this thread added * value="INSERT_LOGIN_CUSTOMER_ID_HERE" />* to their app.config file and 
> was able to fix the issue. Could you please try the same? In general we 
> specify the login-customer-id(to manager authenticating client's account) 
> in the app.config file and then pass the client customer id to the program 
> from which you are pulling the data. if you are still facing the 
> PERMISSON_DENIED error, please share the clientCustomerId and 
> login-customer-id and the user authenticating the call. You could use reply 
> privately to the author option while sharing the details requested.
>
> @Inspired UM
>
> The "Main account"(assuming the user of this account is authenticating the 
> call) CID should be present in the google-ads.yaml file and the 
> clientCustomerId of the "Account" you want to access should be present in 
> the query as customer_id. If you are still facing the PERMISSON_DENIED 
> error, please share the clientCustomerId and login-customer-id and the 
> email address of the user authenticating the call. You could use reply 
> privately to the author option while sharing the details requested.
>
> Regards,
> Sai Teja, Google Adws 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/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> 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 
> 
>
> 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 03/04/19 03:30:55 inspired...@gmail.com  wrote:
>
> Hi Sai,
>
> I still have same issue. 
> I am using google-ads-python library. I followed instructions in README 
> section of library, used provided template, and specified 'login_customer_id' 
> in google-ads.yaml file, but still have "PermissionDenied: 403 The caller 
> does not have permission" error. The account I want to access has a 
> hierarchy like this:
> Main Account/Sub-Account/Sub-sub-Account/Account I want to access. Which 
> ID should go to "google-ads.yaml" file and which to "customer_id" in quety 
> "google_ads_service.search(customer_id, query=query,page_size=1000) "
>
> Thank you
>
>
> On Saturday, 2 March 2019 00:44:58 UTC+2, googleadsapi-forumadvisor wrote:
>
> Hello Everyone,
>
> Looks like some of you have solved the USER_PERMISSION_DENIED error by 
> adding the login-customer-id in the properties file. If you are still 
> facing the issue, could you please go through this blog post 
> 
>  
> and follow the instructions mentioned there to add login-customer-id in the 
> properties file? If you are still facing the issue, could you please go 
> through this blog post and follow the instructions mentioned there to add 
> login-customer-id in the properties file? 
>
> Regards,
> Sai Teja, Google Ads API Team
>
> 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 
> 
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>
> -- 
> -- 
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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
> 

RE: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-03-04 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum


Hello Anath,

The other users on this thread added ** to their app.config file and was
able to fix the issue. Could you please try the same? In general we specify
the login-customer-id(to manager authenticating client's account) in the
app.config file and then pass the client customer id to the program from
which you are pulling the data. if you are still facing the
PERMISSON_DENIED error, please share the clientCustomerId and
login-customer-id and the user authenticating the call. You could use reply
privately to the author option while sharing the details requested.

@Inspired UM

The "Main account"(assuming the user of this account is authenticating the
call) CID should be present in the google-ads.yaml file and the
clientCustomerId of the "Account" you want to access should be present in
the query as customer_id. If you are still facing the PERMISSON_DENIED
error, please share the clientCustomerId and login-customer-id and the
email address of the user authenticating the call. You could use reply
privately to the author option while sharing the details requested.

Regards,
Sai Teja, Google Adws 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 03/04/19 03:30:55 inspiredumdigi...@gmail.com wrote:

Hi Sai,

I still have same issue.
I am using google-ads-python library. I followed instructions in README
section of library, used provided template, and  
specified 'login_customer_id'

in google-ads.yaml file, but still have "PermissionDenied: 403 The caller
does not have permission" error. The account I want to access has a
hierarchy like this:
Main Account/Sub-Account/Sub-sub-Account/Account I want to access. Which ID
should go to "google-ads.yaml" file and which to "customer_id" in quety
"google_ads_service.search(customer_id, query=query,page_size=1000) "

Thank you


On Saturday, 2 March 2019 00:44:58 UTC+2, googleadsapi-forumadvisor wrote:

Hello Everyone,

Looks like some of you have solved the USER_PERMISSION_DENIED error by
adding the login-customer-id in the properties file. If you are still
facing the issue, could you please go through this blog post

and follow the instructions mentioned there to add login-customer-id in the
properties file? If you are still facing the issue, could you please go
through this blog post and follow the instructions mentioned there to add
login-customer-id in the properties file?

Regards,
Sai Teja, Google Ads API Team

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


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

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/15d48362-942c-481e-8fc3-2da0ce7493d4%40googlegroups.com

.
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 

Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-03-04 Thread Inspired UM
Hi Sai,

I still have same issue. 
I am using google-ads-python library. I followed instructions in README 
section of library, used provided template, and specified 'login_customer_id' 
in google-ads.yaml file, but still have "PermissionDenied: 403 The caller 
does not have permission" error. The account I want to access has a 
hierarchy like this:
Main Account/Sub-Account/Sub-sub-Account/Account I want to access. Which ID 
should go to "google-ads.yaml" file and which to "customer_id" in quety 
"google_ads_service.search(customer_id, query=query,page_size=1000) "

Thank you


On Saturday, 2 March 2019 00:44:58 UTC+2, googleadsapi-forumadvisor wrote:
>
> Hello Everyone,
>
> Looks like some of you have solved the USER_PERMISSION_DENIED error by 
> adding the login-customer-id in the properties file. If you are still 
> facing the issue, could you please go through this blog post 
> 
>  
> and follow the instructions mentioned there to add login-customer-id in the 
> properties file? If you are still facing the issue, could you please go 
> through this blog post and follow the instructions mentioned there to add 
> login-customer-id in the properties file? 
>
> Regards,
> Sai Teja, Google Ads API Team
>
> 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 
> 
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/15d48362-942c-481e-8fc3-2da0ce7493d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-03-01 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Hello Everyone,

Looks like some of you have solved the USER_PERMISSION_DENIED error by
adding the login-customer-id in the properties file. If you are still
facing the issue, could you please go through this blog post

and follow the instructions mentioned there to add login-customer-id in the
properties file? If you are still facing the issue, could you please go
through this blog post and follow the instructions mentioned there to add
login-customer-id in the properties file?

Regards,
Sai Teja, 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 "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/1a0iqh010dcluu00040vt8w6smj6d1p6so30c1g68qj4cpl%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-02-27 Thread Ananth Sakthivel
hi ,
i am reading "Google Ads API" configuration from Web.config file not from 
app.config. even though i have added that line in my web.config already.but 
no luck.
this error persists only when i pass the "Client Customerid" into 
"GetCustomer()". if i pass my manager account id(LoginCustomerid) and its 
working fine.

On Tuesday, 26 February 2019 23:28:59 UTC+5:30, rentca...@gmail.com wrote:
>
> I solved the issue by adding  value="INSERT_LOGIN_CUSTOMER_ID_HERE" /> to my app.config file.
>
> On Tuesday, February 26, 2019 at 8:59:56 AM UTC-8, rentca...@gmail.com 
> wrote:
>>
>> I'm having the same issue
>>
>> Message: Status(StatusCode=PermissionDenied, Detail="The caller does not 
>> have permission")
>> Failure: { "errors": [ { "errorCode": { "authorizationError": 
>> "USER_PERMISSION_DENIED" }, "message": "User doesn't have permission to 
>> access customer." } ] }
>> Request ID: f9DUeMOoCpc2vCZMc4jjAQ
>> Press [Enter] to continue.
>>
>>
>>
>> On Wednesday, February 13, 2019 at 3:47:25 AM UTC-8, Ananth Sakthivel 
>> wrote:
>>>
>>> since yesterday my code was working fine and it's fetching the 
>>> AdsAccount Details through the Service of "GetCustomer()". but today 
>>> onwards its stop working and throwing the Below error,
>>>
>>> *Google.Ads.GoogleAds.Lib.GoogleAdsException*
>>> *  HResult=0x80131500*
>>> *  Message=Status(StatusCode=PermissionDenied, Detail="The caller does 
>>> not have permission")*
>>> *  Source=Google.Api.Gax.Grpc*
>>>
>>> I have already added the "LoginCustomerId" in my config file. but still, 
>>> it's not sorted out.
>>>
>>> My TestManager CustomerID: 2349150893
>>> Developer token:XX
>>> *please have a look on my code below, also I attached the screenshot of 
>>> my errors.*
>>>
>>>  try
>>> {
>>> Client = new GoogleAdsClient();
>>> CustomerService = 
>>> Client.GetService(Services.V0.CustomerService);   
>>> GoogleAdsServiceClient googleAdsService = 
>>> Client.GetService(Services.V0.GoogleAdsService);
>>> SearchGoogleAdsRequest request = new 
>>> SearchGoogleAdsRequest()
>>> {
>>> Query = @"SELECT customer_client.client_customer 
>>> FROM customer_client",
>>> CustomerId = Client.Config.LoginCustomerId
>>> };
>>> PagedEnumerable>> GoogleAdsRow> searchPagedResponse = googleAdsService.Search(request);
>>> object sync = new Object();
>>>
>>> Parallel.ForEach(searchPagedResponse, response =>
>>> {
>>>  lock (sync)
>>>  {
>>>  var ClientDetails = 
>>> CustomerService.GetCustomer(response.CustomerClient.ClientCustomer);//Error 
>>> at this line
>>>  if (!ClientDetails.Manager.Value)
>>>  {
>>> 
>>>  }
>>>  }
>>>
>>> });
>>> }
>>>
>>> [image: 2019-02-13_17-12-10.png]
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ea103e4a-bf75-4e21-bc4d-793d280ce2e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-02-26 Thread rentcafedev1
I solved the issue by adding  to my app.config file.

On Tuesday, February 26, 2019 at 8:59:56 AM UTC-8, rentca...@gmail.com 
wrote:
>
> I'm having the same issue
>
> Message: Status(StatusCode=PermissionDenied, Detail="The caller does not 
> have permission")
> Failure: { "errors": [ { "errorCode": { "authorizationError": 
> "USER_PERMISSION_DENIED" }, "message": "User doesn't have permission to 
> access customer." } ] }
> Request ID: f9DUeMOoCpc2vCZMc4jjAQ
> Press [Enter] to continue.
>
>
>
> On Wednesday, February 13, 2019 at 3:47:25 AM UTC-8, Ananth Sakthivel 
> wrote:
>>
>> since yesterday my code was working fine and it's fetching the AdsAccount 
>> Details through the Service of "GetCustomer()". but today onwards its stop 
>> working and throwing the Below error,
>>
>> *Google.Ads.GoogleAds.Lib.GoogleAdsException*
>> *  HResult=0x80131500*
>> *  Message=Status(StatusCode=PermissionDenied, Detail="The caller does 
>> not have permission")*
>> *  Source=Google.Api.Gax.Grpc*
>>
>> I have already added the "LoginCustomerId" in my config file. but still, 
>> it's not sorted out.
>>
>> My TestManager CustomerID: 2349150893
>> Developer token:XX
>> *please have a look on my code below, also I attached the screenshot of 
>> my errors.*
>>
>>  try
>> {
>> Client = new GoogleAdsClient();
>> CustomerService = 
>> Client.GetService(Services.V0.CustomerService);   
>> GoogleAdsServiceClient googleAdsService = 
>> Client.GetService(Services.V0.GoogleAdsService);
>> SearchGoogleAdsRequest request = new 
>> SearchGoogleAdsRequest()
>> {
>> Query = @"SELECT customer_client.client_customer 
>> FROM customer_client",
>> CustomerId = Client.Config.LoginCustomerId
>> };
>> PagedEnumerable> GoogleAdsRow> searchPagedResponse = googleAdsService.Search(request);
>> object sync = new Object();
>>
>> Parallel.ForEach(searchPagedResponse, response =>
>> {
>>  lock (sync)
>>  {
>>  var ClientDetails = 
>> CustomerService.GetCustomer(response.CustomerClient.ClientCustomer);//Error 
>> at this line
>>  if (!ClientDetails.Manager.Value)
>>  {
>> 
>>  }
>>  }
>>
>> });
>> }
>>
>> [image: 2019-02-13_17-12-10.png]
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4f518a79-629c-478f-8869-72dd2e86f76b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-02-26 Thread rentcafedev1
I'm having the same issue

Message: Status(StatusCode=PermissionDenied, Detail="The caller does not 
have permission")
Failure: { "errors": [ { "errorCode": { "authorizationError": 
"USER_PERMISSION_DENIED" }, "message": "User doesn't have permission to 
access customer." } ] }
Request ID: f9DUeMOoCpc2vCZMc4jjAQ
Press [Enter] to continue.



On Wednesday, February 13, 2019 at 3:47:25 AM UTC-8, Ananth Sakthivel wrote:
>
> since yesterday my code was working fine and it's fetching the AdsAccount 
> Details through the Service of "GetCustomer()". but today onwards its stop 
> working and throwing the Below error,
>
> *Google.Ads.GoogleAds.Lib.GoogleAdsException*
> *  HResult=0x80131500*
> *  Message=Status(StatusCode=PermissionDenied, Detail="The caller does not 
> have permission")*
> *  Source=Google.Api.Gax.Grpc*
>
> I have already added the "LoginCustomerId" in my config file. but still, 
> it's not sorted out.
>
> My TestManager CustomerID: 2349150893
> Developer token:XX
> *please have a look on my code below, also I attached the screenshot of my 
> errors.*
>
>  try
> {
> Client = new GoogleAdsClient();
> CustomerService = 
> Client.GetService(Services.V0.CustomerService);   
> GoogleAdsServiceClient googleAdsService = 
> Client.GetService(Services.V0.GoogleAdsService);
> SearchGoogleAdsRequest request = new 
> SearchGoogleAdsRequest()
> {
> Query = @"SELECT customer_client.client_customer 
> FROM customer_client",
> CustomerId = Client.Config.LoginCustomerId
> };
> PagedEnumerable 
> searchPagedResponse = googleAdsService.Search(request);
> object sync = new Object();
>
> Parallel.ForEach(searchPagedResponse, response =>
> {
>  lock (sync)
>  {
>  var ClientDetails = 
> CustomerService.GetCustomer(response.CustomerClient.ClientCustomer);//Error 
> at this line
>  if (!ClientDetails.Manager.Value)
>  {
> 
>  }
>  }
>
> });
> }
>
> [image: 2019-02-13_17-12-10.png]
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/245fc337-162b-4197-96b0-18e113475edf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-02-25 Thread Dharun SKT
Hello Sai 

Any progress on this issue? I am also facing the same permission issue from 
last 2 weeks

Regards,
Dharun.


On Wednesday, February 13, 2019 at 10:17:05 PM UTC+5:30, 
googleadsapi-forumadvisor wrote:
>
> Hello Everyone,
>
> Thanks for the update, we are looking into the issue. We will be 
> responding on this thread when we find more information.
>
> Regards,
> Sai Teja, 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/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> 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 
> 
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/46736d91-7829-4447-93f6-716a87ee6d52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-02-25 Thread Pavan M Raj Gowda
I am also facing the same permission issue for the past 2 weeks.

On Tuesday, 19 February 2019 16:06:16 UTC+5:30, Ananth Sakthivel wrote:
>
> Hello Sai,
> did you find any solution for my issue?
>
> On Wednesday, 13 February 2019 22:17:05 UTC+5:30, 
> googleadsapi-forumadvisor wrote:
>>
>> Hello Everyone,
>>
>> Thanks for the update, we are looking into the issue. We will be 
>> responding on this thread when we find more information.
>>
>> Regards,
>> Sai Teja, 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/
>> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>>
>> 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 
>> 
>>
>> Also find us on our blog and discussion group:
>> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
>> https://developers.google.com/adwords/api/community/
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b47a69f5-e811-4472-bd0c-df99747e3b4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-02-25 Thread vandesandtmarc
I have the exact same issue, it worked fine until the 10th of Feb, then on 
the 11th it stopped working.

On Wednesday, February 13, 2019 at 1:47:25 PM UTC+2, Ananth Sakthivel wrote:
>
> since yesterday my code was working fine and it's fetching the AdsAccount 
> Details through the Service of "GetCustomer()". but today onwards its stop 
> working and throwing the Below error,
>
> *Google.Ads.GoogleAds.Lib.GoogleAdsException*
> *  HResult=0x80131500*
> *  Message=Status(StatusCode=PermissionDenied, Detail="The caller does not 
> have permission")*
> *  Source=Google.Api.Gax.Grpc*
>
> I have already added the "LoginCustomerId" in my config file. but still, 
> it's not sorted out.
>
> My TestManager CustomerID: 2349150893
> Developer token:XX
> *please have a look on my code below, also I attached the screenshot of my 
> errors.*
>
>  try
> {
> Client = new GoogleAdsClient();
> CustomerService = 
> Client.GetService(Services.V0.CustomerService);   
> GoogleAdsServiceClient googleAdsService = 
> Client.GetService(Services.V0.GoogleAdsService);
> SearchGoogleAdsRequest request = new 
> SearchGoogleAdsRequest()
> {
> Query = @"SELECT customer_client.client_customer 
> FROM customer_client",
> CustomerId = Client.Config.LoginCustomerId
> };
> PagedEnumerable 
> searchPagedResponse = googleAdsService.Search(request);
> object sync = new Object();
>
> Parallel.ForEach(searchPagedResponse, response =>
> {
>  lock (sync)
>  {
>  var ClientDetails = 
> CustomerService.GetCustomer(response.CustomerClient.ClientCustomer);//Error 
> at this line
>  if (!ClientDetails.Manager.Value)
>  {
> 
>  }
>  }
>
> });
> }
>
> [image: 2019-02-13_17-12-10.png]
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/101c7321-61ce-4eff-8ee9-a50989d1d5c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-02-22 Thread peter
Hello Saj,

Any progress on this issue? Since 11th Feb I can't use the Java examples 
anymore even after I added the login api.googleads.loginCustomerId setting 
as described.


Op woensdag 13 februari 2019 17:47:05 UTC+1 schreef 
googleadsapi-forumadvisor:
>
> Hello Everyone,
>
> Thanks for the update, we are looking into the issue. We will be 
> responding on this thread when we find more information.
>
> Regards,
> Sai Teja, 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/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> 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 
> 
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0a927138-5ea4-4425-a6b0-39e9bde3e87b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-02-19 Thread Ananth Sakthivel
Hello Sai,
did you find any solution for my issue?

On Wednesday, 13 February 2019 22:17:05 UTC+5:30, googleadsapi-forumadvisor 
wrote:
>
> Hello Everyone,
>
> Thanks for the update, we are looking into the issue. We will be 
> responding on this thread when we find more information.
>
> Regards,
> Sai Teja, 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/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> 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 
> 
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/20fbc314-691d-4d51-8df8-bda6c37c6611%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-02-13 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum


Hello Everyone,

Thanks for the update, we are looking into the issue. We will responding on
this thread when we find more information.

Regards,
Sai Teja, 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/186t2h80o3ektu0006vgkoz6smj6d1p6so30c1g68qj4cpl%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-02-13 Thread Ethan Lyon
Has this been integrated into the BigQuery Transfer Service? I'm seeing the
same errors there.

On Wed, Feb 13, 2019 at 11:27 AM Jordi Puig 
wrote:

> You should check this:
>
>
> https://ads-developers.googleblog.com/2019/01/new-required-header-for-google-ads-api.html
>
> Regards.
>
> On Wednesday, February 13, 2019 at 5:22:58 PM UTC+1, Charles Astwood wrote:
>>
>> Me too. I am wondering if there is a fault Googles end as a few of us are
>> seeing this
>>
>> On Wednesday, 13 February 2019 11:47:25 UTC, Ananth Sakthivel wrote:
>>>
>>> since yesterday my code was working fine and it's fetching the
>>> AdsAccount Details through the Service of "GetCustomer()". but today
>>> onwards its stop working and throwing the Below error,
>>>
>>> *Google.Ads.GoogleAds.Lib.GoogleAdsException*
>>> *  HResult=0x80131500*
>>> *  Message=Status(StatusCode=PermissionDenied, Detail="The caller does
>>> not have permission")*
>>> *  Source=Google.Api.Gax.Grpc*
>>>
>>> I have already added the "LoginCustomerId" in my config file. but still,
>>> it's not sorted out.
>>>
>>> My TestManager CustomerID: 2349150893
>>> Developer token:__R0sxIaTEA-cd2bmu1kmA
>>> *please have a look on my code below, also I attached the screenshot of
>>> my errors.*
>>>
>>>  try
>>> {
>>> Client = new GoogleAdsClient();
>>> CustomerService =
>>> Client.GetService(Services.V0.CustomerService);
>>> GoogleAdsServiceClient googleAdsService =
>>> Client.GetService(Services.V0.GoogleAdsService);
>>> SearchGoogleAdsRequest request = new
>>> SearchGoogleAdsRequest()
>>> {
>>> Query = @"SELECT customer_client.client_customer
>>> FROM customer_client",
>>> CustomerId = Client.Config.LoginCustomerId
>>> };
>>> PagedEnumerable>> GoogleAdsRow> searchPagedResponse = googleAdsService.Search(request);
>>> object sync = new Object();
>>>
>>> Parallel.ForEach(searchPagedResponse, response =>
>>> {
>>>  lock (sync)
>>>  {
>>>  var ClientDetails =
>>> CustomerService.GetCustomer(response.CustomerClient.ClientCustomer);//Error
>>> at this line
>>>  if (!ClientDetails.Manager.Value)
>>>  {
>>>
>>>  }
>>>  }
>>>
>>> });
>>> }
>>>
>>> [image: 2019-02-13_17-12-10.png]
>>>
>>> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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/30e348db-7610-43e4-8d74-a3d83b65e11d%40googlegroups.com
> 
> .
> 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/CAE4G%2B9UaLtW8PHE%3DfjE%3DDN_orAxqreLV75d0GubdP3eDEXjkQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-02-13 Thread Jordi Puig
You should check this:

https://ads-developers.googleblog.com/2019/01/new-required-header-for-google-ads-api.html

Regards.

On Wednesday, February 13, 2019 at 5:22:58 PM UTC+1, Charles Astwood wrote:
>
> Me too. I am wondering if there is a fault Googles end as a few of us are 
> seeing this
>
> On Wednesday, 13 February 2019 11:47:25 UTC, Ananth Sakthivel wrote:
>>
>> since yesterday my code was working fine and it's fetching the AdsAccount 
>> Details through the Service of "GetCustomer()". but today onwards its stop 
>> working and throwing the Below error,
>>
>> *Google.Ads.GoogleAds.Lib.GoogleAdsException*
>> *  HResult=0x80131500*
>> *  Message=Status(StatusCode=PermissionDenied, Detail="The caller does 
>> not have permission")*
>> *  Source=Google.Api.Gax.Grpc*
>>
>> I have already added the "LoginCustomerId" in my config file. but still, 
>> it's not sorted out.
>>
>> My TestManager CustomerID: 2349150893
>> Developer token:__R0sxIaTEA-cd2bmu1kmA
>> *please have a look on my code below, also I attached the screenshot of 
>> my errors.*
>>
>>  try
>> {
>> Client = new GoogleAdsClient();
>> CustomerService = 
>> Client.GetService(Services.V0.CustomerService);   
>> GoogleAdsServiceClient googleAdsService = 
>> Client.GetService(Services.V0.GoogleAdsService);
>> SearchGoogleAdsRequest request = new 
>> SearchGoogleAdsRequest()
>> {
>> Query = @"SELECT customer_client.client_customer 
>> FROM customer_client",
>> CustomerId = Client.Config.LoginCustomerId
>> };
>> PagedEnumerable> GoogleAdsRow> searchPagedResponse = googleAdsService.Search(request);
>> object sync = new Object();
>>
>> Parallel.ForEach(searchPagedResponse, response =>
>> {
>>  lock (sync)
>>  {
>>  var ClientDetails = 
>> CustomerService.GetCustomer(response.CustomerClient.ClientCustomer);//Error 
>> at this line
>>  if (!ClientDetails.Manager.Value)
>>  {
>> 
>>  }
>>  }
>>
>> });
>> }
>>
>> [image: 2019-02-13_17-12-10.png]
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/30e348db-7610-43e4-8d74-a3d83b65e11d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-02-13 Thread Charles Astwood
Me too. I am wondering if there is a fault Googles end as a few of us are 
seeing this

On Wednesday, 13 February 2019 11:47:25 UTC, Ananth Sakthivel wrote:
>
> since yesterday my code was working fine and it's fetching the AdsAccount 
> Details through the Service of "GetCustomer()". but today onwards its stop 
> working and throwing the Below error,
>
> *Google.Ads.GoogleAds.Lib.GoogleAdsException*
> *  HResult=0x80131500*
> *  Message=Status(StatusCode=PermissionDenied, Detail="The caller does not 
> have permission")*
> *  Source=Google.Api.Gax.Grpc*
>
> I have already added the "LoginCustomerId" in my config file. but still, 
> it's not sorted out.
>
> My TestManager CustomerID: 2349150893
> Developer token:__R0sxIaTEA-cd2bmu1kmA
> *please have a look on my code below, also I attached the screenshot of my 
> errors.*
>
>  try
> {
> Client = new GoogleAdsClient();
> CustomerService = 
> Client.GetService(Services.V0.CustomerService);   
> GoogleAdsServiceClient googleAdsService = 
> Client.GetService(Services.V0.GoogleAdsService);
> SearchGoogleAdsRequest request = new 
> SearchGoogleAdsRequest()
> {
> Query = @"SELECT customer_client.client_customer 
> FROM customer_client",
> CustomerId = Client.Config.LoginCustomerId
> };
> PagedEnumerable 
> searchPagedResponse = googleAdsService.Search(request);
> object sync = new Object();
>
> Parallel.ForEach(searchPagedResponse, response =>
> {
>  lock (sync)
>  {
>  var ClientDetails = 
> CustomerService.GetCustomer(response.CustomerClient.ClientCustomer);//Error 
> at this line
>  if (!ClientDetails.Manager.Value)
>  {
> 
>  }
>  }
>
> });
> }
>
> [image: 2019-02-13_17-12-10.png]
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/68ba84b9-6b18-4ed6-b6a7-590dfdd7aea8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-02-13 Thread peter
Same here, worked fine this week but now I get the exact same error in the 
Google Ads Beta API. Using a similar ads.properties (with the old prefix 
settings) in the old Google Adwords API works fine.


Op woensdag 13 februari 2019 12:47:25 UTC+1 schreef Ananth Sakthivel:
>
> since yesterday my code was working fine and it's fetching the AdsAccount 
> Details through the Service of "GetCustomer()". but today onwards its stop 
> working and throwing the Below error,
>
> *Google.Ads.GoogleAds.Lib.GoogleAdsException*
> *  HResult=0x80131500*
> *  Message=Status(StatusCode=PermissionDenied, Detail="The caller does not 
> have permission")*
> *  Source=Google.Api.Gax.Grpc*
>
> I have already added the "LoginCustomerId" in my config file. but still, 
> it's not sorted out.
>
> My TestManager CustomerID: 2349150893
> Developer token:__R0sxIaTEA-cd2bmu1kmA
> *please have a look on my code below, also I attached the screenshot of my 
> errors.*
>
>  try
> {
> Client = new GoogleAdsClient();
> CustomerService = 
> Client.GetService(Services.V0.CustomerService);   
> GoogleAdsServiceClient googleAdsService = 
> Client.GetService(Services.V0.GoogleAdsService);
> SearchGoogleAdsRequest request = new 
> SearchGoogleAdsRequest()
> {
> Query = @"SELECT customer_client.client_customer 
> FROM customer_client",
> CustomerId = Client.Config.LoginCustomerId
> };
> PagedEnumerable 
> searchPagedResponse = googleAdsService.Search(request);
> object sync = new Object();
>
> Parallel.ForEach(searchPagedResponse, response =>
> {
>  lock (sync)
>  {
>  var ClientDetails = 
> CustomerService.GetCustomer(response.CustomerClient.ClientCustomer);//Error 
> at this line
>  if (!ClientDetails.Manager.Value)
>  {
> 
>  }
>  }
>
> });
> }
>
> [image: 2019-02-13_17-12-10.png]
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e696ad2e-574f-42d6-898e-9d6dfcaeb896%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-02-13 Thread Inspired UM
I have same issue just with Python lib.  Making request to GoogleAdsService

On Wednesday, 13 February 2019 13:47:25 UTC+2, Ananth Sakthivel wrote:
>
> since yesterday my code was working fine and it's fetching the AdsAccount 
> Details through the Service of "GetCustomer()". but today onwards its stop 
> working and throwing the Below error,
>
> *Google.Ads.GoogleAds.Lib.GoogleAdsException*
> *  HResult=0x80131500*
> *  Message=Status(StatusCode=PermissionDenied, Detail="The caller does not 
> have permission")*
> *  Source=Google.Api.Gax.Grpc*
>
> I have already added the "LoginCustomerId" in my config file. but still, 
> it's not sorted out.
>
> My TestManager CustomerID: 2349150893
> Developer token:__R0sxIaTEA-cd2bmu1kmA
> *please have a look on my code below, also I attached the screenshot of my 
> errors.*
>
>  try
> {
> Client = new GoogleAdsClient();
> CustomerService = 
> Client.GetService(Services.V0.CustomerService);   
> GoogleAdsServiceClient googleAdsService = 
> Client.GetService(Services.V0.GoogleAdsService);
> SearchGoogleAdsRequest request = new 
> SearchGoogleAdsRequest()
> {
> Query = @"SELECT customer_client.client_customer 
> FROM customer_client",
> CustomerId = Client.Config.LoginCustomerId
> };
> PagedEnumerable 
> searchPagedResponse = googleAdsService.Search(request);
> object sync = new Object();
>
> Parallel.ForEach(searchPagedResponse, response =>
> {
>  lock (sync)
>  {
>  var ClientDetails = 
> CustomerService.GetCustomer(response.CustomerClient.ClientCustomer);//Error 
> at this line
>  if (!ClientDetails.Manager.Value)
>  {
> 
>  }
>  }
>
> });
> }
>
> [image: 2019-02-13_17-12-10.png]
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8ac68ac4-2dfe-4317-812c-4feaf62d9498%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


USER_PERMISSION_DENIED,User doesn't have permission to access customer,"errorCode": { "authorizationError": "USER_PERMISSION_DENIED"

2019-02-13 Thread Ananth Sakthivel
since yesterday my code was working fine and it's fetching the AdsAccount 
Details through the Service of "GetCustomer()". but today onwards its stop 
working and throwing the Below error,

*Google.Ads.GoogleAds.Lib.GoogleAdsException*
*  HResult=0x80131500*
*  Message=Status(StatusCode=PermissionDenied, Detail="The caller does not 
have permission")*
*  Source=Google.Api.Gax.Grpc*

I have already added the "LoginCustomerId" in my config file. but still, 
it's not sorted out.

My TestManager CustomerID: 2349150893
Developer token:__R0sxIaTEA-cd2bmu1kmA
*please have a look on my code below, also I attached the screenshot of my 
errors.*

 try
{
Client = new GoogleAdsClient();
CustomerService = 
Client.GetService(Services.V0.CustomerService);   
GoogleAdsServiceClient googleAdsService = 
Client.GetService(Services.V0.GoogleAdsService);
SearchGoogleAdsRequest request = new 
SearchGoogleAdsRequest()
{
Query = @"SELECT customer_client.client_customer 
FROM customer_client",
CustomerId = Client.Config.LoginCustomerId
};
PagedEnumerable 
searchPagedResponse = googleAdsService.Search(request);
object sync = new Object();
   
Parallel.ForEach(searchPagedResponse, response =>
{
 lock (sync)
 {
 var ClientDetails = 
CustomerService.GetCustomer(response.CustomerClient.ClientCustomer);//Error 
at this line
 if (!ClientDetails.Manager.Value)
 {

 }
 }

});
}

[image: 2019-02-13_17-12-10.png]

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/78b0d6e2-7bac-44d0-a921-1df36b74931e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


User doesn't have permission to access customer,USER_PERMISSION_DENIED

2019-02-13 Thread Ananth Sakthivel

since yesterday my code was working fine and it's fetching the AdsAccount 
Details through the Service of "GetCustomer()". but today onwards its stop 
working and throwing the Below error,

*Google.Ads.GoogleAds.Lib.GoogleAdsException*
*  HResult=0x80131500*
*  Message=Status(StatusCode=PermissionDenied, Detail="The caller does not 
have permission")*
*  Source=Google.Api.Gax.Grpc*

I have already added the "LoginCustomerId" in my config file. but still, 
it's not sorted out.

please have a look on my code,

 try
{
Client = new GoogleAdsClient();
CustomerService = 
Client.GetService(Services.V0.CustomerService);   
GoogleAdsServiceClient googleAdsService = 
Client.GetService(Services.V0.GoogleAdsService);
SearchGoogleAdsRequest request = new 
SearchGoogleAdsRequest()
{
Query = @"SELECT customer_client.client_customer 
FROM customer_client",
CustomerId = Client.Config.LoginCustomerId
};
PagedEnumerable 
searchPagedResponse = googleAdsService.Search(request);
object sync = new Object();
   
Parallel.ForEach(searchPagedResponse, response =>
{
 lock (sync)
 {
 var ClientDetails = 
CustomerService.GetCustomer(response.CustomerClient.ClientCustomer);
 if (!ClientDetails.Manager.Value)
 {

 }
 }

});
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8d3cf87e-68f1-4f43-a73a-53102a0cd37e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: User doesn't have permission to access customer...Following Tutorial

2017-10-30 Thread 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum
Hello Steve, 

The USER_PERMISSION_DENIED 
<https://developers.google.com/adwords/api/docs/common-errors#AuthorizationError.USER_PERMISSION_DENIED>
 error 
is experienced when there is no link between the manager account 
authenticated in the request and the client account specified or when the 
OAuth credentials used are for a user who do not have access to the client 
customer ID specified or any of its manager accounts. You could use 
CustomerService.getCustomers() 
<https://developers.google.com/adwords/api/docs/reference/v201710/CustomerService#getcustomers>
 which 
returns details of all the customers directly accessible by the user 
authenticating the call and then use the ManagedCustomerService 
<https://developers.google.com/adwords/api/docs/reference/v201710/ManagedCustomerService>
 to 
determine the client accounts linked to a manager account. 

If you continue to have an issue with this, could you provide us the SOAP 
request and response logs for the API call along with the email address 
used for authentication, so we can take a look and assist further. You can 
respond via *Reply privately to author *option while replying. 

Thanks,
Bharani, AdWords API Team

On Monday, October 30, 2017 at 9:56:04 AM UTC-4, nhaad...@gmail.com wrote:
>
> I am following your tutorial - Make Your First API Call - 
> https://developers.google.com/adwords/api/docs/guides/first-api-call
>
>
>1. Created a new email/manager account and requested a developer token
>2. Created a new email/test manager account from the manager account
>3. Created a test client from the test manager - I was not prompted to 
>create a new email for this - just a name
>4. Created test campaign/ad group/ad
>5. Created a C# client via NuGet
>6. Setup my OAuth2 authentication via Refresh token generator
>7. Execute sample application making a call to the GetCampaigns module
>
> I receive the following error - 
>
> This code example lists all campaigns. To add a campaign, run 
> AddCampaign.cs.
> An exception occurred while running this code example. 
> System.Reflection.TargetInvocationException (Exception has been thrown by 
> the target of an invocation.)
>
>at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] 
> arguments, Signature sig, Boolean constructor)
>at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, 
> Object[] parameters, Object[] arguments)
>at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags 
> invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
>at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
>at AdWordsConsoleApp.Examples.CSharp.Program.InvokeRun(Object 
> codeExample, AdWordsUser user) in 
> \\nhafile100\user_data$\solson\Documents\Visual Studio 
> 2017\Projects\AdWordsConsoleApp\AdWordsConsoleApp\Program.cs:line 138
>at 
> AdWordsConsoleApp.Examples.CSharp.Program.RunACodeExample(AdWordsUser user, 
> Object codeExample) in \\nhafile100\user_data$\solson\Documents\Visual 
> Studio 2017\Projects\AdWordsConsoleApp\AdWordsConsoleApp\Program.cs:line 97
>
> Caused by
>
> System.ApplicationException (Failed to retrieve campaigns)
>
>at 
> AdWordsConsoleApp.Examples.CSharp.v201710.GetCampaigns.Run(AdWordsUser 
> user) in \\nhafile100\user_data$\solson\Documents\Visual Studio 
> 2017\Projects\AdWordsConsoleApp\AdWordsConsoleApp\v201710\BasicOperations\GetCampaigns.cs:line
>  
> 89
>
> Caused by
>
> Google.Api.Ads.AdWords.Lib.AdWordsApiException (AdWordsApiException: 
> Exception of type 'Google.Api.Ads.AdWords.Lib.AdWordsApiException' was 
> thrown.
>
> User doesn't have permission to access customer.. (Error: 
> AuthorizationError.USER_PERMISSION_DENIED, FieldPath: , Trigger: )
>
> )
>
>
> I've looked into the error/forums and the only mention is the accounts 
> aren't linked.  I created the test manager account from the manager account 
> and the test client from the test manager account.  My understanding is 
> that linking accounts is on the production side.  The test client created 
> from the test manager doesn't even have its own email as far as I can tell.
>
> Thanks for any help,
> Steve
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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.googl

User doesn't have permission to access customer...Following Tutorial

2017-10-30 Thread nhaadwords
I am following your tutorial - Make Your First API Call 
- https://developers.google.com/adwords/api/docs/guides/first-api-call


   1. Created a new email/manager account and requested a developer token
   2. Created a new email/test manager account from the manager account
   3. Created a test client from the test manager - I was not prompted to 
   create a new email for this - just a name
   4. Created test campaign/ad group/ad
   5. Created a C# client via NuGet
   6. Setup my OAuth2 authentication via Refresh token generator
   7. Execute sample application making a call to the GetCampaigns module

I receive the following error - 

This code example lists all campaigns. To add a campaign, run 
AddCampaign.cs.
An exception occurred while running this code example. 
System.Reflection.TargetInvocationException (Exception has been thrown by 
the target of an invocation.)

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] 
arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, 
Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags 
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at AdWordsConsoleApp.Examples.CSharp.Program.InvokeRun(Object 
codeExample, AdWordsUser user) in 
\\nhafile100\user_data$\solson\Documents\Visual Studio 
2017\Projects\AdWordsConsoleApp\AdWordsConsoleApp\Program.cs:line 138
   at AdWordsConsoleApp.Examples.CSharp.Program.RunACodeExample(AdWordsUser 
user, Object codeExample) in 
\\nhafile100\user_data$\solson\Documents\Visual Studio 
2017\Projects\AdWordsConsoleApp\AdWordsConsoleApp\Program.cs:line 97

Caused by

System.ApplicationException (Failed to retrieve campaigns)

   at 
AdWordsConsoleApp.Examples.CSharp.v201710.GetCampaigns.Run(AdWordsUser 
user) in \\nhafile100\user_data$\solson\Documents\Visual Studio 
2017\Projects\AdWordsConsoleApp\AdWordsConsoleApp\v201710\BasicOperations\GetCampaigns.cs:line
 
89

Caused by

Google.Api.Ads.AdWords.Lib.AdWordsApiException (AdWordsApiException: 
Exception of type 'Google.Api.Ads.AdWords.Lib.AdWordsApiException' was 
thrown.

User doesn't have permission to access customer.. (Error: 
AuthorizationError.USER_PERMISSION_DENIED, FieldPath: , Trigger: )

)


I've looked into the error/forums and the only mention is the accounts 
aren't linked.  I created the test manager account from the manager account 
and the test client from the test manager account.  My understanding is 
that linking accounts is on the production side.  The test client created 
from the test manager doesn't even have its own email as far as I can tell.

Thanks for any help,
Steve

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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/f29a353a-0b17-42ef-a976-9fc0bca021a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.