Hi Pradeep,

In regards to your error in PHP, you need to set a defined constant value 
in the dateRangeType as the LAST_7_DAYS constant value is 
under ReportDefinitionDateRangeType object. Meaning, you could not just 
create a variable and set it in ReportDefinitionDateRangeType. Kindly set 
it back to original value based on the example:

$reportDefinition->setDateRangeType(
        ReportDefinitionDateRangeType::LAST_7_DAYS);

For filtering your report by location and device, you can only filter by 
Device 
<https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report#device>
 and 
not location in the Campaign Performance Report as there is no location ID 
in this report type. You can use other report types (e.g. Geo Performance 
Report 
<https://developers.google.com/adwords/api/docs/appendix/reports/geo-performance-report>
, Campaign Location Target Report 
<https://developers.google.com/adwords/api/docs/appendix/reports/campaign-location-target-report>)
 
to retrieve and filter by location.

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/b13a826f-a967-4176-8b59-8a9ced6211e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Fatal error: Unc... Pradeep Kumar
    • Re: Fatal e... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum
      • Re: Fat... Pradeep Kumar
        • Re:... 'Vincent Racaza (AdWords API Team)' via AdWords API Forum

Reply via email to