how do I get the list of placement in a adgroup?

18 views
Skip to first unread message

ken...@blvnp.com

unread,
Dec 6, 2017, 11:38:18 PM12/6/17
to AdWords API Forum
I want to retrieve the list of Placement in a adgroup via the API, is it possible in the first place?

can anyone point me the right direction? reference, etc. Where I can start study in the API. There is no example given in the google adwords api sample.

I am using PHP, by the way. 

Vincent Racaza (AdWords API Team)

unread,
Dec 7, 2017, 3:27:30 AM12/7/17
to AdWords API Forum
Hi Kendan,

My apologies as we do not have a specific example on getting the list of placements in an ad group. However, you may refer to this example and just change the service to AdGroupCriterionService as well as the query/selector and objects being used. In your query, you can filter by CriterionType = PLACEMENT.

You may refer to the sample SOAP request snippet below:

<soapenv:Body>
   
<get xmlns="https://adwords.google.com/api/adwords/cm/v201710">
       
<serviceSelector>
           
<fields>AdGroupId</fields>
           
<fields>Id</fields>
           
<fields>CriteriaType</fields>
           
<fields>KeywordText</fields>
           
<fields>DisplayName</fields>
           
<predicates>
               
<field>CriteriaType</field>
               
<operator>EQUALS</operator>
               
<values>PLACEMENT</values>
           
</predicates>
           
<paging>
               
<startIndex>0</startIndex>
               
<numberResults>100</numberResults>
           
</paging>
       
</serviceSelector>
   
</get>
</soapenv:Body>

Let me know if this helps.

Thanks,
Vincent
AdWords API Team
Reply all
Reply to author
Forward
0 new messages