Hi All,
I am stuck somewhere else right now.
AS you see in the code section
$reportDefinition->setDateRangeType(
ReportDefinitionDateRangeType:: LAST_7_DAYS);
I created a variable name $date which is having value LAST_7_DAYS
When i call it as mentioned below it will display an error
Code :
$reportDefinition->setDateRangeType(
ReportDefinitionDateRangeType:: $_GET['date']);
Error :
*Fatal error*: Uncaught Error: Access to undeclared static property:
Google\AdsApi\AdWords\Reporting\v201609\ReportDefinitionDateRangeType::$_GET
in
E:\server\htdocs\adwards\examples\AdWords\v201609\Reporting\CampaignsPerformancereport.php:81
Stack trace: #0
E:\server\htdocs\adwards\examples\AdWords\v201609\Reporting\CampaignsPerformancereport.php(230):
Google\AdsApi\Examples\AdWords\v201609\Reporting\ParallelReportDownload::runExample(Object(Google\AdsApi\AdWords\AdWordsServices),
Object(Google\AdsApi\AdWords\AdWordsSessionBuilder),
'C:\\Users\\Tech\\A...') #1
E:\server\htdocs\adwards\examples\AdWords\v201609\Reporting\CampaignsPerformancereport.php(234):
Google\AdsApi\Examples\AdWords\v201609\Reporting\ParallelReportDownload::main()
#2 {main} thrown in
*E:\server\htdocs\adwards\examples\AdWords\v201609\Reporting\CampaignsPerformancereport.php*
on
line *81*
Kindly help me to FIX.
Also with that i also want to filter report via
Geo (location)
Device
Help me out with this also.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/91760a39-ead1-4941-984a-01eec44329ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.