Hi Aryeh,

I hope you are doing well.
We acquire the full request and the response body , for your information,
    URL - 
https://googleads.googleapis.com/v8/customers/8037314349/googleAds:search?page_size=3000

Headers - 
'content-type': 'application/json', 'Authorization': 'Bearer 
ya29.A0ARrdaM8xI0OUp6fKzk6Mv92-_7u3B71hlSdICWUdch6xhUWADjdhtXv0cM65qBoi7CMONuPTmaZ4zPjnl369LO7RYQeaapy1Yp2oZQalY3_CQ5oaGs7QvYfUmHKCEXL3Cm3aFUueVBNvp8Lqhfqcvmq27W2o06Y',
 
'developer-token': <dev-token>, 'login-customer-id': '7523650763'

Body- "query": "SELECT campaign.app_campaign_setting.app_id, campaign.name, 
campaign.id, campaign.advertising_channel_type, 
campaign.advertising_channel_sub_type, segments.ad_network_type, 
campaign.app_campaign_setting.bidding_strategy_goal_type, 
campaign.bidding_strategy_type, campaign.target_cpa.target_cpa_micros, 
metrics.impressions, metrics.clicks, metrics.ctr, metrics.conversions, 
metrics.cost_micros, segments.date FROM campaign WHERE segments.date >= 
'2022-01-20' AND segments.date <= '2022-01-24' AND campaign.id IN 
('12474377987')"

Response - 
1{ 2 "error": { 3 "code": 403, 4 "message": "The caller does not have 
permission", 5 "status": "PERMISSION_DENIED", 6 "details": [ 7 { 8 "@type": 
"type.googleapis.com/google.ads.googleads.v8.errors.GoogleAdsFailure", 9 
"errors": [ 10 { 11 "errorCode": { 12 "authorizationError": 
"USER_PERMISSION_DENIED" 13 }, 14 "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"; 
15 } 16 ], 17 "requestId": "-9uhjONInGopL7UUHhB1Pg" 18 } 19 ] 20 } 21} 


While we are looking at the case, our RD reminds me that the  
'login-customer-id': '7523650763' from the request header, is the manager 
of our advertiser's account (whose customer id is 803-731-4349).
Hopefully it will ease your investigation. 

Much appreciate your assistance

Best
On Wednesday, 19 January 2022 at 15:02:37 UTC+8 Jing Li wrote:

> Hi Aryeh,
>
> Thanks for the fast response, it will take few days until we get the 
> complete request for further investigation, I'll keep you posted once we 
> acquire the logs.
>
> On Wednesday, January 19, 2022 at 1:55:10 AM UTC+8 adsapi wrote:
>
>> Hi Jing,
>>
>> Thank you for reaching out to Google Ads API support. Could you privately 
>> send us a full request and response log of API communication that returns 
>> this error? 
>>
>> The request and response appears similar to the JSON Mappings in our 
>> REST documentation 
>> <https://developers.google.com/google-ads/api/rest/design/json-mappings?hl=en>.
>>  
>> Our client libraries have loggers with logging instructions, to see these 
>> instructions you can click on the client library you use in the sidebar of 
>> our client library guide 
>> <https://developers.google.com/google-ads/api/docs/client-libs?hl=en> and 
>> click on "Logging". Setting the log level to 'DEBUG' will get the desired 
>> log.
>>
>> Regards,
>>
>> [image: Google Logo] 
>> Aryeh Baker 
>> Google Ads API Team 
>>   
>>  
>>
>> ref:_00D1U1174p._5004Q2VMsyw: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/b3ab3e7e-f801-4eff-bb8a-f8883a03b062n%40googlegroups.com.
  • Go... 'Jing Li' via Google Ads API and AdWords API Forum
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... 'Jing Li' via Google Ads API and AdWords API Forum
        • ... 'Jing Li' via Google Ads API and AdWords API Forum
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to