*Request:*

<?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/v201309";>
            <developerToken 
xmlns="https://adwords.google.com/api/adwords/cm/v201309";>***</developerToken>
            <clientCustomerId 
xmlns="https://adwords.google.com/api/adwords/cm/v201309";>***</clientCustomerId>
            <userAgent 
xmlns="https://adwords.google.com/api/adwords/cm/v201309";>***</userAgent>
            <partialFailure 
xmlns="https://adwords.google.com/api/adwords/cm/v201309";>true</partialFailure>
        </RequestHeader>
    </soap:Header>
    <soap:Body>
        <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201309";>
            <operations>
                <operator>ADD</operator>
                <operand xsi:type="NegativeCampaignCriterion">
                    <campaignId>116047527</campaignId>
                    <criterion xsi:type="Keyword">
                        <text>+1030-10 +CH</text>
                        <matchType>BROAD</matchType>
                    </criterion>
                </operand>
            </operations>
        </mutate>
    </soap:Body>
</soap:Envelope>

*
*
*Response:*

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
    <soap:Header>
        <ResponseHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201309";>
            <requestId>0004e8400f05d0e80ae5aa8e00000ccf</requestId>
            <serviceName>CampaignCriterionService</serviceName>
            <methodName>mutate</methodName>
            <operations>1</operations>
            <responseTime>269</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <mutateResponse 
xmlns="https://adwords.google.com/api/adwords/cm/v201309";>
            <rval>
                
<ListReturnValue.Type>CampaignCriterionReturnValue</ListReturnValue.Type>
                <value 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="NegativeCampaignCriterion">
                    <campaignId>116047527</campaignId>
                    <isNegative>true</isNegative>
                    <criterion xsi:type="Keyword">
                        <id>54179716647</id>
                        <type>KEYWORD</type>
                        <Criterion.Type>Keyword</Criterion.Type>
                        <text>+1030-10 +CH</text>
                        <matchType>BROAD</matchType>
                    </criterion>
                    
<CampaignCriterion.Type>NegativeCampaignCriterion</CampaignCriterion.Type>
                </value>
            </rval>
        </mutateResponse>
    </soap:Body>
</soap:Envelope>

On Tuesday, October 8, 2013 11:59:58 AM UTC-4, Danial Klimkin wrote:
>
> Hello,
>
>
> Can you please send us the XML code of the request and full server 
> response? Please make sure to exclude sensitive details such as AuthToken 
> or developer token.
>
>
> -Danial, AdWords API Team.
>
>
> On Thursday, October 3, 2013 12:21:26 AM UTC+4, goingdev wrote:
>>
>> Using the API (201306) I'm trying to upload a phrase, exact and broad 
>> (with modifier) keyword to a campaign and an adgroup in a different 
>> campaign.
>>
>> All three keywords uploaded successfully to the adgroup but only the 
>> phrase and exact keyword was uploaded to the campaign.
>>
>> Here's the piece of code that uploads the negative keyword to the 
>> campaign:
>>
>>     public static CampaignCriterionOperation 
>>>> GetCampaignNegativeKeywordOperation(string keywordText, 
>>>> Google.Api.Ads.AdWords.v201306.KeywordMatchType keywordMatchType, long 
>>>> campaignID, Google.Api.Ads.AdWords.v201306.Operator operat)
>>>
>>>     {
>>>
>>>         Keyword keyword = new Keyword
>>>
>>>         {
>>>
>>>             text = keywordText,
>>>
>>>             matchType = keywordMatchType
>>>
>>>         };
>>>
>>>         NegativeCampaignCriterion criterion = new 
>>>> NegativeCampaignCriterion
>>>
>>>         {
>>>
>>>             campaignId = campaignID,
>>>
>>>             criterion = keyword
>>>
>>>         };
>>>
>>>         CampaignCriterionOperation operation = new 
>>>> CampaignCriterionOperation
>>>
>>>         {
>>>
>>>             @operator = operat,
>>>
>>>             operand = criterion
>>>
>>>         };
>>>
>>>
>>>>         return operation;
>>>
>>>     }
>>>
>>>
>>>
>> I can't seem to figure out where I'm going wrong. Any help is 
>> appreciated. 
>>
>

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

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

Reply via email to