Hi Javed,

Here's a raw SOAP xml for AdGroupService.mutate.ADD that you can refer to.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  <soap:Header>
    <RequestHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201306";>
      <authToken 
xmlns="https://adwords.google.com/api/adwords/cm/v201306";>******</authToken>
      <developerToken 
xmlns="https://adwords.google.com/api/adwords/cm/v201306";>******</developerToken>
      <clientCustomerId 
xmlns="https://adwords.google.com/api/adwords/cm/v201306";>918-501-8835</clientCustomerId>
      <userAgent 
xmlns="https://adwords.google.com/api/adwords/cm/v201306";>INSERT_YOUR_COMPANY_OR_APPLICATION_NAME_HERE
 
(AwApi-DotNet/16.2.0, Common-Dotnet/1.9.0, .NET CLR/2.0.50727.5472, 
gzip)</userAgent>
    </RequestHeader>
  </soap:Header>
  <soap:Body>
    <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201306";>
      <operations>
        <operator>ADD</operator>
        <operand>
          <campaignId>1234</campaignId>
          <name>Earth to Mars Cruises #29ba0d81-0592-4111-bc28-4d289abe5d98 
- 2013-10-1 15-17-58.647496</name>
          <status>ENABLED</status>
          <settings xsi:type="TargetingSetting">
            <details>
              <criterionTypeGroup>PLACEMENT</criterionTypeGroup>
              <targetAll>true</targetAll>
            </details>
            <details>
              <criterionTypeGroup>VERTICAL</criterionTypeGroup>
              <targetAll>false</targetAll>
            </details>
          </settings>
          <biddingStrategyConfiguration>
            <bids xsi:type="CpcBid">
              <bid>
                <microAmount>10000000</microAmount>
              </bid>
              <contentBid>
                <microAmount>2000000</microAmount>
              </contentBid>
            </bids>
          </biddingStrategyConfiguration>
        </operand>
      </operations>
    </mutate>
  </soap:Body>
</soap:Envelope>


Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Friday, September 27, 2013 12:13:03 PM UTC+5:30, Javeed Syed wrote:
>
>
> Hi,
>
> I have preform a soap request to mutate an adgroup using 201306 wsdl.
>
> here is the soap request.
>
> <SOAP-ENV:Envelope v20="https://adwords.google.com/api/adwords/cm/v201306"; 
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
>    <SOAP-ENV:Header>
>       <v20:RequestHeader xmlns:v20="
> https://adwords.google.com/api/adwords/cm/v201306";>
>          <v20:authToken>*******************</v20:authToken>
>          <v20:developerToken>*************</v20:developerToken>
>          <v20:clientCustomerId>***-***-****</v20:clientCustomerId>
>       </v20:RequestHeader>
>    </SOAP-ENV:Header>
>    <SOAP-ENV:Body>
>       <v20:mutate xmlns:v20="
> https://adwords.google.com/api/adwords/cm/v201306";>
>          <v20:operations>
>             <v20:operator>ADD</v20:operator>
>                <v20:Operation.Type> 
>                     <xsd:element name='AdGroupOperation' type='xsd:string' 
> />
>                     <v20:operand name="operand" type="tns:AdGroup">
>                         <v20:campaignId>*******</v20:campaignId>
>                         <v20:campaignName>my Campaign</v20:campaignName>
>                         <v20:name>Test adgroup 1</v20:name>
>                         <v20:status>Active</v20:status>
>                     </v20:operand>
>             </v20:Operation.Type>
>          </v20:operations>
>       </v20:mutate>
>    </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> Am getting he following error message:
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
>    <soap:Body>
>       <soap:Fault>
>          <faultcode>soap:Client</faultcode>
>          <faultstring>Unmarshalling Error: cvc-type.2: The type definition 
> cannot be abstract for element v20:operations.</faultstring>
>       </soap:Fault>
>    </soap:Body>
> </soap:Envelope>
>
> i think am doing something wrong. But where can you please let point out 
> thank you,
>
> Syed
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to