Hi Jeszi,

You may refer to our AddKeywords 
<https://developers.google.com/adwords/api/docs/samples/java/basic-operations#add-keywords>
 example 
that is available in the Java client library and you may then use the 
Placement 
<https://developers.google.com/adwords/api/docs/reference/v201705/AdGroupCriterionService.Placement>
 criterion 
instead of the Keyword 
<https://developers.google.com/adwords/api/docs/reference/v201705/AdGroupCriterionService.Keyword>
 criterion. 
You may also refer to the below sample SOAP request and response below on 
how to ADD the Placement using the AdGroupCriterionService 
<https://developers.google.com/adwords/api/docs/reference/v201705/AdGroupCriterionService>
 :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <soapenv:Header>
        <ns1:RequestHeader 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201705"; 
soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>YOUR_CUSTOMER_ID</ns1:clientCustomerId>
            <ns1:developerToken>YOUR_DEVELOPER_TOKEN</ns1:developerToken>
            <ns1:userAgent>YOUR_USER_AGENT</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
        <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201705";>
            <operations>
                <operator>ADD</operator>
                <operand 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201705"; 
xsi:type="ns2:BiddableAdGroupCriterion">
                    <ns2:adGroupId>THE_ADGROUP_ID</ns2:adGroupId>
                    <ns2:criterion xsi:type="ns2:Placement">
                        <ns2:type>PLACEMENT</ns2:type>
                        <ns2:url>www.exampleurlone.com</ns2:url>
                    </ns2:criterion>
                    <ns2:biddingStrategyConfiguration>
                        <ns2:bids xsi:type="ns2:CpcBid">
                            <ns2:bid>
                                <ns2:microAmount>10000000</ns2:microAmount>
                            </ns2:bid>
                        </ns2:bids>
                    </ns2:biddingStrategyConfiguration>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>
[main] INFO 
com.google.api.ads.adwords.lib.client.AdWordsServiceClient.soapXmlLogger - 
SOAP Response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
    <soap:Header>
        <ResponseHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201705";>
            <requestId>THE_REQUEST_ID</requestId>
            <serviceName>AdGroupCriterionService</serviceName>
            <methodName>mutate</methodName>
            <operations>1</operations>
            <responseTime>375</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <mutateResponse 
xmlns="https://adwords.google.com/api/adwords/cm/v201705";>
            <rval>
                
<ListReturnValue.Type>AdGroupCriterionReturnValue</ListReturnValue.Type>
                <value 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="BiddableAdGroupCriterion">
                    <adGroupId>THE_ADGROUP_ID</adGroupId>
                    <criterion xsi:type="Placement">
                        <id>THE_PLACEMENT_CRITERION_ID</id>
                        <type>PLACEMENT</type>
                        <Criterion.Type>Placement</Criterion.Type>
                        <url>www.exampleurlone.com</url>
                    </criterion>
                    
<AdGroupCriterion.Type>BiddableAdGroupCriterion</AdGroupCriterion.Type>
                    <userStatus>ENABLED</userStatus>
                    <systemServingStatus>ELIGIBLE</systemServingStatus>
                    <approvalStatus>APPROVED</approvalStatus>
                    <biddingStrategyConfiguration>
                        
<biddingStrategyType>MANUAL_CPC</biddingStrategyType>
                        
<biddingStrategySource>CAMPAIGN</biddingStrategySource>
                        <biddingScheme xsi:type="ManualCpcBiddingScheme">
                            
<BiddingScheme.Type>ManualCpcBiddingScheme</BiddingScheme.Type>
                            <enhancedCpcEnabled>false</enhancedCpcEnabled>
                        </biddingScheme>
                        <bids xsi:type="CpmBid">
                            <Bids.Type>CpmBid</Bids.Type>
                            <bid>
                                
<ComparableValue.Type>Money</ComparableValue.Type>
                                <microAmount>10000</microAmount>
                            </bid>
                            <cpmBidSource>ADGROUP</cpmBidSource>
                        </bids>
                        <bids xsi:type="CpcBid">
                            <Bids.Type>CpcBid</Bids.Type>
                            <bid>
                                
<ComparableValue.Type>Money</ComparableValue.Type>
                                <microAmount>10000000</microAmount>
                            </bid>
                            <cpcBidSource>CRITERION</cpcBidSource>
                        </bids>
                    </biddingStrategyConfiguration>
                </value>
            </rval>
        </mutateResponse>
    </soap:Body>
</soap:Envelope>


Let me know if this helps.

Best regards,
Peter
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/51fa65b3-e343-40b0-86e0-50b42a43f7be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to