Hello Neil,
You need to specify the clientCustomerId in you properties file. By default you are hitting the MCC account which can not have campaigns created. You can obtain the IDs by running the getAccountHierarchy example. -Danial, AdWords API Team. Original Message Follows: ------------------------ From: Neil Kirk <skeni...@gmail.com> Subject: Re: ADD_OPERATION_NOT_PERMITTED when using sample code v201109 Date: Mon, 6 Feb 2012 11:11:31 -0800 (PST) > Hi, > > I am having the same problem. I am trying to upgrade my application to use > v201109. > > My properties file is: > email=????@????.com > password=???? > userAgent=AdwordsSandbox > developerToken=????@????.com++GBP > alternateUrl=https://adwords-sandbox.google.com > > When I run the get_campaigns.pl from the examples (no changed at all) it > runs OK. I have tested it on my live account and the list of all the > campaigns is returned, so I know it is working. But when I run the > add_campaign.pl example, with the same properties file, I get: > <?xml version="1.0"?> > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > <soap:Header> > <ResponseHeader > xmlns="https://adwords.google.com/api/adwords/cm/v201109"> > <requestId>0004b8505bfae7780a0d711400003901</requestId> > <serviceName>CampaignService</serviceName> > <methodName>mutate</methodName> > <operations>1</operations> > <responseTime>2004</responseTime> > <units>1</units> > </ResponseHeader> > </soap:Header> > <soap:Body> > <soap:Fault> > <faultcode>soap:Server</faultcode> > <faultstring>[OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ > operations[0]]</faultstring> > <detail> > <ApiExceptionFault > xmlns="https://adwords.google.com/api/adwords/cm/v201109"> > <message>[OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ > operations[0]]</message> > > <ApplicationException.Type>ApiException</ApplicationException.Type> > <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="OperationAccessDenied"> > <fieldPath>operations[0]</fieldPath> > <trigger/> > > <errorString>OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED</errorString> > <ApiError.Type>OperationAccessDenied</ApiError.Type> > <reason>ADD_OPERATION_NOT_PERMITTED</reason> > </errors> > </ApiExceptionFault> > </detail> > </soap:Fault> > </soap:Body> > </soap:Envelope> > > I have tried to follow the instructions you gave above. The > get_all_campaigns.pl returns a 404 error; and the get_client_customer_id.plalso returns an error: > <?xml version="1.0"?> > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > <soap:Header> > <ResponseHeader > xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201109" > xmlns="https://adwords.google.com/api/adwords/info/v201109"> > <ns2:requestId>0004b850649e8b280a0c3b170000486e</ns2:requestId> > <ns2:serviceName>InfoService</ns2:serviceName> > <ns2:methodName>get</ns2:methodName> > <ns2:operations>1</ns2:operations> > <ns2:responseTime>1675</ns2:responseTime> > <ns2:units>1</ns2:units> > </ResponseHeader> > </soap:Header> > <soap:Body> > <soap:Fault> > <faultcode>soap:Server</faultcode> > <faultstring>[ApiUsageError.INVALID_CLIENT_EMAIL @ selector; > trigger:'????@????.com']</faultstring> > <detail> > <ApiExceptionFault > xmlns="https://adwords.google.com/api/adwords/info/v201109" > xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201109"> > <ns2:message>[ApiUsageError.INVALID_CLIENT_EMAIL @ selector; > trigger:'????@????.com']</ns2:message> > > <ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type> > <ns2:errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="ApiUsageError"> > <ns2:fieldPath>selector</ns2:fieldPath> > <ns2:trigger>????@????.com</ns2:trigger> > > <ns2:errorString>ApiUsageError.INVALID_CLIENT_EMAIL</ns2:errorString> > <ns2:ApiError.Type>ApiUsageError</ns2:ApiError.Type> > <reason>INVALID_CLIENT_EMAIL</reason> > </ns2:errors> > </ApiExceptionFault> > </detail> > </soap:Fault> > </soap:Body> > </soap:Envelope> > > Any help would be greatly appreciated! > > -- > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > Also find us on our blog and discussion group: > http://adwordsapi.blogspot.com > http://groups.google.com/group/adwords-api > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ > > You received this message because you are subscribed to the Google > Groups "AdWords 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 > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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