Hi Basker,

I'd still need the customer ID and a specific campaign for which you are 
seeing partial data. Could you please use the "Reply to Author" option to 
provide details?

Cheers,
Anash

On Wednesday, April 15, 2015 at 3:39:22 AM UTC-4, basker reddy wrote:
>
>
> Hi,
>
> i am using below function 
>
> function DownloadDestinationUrlReport(AdWordsUser $user, $filePath) {
>       // Load the service, so that the required classes are available.
>       $user->LoadService('ReportDefinitionService', 'v201502');
>       // Create selector.
>       $selector = new Selector();
> #        $selector->fields = array('AccountCurrencyCode', 
> 'AccountDescriptiveName', 'AccountTimeZoneId', 'AdGroupId', 'AdGroupName', 
> 'AdGroupStatus', 'AdNetworkType1', 'AdNetworkType2', 'AverageCpc', 
> 'AverageCpm', 'AveragePosition', 'CampaignId', 'CampaignName', 
> 'CampaignStatus', 'Clicks', 'ClickType', 'ConversionCategoryName', 
> 'ConversionRate', 'ConversionRateManyPerClick', 'Conversions', 
> 'ConversionsManyPerClick', 'ConversionTrackerId', 'ConversionTypeName', 
> 'ConversionValue', 'Cost', 'CostPerConversion', 
> 'CostPerConversionManyPerClick', 'CriteriaDestinationUrl', 
> 'CriteriaParameters', 'CriteriaStatus', 'CriteriaTypeName', 'Ctr', 
> 'CustomerDescriptiveName', 'Date', 'DayOfWeek', 'Device', 
> 'EffectiveDestinationUrl', 'ExternalCustomerId', 'Impressions', 
> 'IsNegative', 'Month', 'MonthOfYear', 'PrimaryCompanyName', 
> 'PrimaryUserLogin', 'Quarter', 'Slot', 'TotalConvValue', 'ValuePerConv', 
> 'ValuePerConversion', 'ValuePerConversionManyPerClick', 
> 'ValuePerConvManyPerClick', 'ViewThroughConversions', 'Week', 'Year');
>
> #    $selector->fields = array('EffectiveDestinationUrl', 'Impressions', 
> 'Clicks', 'Cost', 'Conversions','Date','AdNetworkType1');
>     $selector->fields = array('CreativeDestinationUrl', 'Impressions', 
> 'Clicks', 'Cost', 'ConvertedClicks','Date','AdNetworkType1');
>     $sql = "select date_format(date_sub(now(),interval 1 day),'%Y%m%d') as 
> date";
>         $result = mysql_query($sql);
>     $row = mysql_fetch_assoc($result);
>     $startdate = $row['date'];
>     $enddate = $row['date'];
>     $startdate = '20150301';
>     $enddate = '20150331';
>     $selector->dateRange=array('min'=>"$startdate",'max'=>"$enddate");
>
>       // Create report definition.
>       $reportDefinition = new ReportDefinition();
>       $reportDefinition->selector = $selector;
>   #    $reportDefinition->reportName = 'Destination URL report #' . 
> uniqid();
>     $reportDefinition->reportName = 'Ad performance  report #' . uniqid();
>     $reportDefinition->dateRangeType = 'CUSTOM_DATE';
> #    $reportDefinition->reportType = 'DESTINATION_URL_REPORT';
>       $reportDefinition->reportType = 'AD_PERFORMANCE_REPORT';
>       $reportDefinition->downloadFormat = 'CSV';
>
>       // Exclude criteria that haven't recieved any impressions over the 
> date range.
>       $reportDefinition->includeZeroImpressions = FALSE;
>
>       // Set additional options.
> //      $options = array('version' => 'v201502', 'returnMoneyInMicros' => 
> false);
>     $options = array('version' => 'v201502');
>
>       // Download report.
>       ReportUtils::DownloadReport($reportDefinition, $filePath, $user, 
> $options);
>     return $filePath;
> }
>
> i am just changing the date range as 
> from 
>     $startdate = '20150301';
>     $enddate = '20150301';  
>
> to 
>
> $startdate = '20150301';
>     $enddate = '20150331';
>
> please help on this 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b2876505-75d7-46ca-bb1a-2b2764794df6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to