Sandbox Problem: [OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ operations[0]]

1,287 views
Skip to first unread message

Rallan

unread,
Mar 4, 2012, 8:43:10 PM3/4/12
to adwor...@googlegroups.com
In my live Adwords account I can add a new campaign without a problem, but I have been trying to use the sandbox without success. I can test for existing campaigns in the sandbox (none found) but I am unable to add a new campaign. I get the error:

[OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ operations[0]]

I am logging in with the following set-up:

AUTH.INI

password = "xxxxxxxx"
userAgent = "My Adwords Tool"
applicationToken = "ignored"
developerToken = "xxxx...@gmail.com++GBP"

SETTINGS

DEFAULT_VERSION = "v201109"
COMPRESSION = 1
COMPRESSION_LEVEL = 1
WSDL_CACHE = 0
VERIFY_PEER = 0

MY SCRIPT

$campaignService = $user->GetCampaignService('v201109', 'https://adwords-sandbox.google.com');


I have looked around online but found no actual answers. As far as I can tell I what's missing is a sandbox generated clientId, or possibly a clientCustomerId? However, I have been unable to find out how I get this! I have tried using my normal clientId but it is rejected (AuthenticationError.CUSTOMER_NOT_FOUND). 

I'm going nuts here. I've spent hours getting more and more frustrated. Please can someone tell me how to get the sandbox working?

Rallan

unread,
Mar 4, 2012, 8:51:03 PM3/4/12
to adwor...@googlegroups.com
I forgot to say that this is a not an MCC account.

Anash P. Oommen

unread,
Mar 6, 2012, 5:08:32 AM3/6/12
to adwor...@googlegroups.com
Hi Rallan,

You need to 

a. Call GetAllCampaigns example to initialize the sandbox if not done already.
b. Call GetAccountHierarchy example to get the list of sandbox accounts.
c. Use one of those customerIds to make remaining calls.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Slivka

unread,
Mar 8, 2012, 5:20:36 PM3/8/12
to adwor...@googlegroups.com
Why does GetAccountHierarchy return 0 for customerIds for all 5 sandbox accounts?

Anash P. Oommen

unread,
Mar 13, 2012, 2:57:22 AM3/13/12
to adwor...@googlegroups.com
Hi,

We had some issue with the sandbox last week where new accounts were being created with customerid 0. This issue is fixed now, you can use a fresh sandbox login to call GetAccountHierarchy.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Wasi

unread,
Jul 17, 2012, 1:41:31 AM7/17/12
to adwor...@googlegroups.com
I am also facing this same issue. can anybody please help me for this? I've also spent hours getting more and more frustrated. Please can someone tell me how to get the sandbox working? I am unable to add Campaigns.
i have also followed the following steps but the same issue is there.

a. Call GetAllCampaigns example to initialize the sandbox if not done already.
b. Call GetAccountHierarchy example to get the list of sandbox accounts.
c. Use one of those customerIds to make remaining calls.

GetAccountHierarchy return 0.


Kevin Winter

unread,
Jul 24, 2012, 4:18:37 PM7/24/12
to adwor...@googlegroups.com
Hi,
  If you were affected by this bug, we recommend using a new sandbox account.  You can create a brand-new gmail account for sandbox usage.  Please let us know if you're still seeing this with a new account.

- Kevin Winter
AdWords API Team

Allan Lopez

unread,
Aug 13, 2012, 12:30:27 PM8/13/12
to adwor...@googlegroups.com
I'm also experiencing this as of now. I've just created a new google mail account a while ago. I am using  the php client library. 

a. Call GetAllCampaigns example to initialize the sandbox if not done already.  - returned "No campaigns were found."
b. Call GetAccountHierarchy example to get the list of sandbox accounts. - returned "(Customer Id, Account Name/Login, Link Status) 0, frogfor...@gmail.com, N/A"

Allan Lopez

unread,
Aug 13, 2012, 1:02:52 PM8/13/12
to adwor...@googlegroups.com
Also when I try to run the AddCampaigns.
I get this error also: [OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ operations[0]]

I'm using v201109

Kevin Winter

unread,
Aug 13, 2012, 2:49:52 PM8/13/12
to adwor...@googlegroups.com
Hi,
  Could you please check the SOAP XML log (see the README) after running the GetAccountHierarchy example?  Due to some sandbox quirks, not all the libraries properly handle the sandbox SOAP response.  If you are getting back client accounts that have non-0 IDs, you should be able to set one as your clientCustomerId in your adwords.properties file which should make the AddCampaigns example run.  If the SOAP contains 0's for IDs, you'll have to wait until we fix an outstanding bug.

- Kevin Winter
AdWords API Team

Allan Lopez

unread,
Aug 14, 2012, 9:17:07 AM8/14/12
to adwor...@googlegroups.com
Hi Kevin,

Thanks for the response. I've checked the soap_xml.log and unfortunately all the customer IDs there are 0. Well I hope your team can fix the bug.

Kevin Winter

unread,
Aug 21, 2012, 9:28:57 AM8/21/12
to adwor...@googlegroups.com
Hi,
  We just pushed out a fix for this bug.  Please create a new sandbox account and try again.

- Kevin Winter
AdWords API Team

Karol Słuszniak

unread,
Sep 26, 2012, 6:59:17 AM9/26/12
to adwor...@googlegroups.com
I have same problem with adding campaign in sandbox. 

Jack Wootton

unread,
Nov 10, 2012, 7:00:57 AM11/10/12
to adwor...@googlegroups.com
Hello Karol,

I too experienced this problem. The solution, for me at least, was to recompile the client. This is actually documented in the README that comes with the client (Java client in my case), specifically it states:

Every time you modify a file in src/main/resources, you must have Maven recompile the project to pick up the changes. If you copy it to your home directory, you will not need to recompile every time.

After copying the auto-generated Client ID into my ads.properties AND recompiling the client, I no longer received ADD_OPERATION_NOT_PERMITTED in response to the mutate (add) request.

I hope this helps.
Jack

On Wednesday, 26 September 2012 11:59:17 UTC+1, Karol Słuszniak wrote:
I have same problem with adding campaign in sandbox. 
Reply all
Reply to author
Forward
0 new messages