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/ccc8ff9d-c206-4045-8caf-20c55904a6cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to