Hello Ed,

Mobile criteria are not supported in the API at the moment.


-Danial, AdWords API Team.


On Tuesday, July 3, 2012 1:31:10 AM UTC+4, Ed- wrote:
>
> Hi,
>
> I am using the 201109 version of the API with PHP libs to download data. 
> An account manager just noticed we are missing 2 campaigns in a new client, 
> and it seems it has to do with the kind of placement it uses, for some 
> reason API is not listing the following placements:
>
>    - Google Play Android Apps
>    - iTunes App Store
>    
> The campaign_id's are: 84316712 and 84317912. Acc id: 7878239577
>
> *I need help understanding what prevents this 2 placements from showing 
> up on API report. *They show normally on web interface.
>
> Report definition states all placements should return on a criteria report 
> - 
> https://developers.google.com/adwords/api/docs/reference/v201109/ReportDefinitionService
> CRITERIA_PERFORMANCE_REPORTReports performance data for all published 
> criteria types including keywords, placements, topics, user-lists in a 
> single report.
>
>
>
>
> This is how I do the call:
>
> ///////////
> $path = dirname(__FILE__) . '/../lib/adwords/src';
> set_include_path(get_include_path() . PATH_SEPARATOR . $path);
>
> // AdWords
> require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php';
> require_once 'Google/Api/Ads/AdWords/Util/ReportUtils.php';
>
> /// selects for acc's, logins and looping in dates/////
>
> $user = new AdWordsUser(NULL, $email, $password, $developerToken, 
> $applicationToken,
> $userAgent, $iSeAccountId, $settingsIniPath, $authToken, $oauthInfo);
>
> $user->LogDefaults();
>
> $user->LoadService('ReportDefinitionService', 'v201109');
>
> $selector = new Selector();
> $selector->fields =
>   array('Date', 'Id', 'Criteria', 'CampaignId', 'CampaignName',
> 'AdGroupId', 'AdGroupName', 'Impressions', 'AveragePosition', 
> 'Clicks', 'Cost', 
> 'Conversions', 'ConversionsManyPerClick', 'CostPerConversionManyPerClick', 
> 'QualityScore', 'Status', 'AdGroupStatus', 'CampaignStatus');
>
> $reportDefinition = new ReportDefinition();
>
> $oDateRange = new DateRange(date('Ymd', $iDtIni), date('Ymd', $iDtIni)); 
> // 1 day only
> $reportDefinition->dateRangeType = 'CUSTOM_DATE';
> $selector->dateRange = $oDateRange;
>
> $reportDefinition->selector = $selector;
> $reportDefinition->reportName = 'KW performance report #' . time();
> $reportDefinition->reportType = 'CRITERIA_PERFORMANCE_REPORT';
> $reportDefinition->downloadFormat = 'GZIPPED_CSV';
> $reportDefinition->includeZeroImpressions = FALSE;
>
> $path = dirname(__FILE__) . '/' . $fileName;
> $options = array('version' => 'v201109', 'returnMoneyInMicros' => TRUE);
>
> // Download report.
> try {
> ReportUtils::DownloadReport($reportDefinition, $path, $user, $options);
> } catch (Exception $e) {
> echo 'Error downloading Adwords report: '; // Usually permission
> print $e->getMessage();
> continue;
> }
> //////////////////////
>
> Thank you,
> Ed
>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.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 [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

Reply via email to