Re: how to Retrive clicks and campaign budget ?

2013-12-27 Thread samg
I am having a similar issue. My screen has nothing on it and I am at a loss 
as to where to diagnose the issue... I have posted several questions in 
various forums here, but no answers to date. Someone please help!

On Monday, May 23, 2011 5:39:17 PM UTC-4, Eric Koleda wrote:

 Hi Kalpesh,

 To get the campaignStats fields populated you need to specify in the 
 selector the stats you wanted returned (Clicks, Ctr, etc) and specify a 
 date range.

 Best,
 - Eric Koleda, AdWords API Team


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 to Retrive clicks and campaign budget ?

2011-05-23 Thread Eric Koleda
Hi Kalpesh,

To get the campaignStats fields populated you need to specify in the 
selector the stats you wanted returned (Clicks, Ctr, etc) and specify a date 
range.

Best,
- Eric Koleda, AdWords API Team

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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


Re: how to Retrive clicks and campaign budget ?

2011-05-20 Thread Anash P. Oommen
Hi Kalpesh,

You can use Amount to get the budget amount, Clicks for clicks, Ctr 
for clickthrough rate and so on. See 
http://code.google.com/apis/adwords/docs/reference/latest/CampaignService.Campaign.html
 
for more details. In general, you can go through the documentation and see 
if a field is marked as Selectable. If yes, then the documentation 
mentions the column name to be used to retrieve that field. If it isn't 
marked as selectable, but the field is a complex type (e.g. Campaign.Budget, 
then follow the documentation link to see what is the selector field for 
Budget (e.g. 
http://code.google.com/apis/adwords/docs/reference/latest/CampaignService.Budget.html
 
lists that amount is selectable, and selector name is Amount).

Let me know if you have more questions.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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


Re: how to Retrive clicks and campaign budget ?

2011-05-20 Thread Kalpesh's Programer
I got budget value using following $campaign-budget-amount-
microAmount
instead of $campaign-campaignStats-budget
but all the values in campaignStats are empty Why it is so What I have
to do to get values in campaignStats



On May 20, 3:14 pm, Anash P. Oommen anash.p.oom...@google.com
wrote:
 Hi Kalpesh,

 You can use Amount to get the budget amount, Clicks for clicks, Ctr
 for clickthrough rate and so on. 
 Seehttp://code.google.com/apis/adwords/docs/reference/latest/CampaignSer...
 for more details. In general, you can go through the documentation and see
 if a field is marked as Selectable. If yes, then the documentation
 mentions the column name to be used to retrieve that field. If it isn't
 marked as selectable, but the field is a complex type (e.g. Campaign.Budget,
 then follow the documentation link to see what is the selector field for
 Budget 
 (e.g.http://code.google.com/apis/adwords/docs/reference/latest/CampaignSer...
 lists that amount is selectable, and selector name is Amount).

 Let me know if you have more questions.

 Cheers,
 Anash P. Oommen,
 AdWords API Advisor.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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


how to Retrive clicks and campaign budget ?

2011-05-18 Thread Kalpesh's Programer
hi I want to retrive 
the following details
1- campaign budget info
1a- ad spend in dollars
1b- clicks
1d- click through percentage
1e- average cpc

I am using following code for retriving clicks and campaign budget but not 
getting any values
what should I do to retrive these values 
?php
error_reporting(E_STRICT | E_ALL);

// You can set the include path to src directory or reference
// AdWordsUser.php directly via require_once.
// $path = '/path/to/aw_api_php_lib/src';
$path = dirname(__FILE__) . '/src';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);

require_once 'src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php';
require_once 'src/Google/Api/Ads/Common/Lib/SoapClientFactory.php';

try {
  // Get AdWordsUser from credentials in ../auth.ini
  // relative to the AdWordsUser.php file's directory.
  $user = new AdWordsUser();

  // Log SOAP XML request and response.
  $user-LogDefaults();

  // Get the CampaignService.
  $campaignService = $user-GetCampaignService('v201101');


  // Create selector.
  $selector = new Selector();
  $selector-fields = array('Id', 'Name','Status');
  $selector-ordering = array(new OrderBy('Name', 'ASCENDING'));
  $selector-dateRange = new DateRange();
  /
  /*Creating Date  
  /*/
/* @var $max date */
  $min = mktime(0,0,0,date(m),date(d)-1,date(Y));
  $selector-dateRange-min = date(Ymd, $min);
  $selector-dateRange-max = date(Ymd);

// Get all campaigns.
  $page = $campaignService-get($selector);

  // Display campaigns.
  if (isset($page-entries)) {
  echo 'table border=1 class=CampthAdWords Campaign 
Present/thtrtdName/tdtdID/tdtdCampaign 
Clicks/tdtdBudget/td/tr';
foreach ($page-entries as $campaign) {
   print 'trtd' . $campaign-name . '/tdtd'
  . $campaign-id . '/tdtd'. 
$campaign-campaignStats-clicks.'/tdtd'. 
$campaign-campaignStats-budget
   .'/tdtd'.$campaign-campaignStats-startDate.'/td
  
td'.$campaign-campaignStats-endDate.'/tdtd'.$campaign-status.'/td/tr';
}
echo '/tablebr';
  } else {
print No campaigns were found Please craete ads to get the details.\n;
  }

  
} catch (Exception $e) {
  print $e-getMessage();
}
?

I also retrived the feilds of Campaign Performance Report but not able to 
get the values stored in thos feilds
what should I do to get all these values.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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