RE: unexpected userpermissiondenied exception when querying campaigns
Hello Jack, Thanks for reaching out to the Google Ads API Team. With regards to the UserPermissionDenied error, please note that If you're accessing a client customer, the manager's customer ID must be set in the login-customer-id header. Learn more at https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid. UserPermissionDenied - https://developers.google.com/google-ads/api/reference/rpc/v12/AuthorizationErrorEnum.AuthorizationError#user_permission_denied Can you please provide us with the complete request and response logs with request ID generated on your end when you performed your API requests and an uncropped screenshot of the UI since you mentioned that you “verified that this customer is able to view the requested campaigns from the UI” so we can investigate further and provide recommendations? Request - https://developers.google.com/google-ads/api/docs/concepts/field-service#request Response - https://developers.google.com/google-ads/api/docs/concepts/field-service#response Request ID - https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsapi-supp...@google.com. This message is in relation to case "ref:_00D1U1174p._5004Q2lvLDT:ref" Thanks, Google Ads API Team -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/Nsv7M0RVN0BU00_4LA0Q4kQJOCG_wH1-lxdA%40sfdc.net.
Unexpected UserPermissionDenied Exception When Querying Campaigns
Hello Ads API Support, Can you please assist in determining why we are seeing PermissionDenied status codes for one specific customer when querying campaigns? We can query the customer API successfully, but the campaign endpoint fails. We have also verified that this customer is able to view the requested campaigns from the UI, but the API is returning a UserPermissionDenied exception. Successful Query (RequestID: oD91ZaFv0HbKS04T-dhxYA) SELECT customer.id, customer.currency_code, customer.final_url_suffix, customer.tracking_url_template FROM customer Failing Query (RequestID: VtD6g6VggAnDj3kyh6LSIA) SELECT campaign.advertising_channel_type, campaign.id, campaign.name, campaign.status, campaign.shopping_setting.merchant_id, campaign.advertising_channel_sub_type, campaign.experiment_type FROM campaign WHERE campaign.status IN ('ENABLED', 'PAUSED', 'REMOVED') ORDER BY campaign.id ASC Thank you, Jack -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/fe291ad2-3f00-4e6b-aa5f-defb5a41cc44n%40googlegroups.com.