Re: How do I set custom date range when downloading reports using adwords API PHP client library.

2017-02-27 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi,

You can use the date range of ALL_TIME to request all available dates.

https://developers.google.com/adwords/api/docs/guides/reporting#date_ranges

Thanks,
Josh, AdWords API Team

On Sunday, February 26, 2017 at 11:40:07 PM UTC-5, SUBIN P VASU wrote:
>
> What is the maximum possible date range? ie. Can I download the last five 
> years reports using API? 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4fc5539c-9834-4e43-8bbd-eded275425a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I set custom date range when downloading reports using adwords API PHP client library.

2017-02-26 Thread SUBIN P VASU
What is the maximum possible date range? ie. Can I download the last five 
years reports using API? 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/344753aa-ea79-4898-8193-c8cfbf9317b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I set custom date range when downloading reports using adwords API PHP client library.

2017-02-26 Thread SUBIN P VASU
What is the maximum possible date range? ie. Can I download the last five 
years reprts uing API? 

On Tuesday, 3 December 2013 12:24:52 UTC+5:30, jaison@gmail.com wrote:
>
> Thanks Josh. Setting the dateRange solved the issue.
>
> On Monday, December 2, 2013 12:00:10 PM UTC-8, Josh Radcliff (AdWords API 
> Team) wrote:
>>
>> Hi,
>>
>> You can achieve this by setting the dateRange attribute of your selector 
>> to a DateRange with the desired min and max dates.
>>
>> Cheers,
>> Josh, AdWords API Team
>>
>> On Friday, November 29, 2013 8:37:07 AM UTC-5, jaison@gmail.com 
>> wrote:
>>>
>>> I am using adwords PHP client library for my application. I want to to 
>>> download reports for a custom date range and do not know the right 
>>> parameters used to set the dates.
>>>
>>> Following is the code I'm currently using:
>>>
>>>
>>> $reportFileName = DS . 'AdPerformanceReport_dated.csv';
>>> $reportType = 'AD_PERFORMANCE_REPORT';
>>> $filePath = dirname(__FILE__) . $reportFileName;
>>> $user = new AdWordsUser();
>>>
>>> $user->LogAll();
>>> $user->SetClientCustomerId($adwordClientId);
>>> $user->LoadService('ReportDefinitionService', ADWORDS_VERSION);
>>>
>>> $selector = new Selector();
>>> $selector->fields = $reportFields[$reportType];
>>>
>>> // Create report definition.
>>> $reportDefinition  = new 
>>> ReportDefinition();
>>> $reportDefinition->selector= $selector;
>>> $reportDefinition->reportName   = 'Ad performance 
>>> report';
>>> $reportDefinition->dateRangeType = 'CUSTOM_DATE';
>>> $reportDefinition->reportType= $reportType;
>>> $reportDefinition->downloadFormat   = 'CSV';
>>> $reportDefinition->includeZeroImpressions = FALSE;
>>>
>>> $options = array('version' => ADWORDS_VERSION);
>>>
>>> // Download report.
>>> ReportUtils::DownloadReport($reportDefinition, $filePath, $user, 
>>> $options);
>>>
>>>
>>> I hope someone can tell me what are the right parameters to set dates.
>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/43e1e29b-27d2-47a7-816e-26ac7874d6bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I set custom date range when downloading reports using adwords API PHP client library.

2013-12-02 Thread jaison . directi
Thanks Josh. Setting the dateRange solved the issue.

