Re: Campaign Performance Report blank

2016-08-10 Thread 'Joyce Lava' via AdWords API Forum
Hi Perdana,

Could you please confirm if you set *includeZeroImpressions* to true? This 
will include zero impression rows in the report generated. If you set it as 
true and the issue persists, could you please *reply privately to author* 
the clientCustomerId, the sample report generated, and the SOAP request and 
response while using GetCampaign.php example code?

Thanks,
Joyce, 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 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/df70b3b1-8f15-4a8c-9c4d-ad756dfbb270%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Campaign Performance Report blank

2016-08-10 Thread perdana adhitama
Hi All,

I am using Adwords API to get campaign performance report but there was no 
data to return. Here is my code 

define('CLIENT_ID', 'MY_CLIENT_ID');
define('CLIENT_SECRET', 'MY_CLIENT_SECRET');

define('REFRESH_TOKEN', 'MY_REFRESH_TOKEN');
define('DEVELOPER_TOKEN', 'MY_DEVELOPER_TOKEN');
define('USER_AGENT', 'MY_COMPANY');

$oauth2Info = array(
'client_id' => CLIENT_ID,
'client_secret' => CLIENT_SECRET,
'refresh_token' => REFRESH_TOKEN
  );

$user = new AdWordsUser(null, DEVELOPER_TOKEN, USER_AGENT, null, null,
$oauth2Info);
$user->SetClientCustomerId('MY_ID');//this is my sub client-customer id
// Log every SOAP XML request and response.
$user->LogAll();

$user->LoadService('ReportDefinitionService', ADWORDS_VERSION);
$selector = new Selector();
  $selector->fields = array('AccountCurrencyCode', 'AccountDescriptiveName', 
'AccountTimeZoneId', 'ActiveViewCpm',
  'ActiveViewCtr', 'ActiveViewImpressions', 'ActiveViewMeasurability', 
'ActiveViewMeasurableCost');

$reportDefinition = new ReportDefinition();
$reportDefinition->selector = $selector;
$reportDefinition->reportName = 'Criteria performance report #' . uniqid();
$reportDefinition->dateRangeType = 'LAST_7_DAYS';
$reportDefinition->reportType = 'CAMPAIGN_PERFORMANCE_REPORT';
$reportDefinition->downloadFormat = 'CSV';

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

$reportUtils = new ReportUtils();
$reportUtils->DownloadReport($reportDefinition, "report.csv", $user, 
$options);

However when I tried to use get campaign as shows in GetCampaign.php it 
works. I also tried to change different client customer id between parent 
and sub bot none works. 

Thank You

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/42d481b6-54c6-4c34-af91-335cc7b5e0f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.