CampaignService not return campaigns

68 views
Skip to first unread message

Елена Иващенко

unread,
Dec 19, 2019, 12:50:11 PM12/19/19
to AdWords API and Google Ads API Forum
I've sent the following request:

Content-Type: text/xml; charset=utf-8
Authorization: Bearer {token}
accept-encoding: gzip

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xmlns:tns="https://adwords.google.com/api/adwords/cm/v201809"
                   xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809">
    <SOAP-ENV:Header>
        <tns:RequestHeader>
            <tns:clientCustomerId>6266584989</tns:clientCustomerId>
            <tns:developerToken>{dev token}</tns:developerToken>
            <tns:userAgent>{agent}</tns:userAgent>
            <tns:validateOnly>false</tns:validateOnly>
            <tns:partialFailure>false</tns:partialFailure>
        </tns:RequestHeader>
    </SOAP-ENV:Header>
    <ns0:Body>
        <ns1:get>
            <ns1:serviceSelector>
                <ns1:fields>Id</ns1:fields>
                <ns1:fields>Name</ns1:fields>
                <ns1:fields>Status</ns1:fields>
                <ns1:predicates>
                    <ns1:field>Status</ns1:field>
                    <ns1:operator>IN</ns1:operator>
                    <ns1:values>ENABLED</ns1:values>
                    <ns1:values>PAUSED</ns1:values>
                </ns1:predicates>
            </ns1:serviceSelector>
        </ns1:get>
    </ns0:Body>
</SOAP-ENV:Envelope>

And get the following response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809">
            <requestId>00059a11bb39bc260ae9e88a440d0e23</requestId>
            <serviceName>CampaignService</serviceName>
            <methodName>get</methodName>
            <operations>1</operations>
            <responseTime>181</responseTime>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201809">
            <rval>
                <totalNumEntries>0</totalNumEntries>
                <Page.Type>CampaignPage</Page.Type>
            </rval>
        </getResponse>
    </soap:Body>
</soap:Envelope>

But this account has at list enabled 3 campaigns. They are app campaigns, not video. Why I can't get them with API?

Google Ads API Forum Advisor Prod

unread,
Dec 19, 2019, 4:56:44 PM12/19/19
to elena...@gmail.com, adwor...@googlegroups.com
Hello,

Unfortunately, app campaigns with the sub-type app engagement is not supported by the API. 

Please follow our blog for any updates.

Regards,
Anthony
Google Ads API Team

ref:_00D1U1174p._5001UOEvmd:ref
Reply all
Reply to author
Forward
0 new messages