On Monday, December 2, 2013 12:00:10 PM UTC-8, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi,
>
> You can achieve this by setting the dateRange attribute of your selector 
> to a DateRange with the desired min and max dates.
>
> Cheers,
> Josh, AdWords API Team
>
> On Friday, November 29, 2013 8:37:07 AM UTC-5, jaison@gmail.com wrote:
>>
>> I am using adwords PHP client library for my application. I want to to 
>> download reports for a custom date range and do not know the right 
>> parameters used to set the dates.
>>
>> Following is the code I'm currently using:
>>
>>
>> $reportFileName = DS . 'AdPerformanceReport_dated.csv';
>> $reportType = 'AD_PERFORMANCE_REPORT';
>> $filePath = dirname(__FILE__) . $reportFileName;
>> $user = new AdWordsUser();
>>
>> $user->LogAll();
>> $user->SetClientCustomerId($adwordClientId);
>> $user->LoadService('ReportDefinitionService', ADWORDS_VERSION);
>>
>> $selector = new Selector();
>> $selector->fields = $reportFields[$reportType];
>>
>> // Create report definition.
>> $reportDefinition  = new 
>> ReportDefinition();
>> $reportDefinition->selector= $selector;
>> $reportDefinition->reportName   = 'Ad performance report';
>> $reportDefinition->dateRangeType = 'CUSTOM_DATE';
>> $reportDefinition->reportType= $reportType;
>> $reportDefinition->downloadFormat   = 'CSV';
>> $reportDefinition->includeZeroImpressions = FALSE;
>>
>> $options = array('version' => ADWORDS_VERSION);
>>
>> // Download report.
>> ReportUtils::DownloadReport($reportDefinition, $filePath, $user, 
>> $options);
>>
>>
>> I hope someone can tell me what are the right parameters to set dates.
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How do I set custom date range when downloading reports using adwords API PHP client library.

2013-12-02 Thread Josh Radcliff (AdWords API Team)
Hi,

You can achieve this by setting the dateRange attribute of your selector to 
a DateRange with the desired min and max dates.

Cheers,
Josh, AdWords API Team

On Friday, November 29, 2013 8:37:07 AM UTC-5, jaison@gmail.com wrote:
>
> I am using adwords PHP client library for my application. I want to to 
> download reports for a custom date range and do not know the right 
> parameters used to set the dates.
>
> Following is the code I'm currently using:
>
>
> $reportFileName = DS . 'AdPerformanceReport_dated.csv';
> $reportType = 'AD_PERFORMANCE_REPORT';
> $filePath = dirname(__FILE__) . $reportFileName;
> $user = new AdWordsUser();
>
> $user->LogAll();
> $user->SetClientCustomerId($adwordClientId);
> $user->LoadService('ReportDefinitionService', ADWORDS_VERSION);
>
> $selector = new Selector();
> $selector->fields = $reportFields[$reportType];
>
> // Create report definition.
> $reportDefinition  = new 
> ReportDefinition();
> $reportDefinition->selector= $selector;
> $reportDefinition->reportName   = 'Ad performance report';
> $reportDefinition->dateRangeType = 'CUSTOM_DATE';
> $reportDefinition->reportType= $reportType;
> $reportDefinition->downloadFormat   = 'CSV';
> $reportDefinition->includeZeroImpressions = FALSE;
>
> $options = array('version' => ADWORDS_VERSION);
>
> // Download report.
> ReportUtils::DownloadReport($reportDefinition, $filePath, $user, $options);
>
>
> I hope someone can tell me what are the right parameters to set dates.
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
For more options, visit https://groups.google.com/groups/opt_out.


How do I set custom date range when downloading reports using adwords API PHP client library.

2013-11-29 Thread jaison . directi
I am using adwords PHP client library for my application. I want to to 
download reports for a custom date range and do not know the right 
parameters used to set the dates.

Following is the code I'm currently using:


$reportFileName = DS . 'AdPerformanceReport_dated.csv';
$reportType = 'AD_PERFORMANCE_REPORT';
$filePath = dirname(__FILE__) . $reportFileName;
$user = new AdWordsUser();

$user->LogAll();
$user->SetClientCustomerId($adwordClientId);
$user->LoadService('ReportDefinitionService', ADWORDS_VERSION);

$selector = new Selector();
$selector->fields = $reportFields[$reportType];

// Create report definition.
$reportDefinition  = new 
ReportDefinition();
$reportDefinition->selector= $selector;
$reportDefinition->reportName   = 'Ad performance report';
$reportDefinition->dateRangeType = 'CUSTOM_DATE';
$reportDefinition->reportType= $reportType;
$reportDefinition->downloadFormat   = 'CSV';
$reportDefinition->includeZeroImpressions = FALSE;

$options = array('version' => ADWORDS_VERSION);

// Download report.
ReportUtils::DownloadReport($reportDefinition, $filePath, $user, $options);


I hope someone can tell me what are the right parameters to set dates.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
For more options, visit https://groups.google.com/groups/opt_out.