Thanks! Vincent, it worked. I'll follow your suggestion.
Zhen

On Wednesday, August 9, 2017 at 8:35:06 PM UTC-7, Vincent Racaza (AdWords 
API Team) wrote:
>
> Hi Zhen,
>
> If you are including a Date segment in your report, you also need to 
> include a DURING clause in your report query. Please see sample code 
> snippet below:
>
> report_query = ('SELECT Year, Date, DayOfWeek, MonthOfYear, CampaignId, 
> CountryCriteriaId, CampaignName,' 
>         'CustomerDescriptiveName, CampaignStatus, AdGroupId ,'
>         'AverageCost, Clicks, Cost, MostSpecificCriteriaId '
>         'FROM GEO_PERFORMANCE_REPORT '
>         'WHERE Year in [2016, 2017] *DURING LAST_MONTH'*)
>
> Also, you may refer to this guide 
> <https://developers.google.com/adwords/api/docs/guides/reporting#date_ranges> 
> for 
> the possible date ranges that you can set in the DURING clause.
>
> I also recommend you to enable your SOAP logs so you can check for your 
> detailed SOAP request and response. You can enable it by following the "How 
> do I log SOAP interactions?" section of this document 
> <https://github.com/googleads/googleads-python-lib#how-do-i-log-soap-interactions>
> .
>
> Thanks,
> Vincent
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/303f0b39-f9d7-4953-91d4-7bf320176bad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to