<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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/v201609"; 
soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>307-108-6409</ns1:clientCustomerId>
            <ns1:developerToken>X7wfGCaplLo8xY-gpZVTGw</ns1:developerToken>
            <ns1:userAgent>mezzomedia</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/v201609";>
            <operations>
                <operator>ADD</operator>
                <operand xmlns:ns2="
https://adwords.google.com/api/adwords/cm/v201609"; xsi:type="ns2:
BiddableAdGroupCriterion">
                    <ns2:adGroupId>38812583271</ns2:adGroupId>
                    <ns2:criterion xsi:type="ns2:CriterionUserList">
                        <ns2:userListId>439994494</ns2:userListId>

                    </ns2:criterion>
                </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/v201609";>
            <requestId>XXXXXXXXXX</requestId>
            <serviceName>AdGroupCriterionService</serviceName>
            <methodName>mutate</methodName>
            <operations>1</operations>
            <responseTime>434</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <mutateResponse xmlns="
https://adwords.google.com/api/adwords/cm/v201609";>
            <rval>
                <ListReturnValue.Type>AdGroupCriterionReturnValue</
ListReturnValue.Type>
                <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="BiddableAdGroupCriterion">
                    <adGroupId>38812583271</adGroupId>
                    <criterion xsi:type="CriterionUserList">
                        <id>38812583271</id>
                        <type>USER_LIST</type>
                        <Criterion.Type>CriterionUserList</Criterion.Type>
                        <userListId>439994494</userListId>
                        <userListName>123123</userListName>
                    </criterion>
                    <AdGroupCriterion.Type>BiddableAdGroupCriterion</
AdGroupCriterion.Type>
                    <userStatus>ENABLED</userStatus>
                    <systemServingStatus>ELIGIBLE</systemServingStatus>
                    <approvalStatus>APPROVED</approvalStatus>
                    <biddingStrategyConfiguration>
                        <biddingStrategyType>TARGET_
SPEND</biddingStrategyType>
                        <biddingStrategySource>CAMPAIGN</
biddingStrategySource>
                        <biddingScheme xsi:type="TargetSpendBiddingScheme">
                            <BiddingScheme.Type>TargetSpendBiddingScheme</
BiddingScheme.Type>
                            <bidCeiling>
                                <ComparableValue.Type>Money</
ComparableValue.Type>
                                <microAmount>50000000</microAmount>
                            </bidCeiling>
                        </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>10000</microAmount>
                            </bid>
                            <cpcBidSource>ADGROUP</cpcBidSource>
                        </bids>
                    </biddingStrategyConfiguration>
                </value>
            </rval>
        </mutateResponse>
    </soap:Body>
</soap:Envelope>



On Wednesday, November 9, 2016 at 6:12:11 PM UTC+9, Peter Oliquino wrote:
>
> Hi,
>
> My apologies if I'm not a PHP expert. I can, however, provide you with a 
> sample SOAP request and response that you can refer to as seen below :
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <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/v201609"; 
> 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/v201609";>
>             <operations>
>                 <operator>ADD</operator>
>                 <operand xmlns:ns2="
> https://adwords.google.com/api/adwords/cm/v201609"; 
> xsi:type="ns2:BiddableAdGroupCriterion">
>                     <ns2:adGroupId>YOUR_ADGROUP_ID</ns2:adGroupId>
>                     <ns2:criterion xsi:type="ns2:CriterionUserList">
>                         <ns2:userListId>YOUR_USERLIST_ID</ns2:userListId>
>                     </ns2:criterion>
>                 </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/v201609";>
>             <requestId>XXXXXXXXXX</requestId>
>             <serviceName>AdGroupCriterionService</serviceName>
>             <methodName>mutate</methodName>
>             <operations>1</operations>
>             <responseTime>434</responseTime>
>         </ResponseHeader>
>     </soap:Header>
>     <soap:Body>
>         <mutateResponse xmlns="
> https://adwords.google.com/api/adwords/cm/v201609";>
>             <rval>
>                 
> <ListReturnValue.Type>AdGroupCriterionReturnValue</ListReturnValue.Type>
>                 <value xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="BiddableAdGroupCriterion">
>                     <adGroupId>YOUR_ADGROUP_ID</adGroupId>
>                     <criterion xsi:type="CriterionUserList">
>                         <id>YOUR_ADGROUP_ID</id>
>                         <type>USER_LIST</type>
>                         <Criterion.Type>CriterionUserList</Criterion.Type>
>                         <userListId>YOUR_USERLIST_ID</userListId>
>                         <userListName>YOUR_USERLIST_NAME</userListName>
>                     </criterion>
>                     
> <AdGroupCriterion.Type>BiddableAdGroupCriterion</AdGroupCriterion.Type>
>                     <userStatus>ENABLED</userStatus>
>                     <systemServingStatus>ELIGIBLE</systemServingStatus>
>                     <approvalStatus>APPROVED</approvalStatus>
>                     <biddingStrategyConfiguration>
>                         
> <biddingStrategyType>TARGET_SPEND</biddingStrategyType>
>                         
> <biddingStrategySource>CAMPAIGN</biddingStrategySource>
>                         <biddingScheme xsi:type="TargetSpendBiddingScheme">
>                             
> <BiddingScheme.Type>TargetSpendBiddingScheme</BiddingScheme.Type>
>                             <bidCeiling>
>                                 
> <ComparableValue.Type>Money</ComparableValue.Type>
>                                 <microAmount>50000000</microAmount>
>                             </bidCeiling>
>                         </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>10000</microAmount>
>                             </bid>
>                             <cpcBidSource>ADGROUP</cpcBidSource>
>                         </bids>
>                     </biddingStrategyConfiguration>
>                 </value>
>             </rval>
>         </mutateResponse>
>     </soap:Body>
> </soap:Envelope>
>
>
> Please note that you will have to update the values of the fields in 
> yellow based on your own data. 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/4a918880-3d34-4e4c-8a16-dd9600361327%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to