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/cae3b35a-7a51-471b-baf6-bfea66cc9eee%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
