DataService (v201101) not returning results within the Selector DateRange

81 views
Skip to first unread message

sushanth ramaiah

unread,
Sep 29, 2011, 10:29:44 AM9/29/11
to AdWords API Forum
Hi,

I am using DataService (v201101) to retrieve bid landscape data. The
documentation says that the date range can be selected.

Please refer, http://code.google.com/apis/adwords/docs/reference/latest/DataService.DateRange.html.

However, the start date and end date in the results doesn't seem to
comply with the selected date range. Please have a look at the SOAP
messages below. The min and max values for the dateRange are 20110814
and 20110829 respectively.

<soapenv:Header><ns1:RequestHeader soapenv:actor="http://
schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0"
xmlns:ns1="https://adwords.google.com/api/adwords/cm/
v201101"><ns1:authToken xmlns:ns1="https://adwords.google.com/api/
adwords/cm/v201101">******</ns1:authToken><ns1:clientCustomerId>xxxxx</
ns1:clientCustomerId><ns1:developerToken>xxxxxxx</
ns1:developerToken><ns1:userAgent>AdWords API Java Client Library -
v8.3.0 - null</ns1:userAgent><ns1:validateOnly>false</
ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></
ns1:RequestHeader></
soapenv:Header><soapenv:Body><getCriterionBidLandscape xmlns="https://
adwords.google.com/api/adwords/cm/
v201101"><serviceSelector><fields>AdGroupId</
fields><fields>CriterionId</fields><fields>StartDate</
fields><fields>EndDate</fields><fields>Bid</
fields><fields>LocalClicks</fields><fields>LocalCost</
fields><fields>MarginalCpc</fields><fields>LocalImpressions</
fields><predicates><field>AdGroupId</field><operator>IN</
operator><values>378768547</values></
predicates><predicates><field>CriterionId</field><operator>IN</
operator><values>18788619727</values><values>12526754407</values></
predicates><dateRange><min>20110814</min><max>20110829</max></
dateRange></serviceSelector></getCriterionBidLandscape></
soapenv:Body></soapenv:Envelope>


and part of the response,

<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/
v201101"><requestId>0004ae14af4a0f800a1150a300003f60</
requestId><operations>1</operations><responseTime>340</
responseTime><units>1</units></ResponseHeader></
soap:Header><soap:Body><getCriterionBidLandscapeResponse
xmlns="https://adwords.google.com/api/adwords/cm/
v201101"><rval><totalNumEntries>1</
totalNumEntries><Page.Type>CriterionBidLandscapePage</
Page.Type><entries><DataEntry.Type>CriterionBidLandscape</
DataEntry.Type><adGroupId>378768187</adGroupId><startDate>20110921</
startDate><endDate>20110927</
endDate><landscapePoints><bid><ComparableValue.Type>Money</
ComparableValue.Type><microAmount>260000</microAmount></bid><clicks>0</
clicks><cost><ComparableValue.Type>Money</
ComparableValue.Type><microAmount>0</microAmount></
cost><marginalCpc><ComparableValue.Type>Money</
ComparableValue.Type><microAmount>0</microAmount></
marginalCpc><impressions>49</impressions></landscapePoints>

The startDate and endDate are 20110921 and 20110927 are not in the
defined range! How is it possible to confine the results into a fixed
date range? Please advice.

David Torres

unread,
Oct 6, 2011, 3:01:02 PM10/6/11
to adwor...@googlegroups.com
Hi,

The dateRange field is generic for the selector and serves to specify a date range for statistics returned by other services i.e. CampaignService but it has no effect for this service.

Best,

-David Torres - AdWords API Team

Kanan Farzali

unread,
Feb 5, 2016, 11:34:51 AM2/5/16
to AdWords API Forum
How to set DateRange for DataService?

Anthony Madrigal

unread,
Feb 5, 2016, 4:43:46 PM2/5/16
to AdWords API Forum
Hi Kanan,

You can set the DateRange for the DataService by including in the Selector. This is true for all the services that support the DateRange.

Cheers,
Anthony
AdWords API Team

Kanan Farzali

unread,
Feb 8, 2016, 12:09:19 PM2/8/16
to AdWords API Forum
Reply all
Reply to author
Forward
0 new messages