Dear Vincent Racaza , Thank you for your kind reply.
But see i am developing a wordpress plugin where user has to filter the data from drop down Like user will pick a date range e.g; 4-sep-2017 to 5-sept-2017 so i will save it in a variable and want to call this variable in place of dateRangeType. Kindly suggest me how do i fix it in dynamic method. On Tuesday, September 12, 2017 at 1:55:23 PM UTC+5:30, Vincent Racaza (AdWords API Team) wrote: > > 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. 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/b676021a-60b9-4f01-862b-a99a8f31820b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
