Need help with pulling data for Gmail Sponsored Promotion ads

23 views
Skip to first unread message

Hyunsoo Choi

unread,
Dec 15, 2017, 10:02:48 AM12/15/17
to AdWords API Forum
I am trying to pull ad name for Gmail Sponsored Promotion Ads through the API but had no luck so far.
I've gone through this link (https://developers.google.com/adwords/api/docs/appendix/templateads) and made some test calls to the API using the AdGroupAdService (on version 201710). 
Unfortunately, the response did not return data for ads built with the GSP template (template id = 464) even though these ads are active and can be seen in the Adwords console (adwords.google.com).

I was able to see the data come through for other template ids (e.g. templateId=491, 459). So I was wondering if anyone know if the adwords api currently supports getting data for GSP type ads (template id = 464) or is this template ad used for just creating and updating the ad?

This is the SOAP request that I used to send the query. Any help would be much appreciated!

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201710" soapenv:mustUnderstand="0">
            <ns1:clientCustomerId>XXX</ns1:clientCustomerId>
            <ns1:developerToken>REDACTED</ns1:developerToken>
            <ns1:userAgent>campaign-analytics (AwApi-Java, AdWords-Axis/3.10.0, Common-Java/3.10.0, Axis/1.4, Java/1.8.0_73, maven, SelectorBuilder, SelectorField)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
            <serviceSelector>
                <fields>AdGroupId</fields>
                <fields>Id</fields>
                <fields>TemplateId</fields>
                <fields>TemplateAdName</fields>
                <fields>TemplateElementFieldName</fields>
                <fields>TemplateElementFieldText</fields>
                <fields>TemplateElementFieldType</fields>
                <predicates>
                    <field>Status</field>
                    <operator>IN</operator>
                    <values>ENABLED</values>
                    <values>PAUSED</values>
                    <values>DISABLED</values>
                </predicates>
                <paging>
                    <startIndex>0</startIndex>
                    <numberResults>200</numberResults>
                </paging>
            </serviceSelector>
        </get>
    </soapenv:Body>
</soapenv:Envelope>

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Dec 15, 2017, 4:50:27 PM12/15/17
to AdWords API Forum
Hi Hyunsoo, 

I was able to get the Gmail single promotion template ad (template Id : 464) using the AdGroupAdService.get() via API. Could you please reply privately to author and share your client customer Id and the adGroup Id? 

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