Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT with PHP examples AddCampaigns.php

2021-08-16 Thread Google Ads API Forum Advisor
Hi Matěj, Thank you for the reply. You need to link the client accounts to your manager account, which your user account have an access, and follow the call structure that I've mentioned on my previous email. You may check this document as it discussed the suggestion that I provided. Let me k

Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT with PHP examples AddCampaigns.php

2021-08-16 Thread Matěj Humpál , Follow Bubble
Hi Ernie, yes, I have followed all the steps you mention before and as I mention in the previous message, I was able to make the API work after I accepted the invitation to the client account I myself created a few moments before. My concern is: Do I have to be explicitly invited to all clie

Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT with PHP examples AddCampaigns.php

2021-08-12 Thread Google Ads API Forum Advisor
Hi Matěj, Thanks for the reply. I work with Yasar and let me provide support to your concern. Could you confirm if your question is related on how to authenticate in Google Ads API to avoid the error? If yes, then you may see the key things to remember below: 1. Set customer ID (without hyphen

Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT with PHP examples AddCampaigns.php

2021-08-12 Thread Matěj Humpál , Follow Bubble
Never mind, I just accepted an invitation to a client account (under the same e-mail address that the Manager Account is under) and everything (or basic get/add campaign operations) started working. Not that this is super clear behaviour, but OK. Is there a clearer, more straightforward way?

Re: OPERATION_NOT_PERMITTED_FOR_CONTEXT with PHP examples AddCampaigns.php

2021-08-12 Thread Matěj Humpál , Follow Bubble
Thanks for a quick response! Also thanks for the clarification, I expected something along these lines. I still don't understand why I wouldn't have permissions to access customers I created myself 5 minutes ago. The USER_PERMISSION_DENIED i get is when I use --customerId parameter 7930612705.

RE: OPERATION_NOT_PERMITTED_FOR_CONTEXT with PHP examples AddCampaigns.php

2021-08-12 Thread Google Ads API Forum Advisor
Hi MH, Thanks for reaching out to us. Kindly note that you may receive error ‘USER_PERMISSION_DENIED’ if you’re incorrectly setting the 'login-customer-id’ in the request or when a user doesn't have permission to access a customer and you’re accessing a client customer using 'login-customer-id