where is getAudiences?

34 views
Skip to first unread message

yoonc...@naver.com

unread,
Nov 9, 2016, 1:23:01 AM11/9/16
to AdWords API Forum
Hi I development Remarketing part

I have a questions

where is getAudiences?

and where is ApplyAudience to adgroups?




is [Add ad group] button not exist API ?


thank you


plz reply :)


Peter Oliquino

unread,
Nov 9, 2016, 2:25:40 AM11/9/16
to AdWords API Forum
Hi,

If you wish to get the list of audiences, you may use the AdwordsUserListService.get and refer here for the selectable fields. Additionally, you may refer to our remarketing guide for more information such as targeting ads in AdGroup to a UserList.

Furthermore, there is an add AdGroup button in the AdWords UI that you can find under the Campaigns > Ad groups tabs. You can also check out our AddAdGroups example (other languages also available in the link) for its equivalent in the AdWords API. Let me know if this helps.

Best regards,
Peter
AdWords API Team

yoonc...@naver.com

unread,
Nov 9, 2016, 2:32:55 AM11/9/16
to AdWords API Forum
Thanks for your reply

I mean, not Campaign > adgroup list, [Save] function like this captcher


is [save] function exist at Adwords API ?


thanks ;)

Peter Oliquino

unread,
Nov 9, 2016, 3:17:33 AM11/9/16
to AdWords API Forum
Hi,

Yes, as mentioned in the remarketing guide (under the "Visitors to your website" section), you can associate UserLists and AdGroups by using the AdGroupCriterionService and specify a new CriterionUserList as a BiddableAgGroupCriterion for your AdGroup. I hope this helps and please let me know if you have any other concerns.
Message has been deleted

yoonc...@naver.com

unread,
Nov 9, 2016, 3:42:31 AM11/9/16
to AdWords API Forum
One more Question

Any Example source ? 

On Wednesday, November 9, 2016 at 3:23:01 PM UTC+9, yoonc...@naver.com wrote:

Peter Oliquino

unread,
Nov 9, 2016, 4:12:11 AM11/9/16
to AdWords API Forum
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.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages