campaign service does not return data for youtube campaign

45 views
Skip to first unread message

don....@gmail.com

unread,
Aug 31, 2020, 2:20:09 PM8/31/20
to AdWords API and Google Ads API Forum

Hello, we are having issue when pulling data from one of our clients adwords accounts,  CampaignService -> get request return no data for any of youtube campaigns while we can get other types of campaigns
Could you please advise if its expected and how to get data for the youtube campaign?

Example of the call

--header 'Authorization: Bearer REDACTED' \
--header 'Content-Type: application/xml' \
--data-raw '<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>4234030620</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/40.0.0, PHP/7.1.25-1+ubuntu16.04.1+deb.sury.org+1, ReportDownloader/file)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:get><ns1:serviceSelector><ns1:fields>AdvertisingChannelType</ns1:fields><ns1:fields>AdvertisingChannelSubType</ns1:fields><ns1:fields>Eligible</ns1:fields><ns1:fields>RejectionReasons</ns1:fields><ns1:fields>TargetCpa</ns1:fields><ns1:predicates><ns1:field>CampaignId</ns1:field><ns1:operator>EQUALS</ns1:operator><ns1:values>9252772951</ns1:values></ns1:predicates></ns1:serviceSelector></ns1:get></SOAP-ENV:Body></SOAP-ENV:Envelope>

And actual response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<requestId>0005ae30533e7bcb0a371292710cdafe</requestId>
<serviceName>CampaignService</serviceName>
<methodName>get</methodName>
<operations>1</operations>
<responseTime>146</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<rval>
<totalNumEntries>0</totalNumEntries>
<Page.Type>CampaignPage</Page.Type>
</rval>
</getResponse>
</soap:Body>
</soap:Envelope>

Campaign id is correct and campaign is of type video and currently paused
Screenshot 2020-08-31 at 21.15.54.png
'
Thank you in advance for the help!

Google Ads API Forum Advisor Prod

unread,
Aug 31, 2020, 4:06:20 PM8/31/20
to don....@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out. Video campaigns are supported only in reports.You would be able to retrieve the video campaigns data either from the Video Performance Report in the Adwords API or the video resource in the Google Ads API.

Thanks and regards,
Xiaoming, Google Ads API Team





Google Logo
Xiaoming
Google Ads API Team
 


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