Hi Josh, I have tried without setting *operation.OperationType, *but still getting the same error. My Code is: CampaignService campaignService = (CampaignService)user.GetService(AdWordsService.v201409.CampaignService);
campaignService.RequestHeader.clientCustomerId = ConfigurationManager.AppSettings["ClientCustomerId"]; CampaignOperation operation = new CampaignOperation(); operation.@operator = Operator.ADD; operation.operand = campaign; List<CampaignOperation> operations = new List<CampaignOperation>(); operations.Add(operation); CampaignReturnValue retVal = campaignService.mutate(operations.ToArray()); Last line gives error. Can you have any other solution. On Friday, December 19, 2014 8:47:46 PM UTC+5:30, Josh Radcliff (AdWords API Team) wrote: > > Hi, > > Have you tried *not* setting *operation.OperationType*? That value isn't > required, and by setting it to a value that the API doesn't recognize you > may be triggering that error. > > You may want to check out the AddCampaigns.cs example > <https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201409/BasicOperations/AddCampaigns.cs> > and > compare it to how you are setting up your operations. > > Thanks, > Josh, AdWords API Team > > On Friday, December 19, 2014 7:36:00 AM UTC-5, Abhinash Dora wrote: >> >> I have searched for the error but didn't find any solution. >> >> CampaignOperation operation = new CampaignOperation(); >> operation.OperationType = "CREATE_CAMPAIGN"; >> operation.@operator = Operator.ADD; >> operation.operand = campaign; >> >> CampaignOperation[] operations = new CampaignOperation[] { >> operation }; >> >> >> >> CampaignService campaignService = >> (CampaignService)user.GetService(AdWordsService.v201409.CampaignService); >> >> campaignService.RequestHeader.clientCustomerId = >> ConfigurationManager.AppSettings["ClientCustomerId"]; >> >> CampaignReturnValue retVal = >> campaignService.mutate(operations); >> >> When I tried to execute the last line "CampaignReturnValue retVal = >> campaignService.mutate(operations);", It gives error >> "OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ class >> campaignmgmt.campaign.MutateAction (ADD) requires CREATE_CAMPAIGN" . >> >> Please help me to resolve me this issue. >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups "AdWords 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 http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/c0856193-9ee5-45ec-82e1-f0c82cd5118e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.