Campaign appears in reporting API, not in Management API

59 views
Skip to first unread message

Stephen Yeargin

unread,
Apr 27, 2016, 3:33:30 PM4/27/16
to AdWords API Forum
Howdy!

I have a campaign that is appear in a client's reports. However, when I attempt to grab the settings for the campaign (or retrieve this campaign from a listing), there is no data. I'm confirming any other details about the campaign with the client, but right now it is invisible everywhere but in reporting. I've redacted a few of the critical bits to protect client data.

Here is a snippet from the report output:


"Campaign Performance Report (Mar 27, 2016-Apr 26, 2016)"
Day,Campaign ID,Campaign,Impressions,Clicks,CTR,Cost,Avg. CPC,Avg. CPM,Converted clicks,Conversions,Conv. rate,Click conversion rate,Cost / converted click,Cost / conv.,Value / converted click,Total conv. value
[...]
2016-04-02,408085702,[redacted],1801,0,0.00%,6670000,0,3703498,0,0.0,0.00%,0.00%,0,0,0.0,0.0
[...]

Below is the SOAP request log showing 408085702 does not exist.

[Apr 27 2016 14:04:15.000000 - INFO] POST /api/adwords/cm/v201601/CampaignService HTTP/1.1
Host: adwords.google.com
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.5.30, gzip
Accept-Encoding: gzip, deflate
Content-Encoding: gzip
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 768
Authorization: Bearer [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/v201601">
 
<SOAP-ENV:Header>
   
<ns1:RequestHeader>
     
<ns1:clientCustomerId>[redacted]</ns1:clientCustomerId>
     
<ns1:developerToken>[redacted]</ns1:developerToken>
     
<ns1:userAgent>[redacted] (AwApi-PHP/8.1.0, Common-PHP/8.1.0, PHP/5.5.30)</ns1:userAgent>
     
<ns1:validateOnly>false</ns1:validateOnly>
    </
ns1:RequestHeader>
 
</SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <ns1:get>
      <ns1:serviceSelector>
        <ns1:fields>Id</
ns1:fields>
       
<ns1:fields>Name</ns1:fields>
        <ns1:fields>Status</
ns1:fields>
       
<ns1:fields>ServingStatus</ns1:fields>
        <ns1:fields>StartDate</
ns1:fields>
       
<ns1:fields>EndDate</ns1:fields>
        <ns1:fields>AdServingOptimizationStatus</
ns1:fields>
       
<ns1:fields>BudgetId</ns1:fields>
        <ns1:fields>BudgetName</
ns1:fields>
       
<ns1:fields>IsBudgetExplicitlyShared</ns1:fields>
        <ns1:fields>BiddingStrategyId</
ns1:fields>
       
<ns1:fields>BiddingStrategyName</ns1:fields>
        <ns1:fields>BiddingStrategyType</
ns1:fields>
       
<ns1:fields>Settings</ns1:fields>
        <ns1:fields>Amount</
ns1:fields>
       
<ns1:fields>Period</ns1:fields>
        <ns1:fields>DeliveryMethod</
ns1:fields>
       
<ns1:fields>PricingModel</ns1:fields>
        <ns1:fields>EnhancedCpcEnabled</
ns1:fields>
       
<ns1:fields>BidCeiling</ns1:fields>
        <ns1:fields>Eligible</
ns1:fields>
       
<ns1:fields>RejectionReasons</ns1:fields>
        <ns1:fields>FrequencyCapMaxImpressions</
ns1:fields>
       
<ns1:fields>TimeUnit</ns1:fields>
        <ns1:fields>Level</
ns1:fields>
       
<ns1:fields>TargetGoogleSearch</ns1:fields>
        <ns1:fields>TargetSearchNetwork</
ns1:fields>
       
<ns1:fields>TargetContentNetwork</ns1:fields>
        <ns1:fields>TargetPartnerSearchNetwork</
ns1:fields>
       
<ns1:predicates>
         
<ns1:field>Id</ns1:field>
          <ns1:operator>EQUALS</
ns1:operator>
         
<ns1:values>408085702</ns1:values>
        </
ns1:predicates>
       
<ns1:dateRange>
         
<ns1:min>20160326</ns1:min>
          <ns1:max>20160426</
ns1:max>
       
</ns1:dateRange>
        <ns1:ordering>
          <ns1:field>Name</
ns1:field>
         
<ns1:sortOrder>ASCENDING</ns1:sortOrder>
        </
ns1:ordering>
     
</ns1:serviceSelector>
    </
ns1:get>
 
</SOAP-ENV:Body>
</
SOAP-ENV:Envelope>

HTTP
/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Date: Wed, 27 Apr 2016 18:04:15 GMT
Expires: Wed, 27 Apr 2016 18:04:15 GMT
Cache-Control: private, max-age=0
X
-Content-Type-Options: nosniff
X
-Frame-Options: SAMEORIGIN
X
-XSS-Protection: 1; mode=block
Server: GSE
Transfer-Encoding: chunked

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 
<soap:Header>
   
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201601">
     
<requestId>0005317b3ce0ace80a0ded85a10e2280</requestId>
      <serviceName>CampaignService</
serviceName>
     
<methodName>get</methodName>
      <operations>1</
operations>
     
<responseTime>158</responseTime>
    </
ResponseHeader>
 
</soap:Header>
  <soap:Body>
    <getResponse xmlns="https:/
/adwords.google.com/api/adwords/cm/v201601">
      <rval>
        <totalNumEntries>0</totalNumEntries>
        <Page.Type>CampaignPage</Page.Type>
      </rval>
    </getResponse>
  </soap:Body>
</soap:Envelope>



Yin Niu

unread,
Apr 27, 2016, 4:03:00 PM4/27/16
to AdWords API Forum
Hi, 

Could you print out CampaignStatus in the Campaign Performance Report? If the campaign is removed, it will still show up in the report but CampaignService will not return removed campaigns by default. 

If that's not the case, could you provide clientCustomerID? Just click Reply privately to author in the forum when responding. 

Thanks,
Yin, AdWords API Team. 

justin biebee

unread,
May 4, 2016, 4:35:57 PM5/4/16
to AdWords API Forum
...
Reply all
Reply to author
Forward
0 new messages