WARNING in logs but everything works as expected

30 views
Skip to first unread message

Nick Harris

unread,
Sep 9, 2017, 6:06:49 PM9/9/17
to AdWords API Forum
According to the documentation on logging in the Google Ads API Client Library for PHP, a WARNING in the logs means "failure": 
Log message \ Event statusSuccessFailure
One-line summaryINFOWARNING
Debug message (e.g., SOAP payload)DEBUGNOTICE


However, I'm able to successfully run my queries, gets, and mutates even though my logs look like below. Any ideas what the "WARNING" is about?

[2017-09-09 14:30:07] local.WARNING: CampaignService 201708  
[2017-09-09 14:30:08] local.INFO: clientCustomerId=###### operations=1 service=CampaignService method=query responseTime=380 requestId=##### server=adwords.google.com isFault=0 faultMessage=  
[2017-09-09 14:30:08] local.DEBUG: POST /api/adwords/cm/v201708/CampaignService?wsdl HTTP/1.1
Connection: close
User-Agent: PHP-SOAP/7.1.6-1~ubuntu16.04.1+deb.sury.org+1
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 1568
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/v201708"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>#####</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/29.0.0, PHP/7.1.6-1~ubuntu16.04.1+deb.sury.org+1)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:query><ns1:query>SELECT AdServingOptimizationStatus, AdvertisingChannelSubType, AdvertisingChannelType, Amount, BaseCampaignId, BiddingStrategyId, BiddingStrategyName, BiddingStrategyType, BudgetId, BudgetName, BudgetReferenceCount, BudgetStatus, CampaignGroupId, CampaignTrialType, DeliveryMethod, Eligible, EndDate, EnhancedCpcEnabled, FrequencyCapMaxImpressions, Id, IsBudgetExplicitlyShared, Labels, Level, Name, RejectionReasons, SelectiveOptimization, ServingStatus, Settings, StartDate, Status, TargetContentNetwork, TargetCpa, TargetCpaMaxCpcBidCeiling, TargetCpaMaxCpcBidFloor, TargetGoogleSearch, TargetPartnerSearchNetwork, TargetRoas, TargetRoasBidCeiling, TargetRoasBidFloor, TargetSearchNetwork, TargetSpendBidCeiling, TargetSpendEnhancedCpcEnabled, TargetSpendSpendTarget, TimeUnit, TrackingUrlTemplate, UrlCustomParameters, VanityPharmaDisplayUrlMode, VanityPharmaText ORDER BY Name LIMIT 0,500</ns1:query></ns1:query></SOAP-ENV:Body></SOAP-ENV:Envelope>

HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Date: Sat, 09 Sep 2017 21:30:08 GMT
Expires: Sat, 09 Sep 2017 21:30:08 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="39,38,37,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/v201708"><requestId>####</requestId><serviceName>CampaignService</serviceName><methodName>query</methodName><operations>1</operations><responseTime>380</responseTime></ResponseHeader></soap:Header><soap:Body><queryResponse xmlns="https://adwords.google.com/api/adwords/cm/v201708"><rval><totalNumEntries>0</totalNumEntries><Page.Type>CampaignPage</Page.Type></rval></queryResponse></soap:Body></soap:Envelope>
  


Peter Oliquino

unread,
Sep 10, 2017, 11:30:40 PM9/10/17
to AdWords API Forum
Hi Nick,

Looking at the logs you have provided, it appears that there is indeed no error encountered when you made the call using the CampaignService of the AdWords API. Additionally since this is more related to the PHP client library, I would recommend that you get in touch with the client library owners via this link for further assistance.

Best regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages