Hi Javeed,
I looked up your request xml from the requestId. Looks like the error
is exactly what is says in the fault string, i.e.
DistinctError.DUPLICATE_ELEMENT
@ operations[3].operand.targets[1]]. The sanitized xml for your
request's 4th operation is pasted below:
<operations>
<operator>SET</operator>
<operand xsi:type="ns5:NetworkTargetList" xmlns:ns5="https://
adwords.google.com/api/adwords/cm/v200909">
<campaignId>XXXXXX</campaignId>
<targets>
<networkCoverageType>SEARCH_NETWORK</networkCoverageType>
</targets>
<targets>
<networkCoverageType>SEARCH_NETWORK</networkCoverageType>
</targets>
<targets>
<networkCoverageType>CONTENT_NETWORK</networkCoverageType>
</targets>
<targets>
<networkCoverageType>GOOGLE_SEARCH</networkCoverageType>
</targets>
</operand>
</operations>
As you can see, SEARCH_NETWORK target is repeated twice, which causes
the server to raise a DistinctError on the second target.
Hope this helps. Let me know if you have more questions.
Cheers,
Anash P. Oommen,
AdWords API Advisor.
> xmlns="
https://adwords.google.com/api/adwords/cm/v200909"><requestId>fbe52866b9d0f9660841756d38a88ba1</requestId><operations>1</ope rations><responseTime>525</responseTime><units>1</units></ResponseHeader></ soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><fault string>[DistinctError.DUPLICATE_ELEMENT
> operations[3].operand.targets[1]]</message><ApplicationException.Type>ApiEx ception</ApplicationException.Type><errors
> "><fieldPath>operations[3].operand.targets[1]</fieldPath><trigger/><ApiErro r.Type>DistinctError</ApiError.Type><reason>DUPLICATE_ELEMENT</reason></err ors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
> >
adwords-api...@googlegroups.com<adwords-api%2Bunsubscribe@googlegr
oups.com>