Hello Alex,

The ADD_OPERATION_NOT_PERMITTED 
<https://developers.google.com/adwords/api/docs/common-errors#OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED>
 error occurs usually when you are attempting to add a campaign to a 
manager account. Looks like the client customer Id pointing in the call is 
a test manager account, as campaign can't be created in a manager account 
the request failed. Please give it a try with test account and let me know 
if you are still facing issues.

One more observation is that the refresh token, clientId and clientSecret 
must belongs to the same user having access to the Google Ads account you 
are pointing in the request. You could refer this guide 
<https://developers.google.com/adwords/api/docs/guides/authentication> to 
create OAuth2 credentials. You can use the existing developer token as the 
developer token can be used against any Google Ads account. 

We are running an annual developer feedback survey. Please take opportunity 
to leave feedback <https://google.qualtrics.com/jfe/form/SV_8AJmKtdyZLWVWrb>
 on how we can make managing campaigns at scale even easier.

Regards,
Sai Teja, AdWords API Team.

On Wednesday, October 31, 2018 at 7:16:05 PM UTC-4, bols...@smm.ru.com 
wrote:
>
> Hello!
> There is a primary account for working with google ads (503-425-5686).
> For this account (503-425-5686) a developer account has been created.
>
> After that, a test account was created (397-761-8798)
> Further, the settings file looks like this:
> api.adwords.refreshToken=Was created for an account (397-761-8798)
> api.adwords.clientId=Was created for an account (503-425-5686)
> api.adwords.clientSecret=Was created for an account (503-425-5686)
> api.adwords.clientCustomerId=397-761-8798
> api.adwords.developerToken=Was created for an account (503-425-5686)
>
> Next, I make a request GetCampaigns.java and get in response:
> "[31 Oct 2018 11:23:22,552-requestInfoLogger:INFO:main] Request made: 
> Service: CampaignService Method: get clientCustomerId: 397-761-8798 URL: 
> https://adwords.google.com/api/adwords/cm/v201809/CampaignService Request 
> ID: 0005797ea9a00cc00ae9eb129702a061 ResponseTime(ms): 168 OperationsCount: 
> 1 IsFault: false FaultMessage: null
> No campaigns were found. "
>
> If I make an AddCampaigns.java request, the answer comes in: (Look in - 
> Remove AddCampaigns.java - Error log.txt)
>
> I hope for your help!
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7644fdae-4315-4f00-811e-82ee36f11cfc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to