SOAP error with Marketing API

16 views
Skip to first unread message

drea...@gmail.com

unread,
Oct 24, 2018, 11:44:30 AM10/24/18
to AdWords API and Google Ads API Forum

Hi! We're using google marketing api on our customer's behalf, and been having issues loading info for one of the banners he manages. Here's a screenshot, out client provided, that shows a banner by id 299082079370  

  present in the system.

Could you please help us with this issue, thanks!

Here's a full SOAP request info: 

[2018-10-23 14:57:20] AdWords.INFO: clientCustomerId=4482376070 operations=1 service=AdGroupAdService method=get responseTime=235 requestId=000578e6962789900a37a093ee072469 server=adwords.google.com isFault=0 faultMessage= [] []
[2018-10-23 14:57:20] AdWords.DEBUG: POST /api/adwords/cm/v201802/AdGroupAdService?wsdl HTTP/1.1 Host: adwords.google.com Connection: close User-Agent: PHP-SOAP/5.4.45-1~dotdeb+7.1 Content-Type: text/xml; charset=utf-8 SOAPAction: "" Content-Length: 2187 Authorization: REDACTED <?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/v201802"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>4482376070</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/33.1.0, PHP/5.4.45-1~dotdeb+7.1)</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>AdGroupId</ns1:fields><ns1:fields>Status</ns1:fields><ns1:fields>Url</ns1:fields><ns1:fields>DisplayUrl</ns1:fields><ns1:fields>CreativeFinalUrls</ns1:fields><ns1:fields>CreativeFinalMobileUrls</ns1:fields><ns1:fields>CreativeTrackingUrlTemplate</ns1:fields><ns1:fields>CreativeUrlCustomParameters</ns1:fields><ns1:fields>AdType</ns1:fields><ns1:fields>DevicePreference</ns1:fields><ns1:fields>UrlData</ns1:fields><ns1:fields>PolicySummary</ns1:fields><ns1:fields>Description</ns1:fields><ns1:fields>Description1</ns1:fields><ns1:fields>Description2</ns1:fields><ns1:fields>MarketingImage</ns1:fields><ns1:fields>LogoImage</ns1:fields><ns1:fields>ShortHeadline</ns1:fields><ns1:fields>LongHeadline</ns1:fields><ns1:fields>BusinessName</ns1:fields><ns1:fields>TemplateId</ns1:fields><ns1:fields>TemplateAdUnionId</ns1:fields><ns1:fields>TemplateAdName</ns1:fields><ns1:fields>TemplateAdDuration</ns1:fields><ns1:fields>TemplateOriginAdId</ns1:fields><ns1:fields>HeadlinePart1</ns1:fields><ns1:fields>HeadlinePart2</ns1:fields><ns1:fields>Path1</ns1:fields><ns1:fields>Path2</ns1:fields><ns1:predicates><ns1:field>Id</ns1:field><ns1:operator>IN</ns1:operator><ns1:values>299082079370</ns1:values></ns1:predicates><ns1:predicates><ns1:field>Status</ns1:field><ns1:operator>IN</ns1:operator><ns1:values>ENABLED</ns1:values><ns1:values>DISABLED</ns1:values><ns1:values>PAUSED</ns1:values></ns1:predicates><ns1:paging><ns1:startIndex>0</ns1:startIndex><ns1:numberResults>500</ns1:numberResults></ns1:paging></ns1:serviceSelector></ns1:get></SOAP-ENV:Body></SOAP-ENV:Envelope> HTTP/1.1 200 OK Content-Type: text/xml; charset=UTF-8 Date: Tue, 23 Oct 2018 14:57:20 GMT Expires: Tue, 23 Oct 2018 14:57:20 GMT Cache-Control: private, max-age=0 X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Server: GSE Alt-Svc: quic=":443"; ma=2592000; v="44,43,39,35" Accept-Ranges: none Vary: Accept-Encoding Connection: close <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201802"><requestId>000578e6962789900a37a093ee072469</requestId><serviceName>AdGroupAdService</serviceName><methodName>get</methodName><operations>1</operations><responseTime>235</responseTime></ResponseHeader></soap:Header><soap:Body><getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201802"><rval><totalNumEntries>0</totalNumEntries><Page.Type>AdGroupAdPage</Page.Type></rval></getResponse></soap:Body></soap:Envelope>

Josh Radcliff (AdWords API Team)

unread,
Oct 25, 2018, 5:11:13 PM10/25/18
to AdWords API and Google Ads API Forum
Hi,

I see that the type of that ad is MultiAssetResponsiveDisplayAd, which was introduced in the AdWords API in v201806. Since you're using v201802, the API won't return this ad from services. However, you should still be able to retrieve it via v201802 reports such as the AD_PERFORMANCE_REPORT. If you migrate to v201806, or better yet, v201809, you'll be able to retrieve this ad from AdGroupAdService.

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