I have campaignservice object using adwords 200909 version.
here are the steps I am taking to initialize the object and trying to
mutate campaign.
first creating header object as following:
Dictionary<string, string> headers = new Dictionary<string, string>();
headers.Add("email", mysoapHeader.Email);
headers.Add("password", mysoapHeader.Password);
headers.Add("useragent", mysoapHeader.UserAgent);
headers.Add("developerToken",
mysoapHeader.DeveloperToken);
headers.Add("applicationToken",
mysoapHeader.ApplicationToken);
headers.Add("clientCustomerId", mysoapHeader.CustomerId);
then adwordsuser object as following:
user = new AdWordsUser(headers);
CampaignService service =
(CampaignService)user.GetService(AdWordsService.v200909.CampaignService);
CampaignSelector cs = new CampaignSelector();
cs.campaignStatuses = new CampaignStatus[] {
CampaignStatus.ACTIVE, CampaignStatus.PAUSED};
I am poppulating list of campaginoperation before calling the mutate
function.
List<CampaignOperation> addUpdateDeleteList //passed in to the
function.
CampaignOperation[] cos = addUpdateDeleteList.ToArray();
CampaignReturnValue campaignReturnValue =
service.mutate(cos);
but getting operator not supported when last line gets executed.
If it helps here is the soap response:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Header><Respon
seHeader
xmlns="https://adwords.google.com/api/adwords/cm/
v200909"><requestId>64f971
f66ee34089c6057cabf71c587a</requestId><operations>1</
operations><responseTi
me>178</responseTime><units>1</units></ResponseHeader></
soap:Header><soap:B
ody><soap:Fault><faultcode>soap:Server</
faultcode><faultstring>[OperatorErr
or.OPERATOR_NOT_SUPPORTED @
operations[0]]</faultstring><detail><ApiExceptionFault
xmlns="https://adwords.google.com/api/adwords/cm/
v200909"><message>[Operato
rError.OPERATOR_NOT_SUPPORTED @
operations[0]]</message><ApplicationException.Type>ApiException</
Applicatio
nException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"
xsi:type="OperatorError"><fieldPath>operations[0]</
fieldPath><trigger></tri
gger><ApiError.Type>OperatorError</
ApiError.Type><reason>OPERATOR_NOT_SUPPO
RTED</reason></errors></ApiExceptionFault></detail></soap:Fault></
soap:Body
></soap:Envelope>
--
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en.