Re: search campaigns are coming in display network in adgroup performance report

2013-12-27 Thread Danial Klimkin
Hello Pravesh,


I think I understand the issue now. This is the performance report and 
AdNetworkTypeX is a segmentation column, not an attribute. It causes an 
extra row for each possible network value, but for search campaigns all 
starts for display network rows will be 0. You can avoid this by 
disabling includeZeroImpressions option but then you will only retrieve 
the campaigns that had impressions for the given time period.


-Danial, AdWords API Team.


On Thursday, December 26, 2013 2:07:33 PM UTC+4, Pravesh wrote:

  Thanks for writing in Danial, 

  

 below are the details what you asking for?

 *Omega Learning Center(MCC) Client ID* : 208-766-2334 

 *Omega Learning Center Acworth* : 726-512-7657

 *Campaign ID* :152768659

 *Ad GroupID* : 9285438499

  

  

 Please look into the issue and let us help to fix, we are running in very 
 thin timeline. 

  

 Thanks 

 Pravesh

  
  
 *From:* adwor...@googlegroups.com javascript: [mailto:
 adwor...@googlegroups.com javascript:] *On Behalf Of *Danial Klimkin
 *Sent:* Thursday, December 26, 2013 1:56 PM
 *To:* adwor...@googlegroups.com javascript:
 *Cc:* bantipra...@gmail.com javascript:
 *Subject:* Re: search campaigns are coming in display network in adgroup 
 performance report
  
  
  
 Hello Pravesh,
  
  
  
  
  
 What are the clientCustomerId and campaign ID in question?
  
  
  
  
  
 -Danial, AdWords API Team.
  


 On Tuesday, December 24, 2013 7:29:08 PM UTC+4, Pravesh wrote:
  
 We are running a search campaign named  .But when we download Adgroup 
 Performance report in xml file format, the Search campaign is showing 
 Display Network in both the Network and networkwithsearchPartners.
  
  
  
 Below is the code snippet of what we are using..
  
  
  
  
   
   com.google.api.adwords.v201306.jaxb.cm.Selector selector  reportFile = 
 adwordFolder+/AdGroupPerformanceReport_+clientID+.xml;
  
  
  
 
  
  // Create selector.
  
 selector = new 
 com.google.api.adwords.v201306.jaxb.cm.Selector();
  
 fields = selector.getFields();
  
 fields.add(AccountCurrencyCode);
  
 
 fields.add(AccountDescriptiveName);
  
 fields.add(AdGroupId);
  
 fields.add(AdGroupName);
  
 fields.add(AdGroupStatus);
  
 fields.add(AdNetworkType1);
  
 fields.add(AdNetworkType2);
  
 fields.add(AveragePosition);
  
 fields.add(AverageCpc);
  
 fields.add(AverageCpm);
  
 fields.add(CampaignId);
  
 fields.add(CampaignName);
  
 fields.add(CampaignStatus);
  
 fields.add(Clicks);
  
 fields.add(ClickType);
  
 fields.add(Ctr);
  
 fields.add(TotalConvValue);
  
 fields.add(ConversionRate);
  
 fields.add(Conversions);
  
 fields.add(Cost);
  
 fields.add(CostPerConversion);
  
 fields.add(Date);
  
 fields.add(Id);
  
 fields.add(Impressions);
  
 fields.add(Name);
  
 fields.add(TotalConvValue);
  
 fields.add(Impressions);
  
 fields.add(Week);
  
 fields.add(Year);
  
 fields.add(Impressions);
  
 fields.add(Status);
  
 
 fields.add(ConversionsManyPerClick);
  
  
  
  
  
 reportDefinition = new ReportDefinition();
  
  // Create report definition.
  
 reportDefinition = new 
 ReportDefinition();
  
 
 reportDefinition.setReportName(AdGROUP_PERFORMANCE_REPORT # + 
 System.currentTimeMillis());
  
 
 reportDefinition.setDateRangeType(ReportDefinitionDateRangeType.ALL_TIME);
  
 
 

Re: Template Ads Preview

2013-12-27 Thread Danial Klimkin
Hello Bora,


UI linking is not documented externally and can change at any time. 
Unfortunately I can't provide any guidance on generating them.


-Danial, AdWords API Team.


On Friday, December 27, 2013 1:56:46 AM UTC+4, Bora Mocan wrote:

 Hello Again Danial;

 Is there a way to generate to preview link using AdWords API. We are 
 having problems to get the following parameters.

 isExpandable=?
 irskey=?
 s=?
 sig=?

 There is a example link:

 https://adwords.google.com/da/b/dabAdPreview?templateId=375outputFormat=HTML5width=300height=250visibleUrl=www.fbestetik.comdestinationUrl=http://www.fbestetik.comisExpandable=falseirsKey=-6815749697676771328hl=tr_TRad=31562874196adGroup=8493013156ocid=4327336524s=76sig=ACiVB_xq5-nlj1evvW9L_3gsp1ThSLCD7Q

 25 Aralık 2013 Çarşamba 14:35:27 UTC+2 tarihinde Danial Klimkin yazdı:

 Hello Bora,


 The AdWords API does not support this feature currently.


 -Danial, AdWords API Team.


 On Friday, December 20, 2013 5:50:31 PM UTC+4, Bora Mocan wrote:

 Hi,

 How can i get to preview urls of template ads with AdWords API?



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: does adwords api support new keyword/adgroup bid landscape?

2013-12-27 Thread Danial Klimkin
Hello Liushine,


No, we don't support this feature in the API currently.


-Danial, AdWords API Team.


On Thursday, December 19, 2013 12:46:01 PM UTC+4, lius...@gmail.com wrote:

 Hi,

 I am wondering if AdWords has some API supporting new keyword / new 
 adgroup bid landscape? I noticed that DataService.getAdGroupBidLandscape 
 and DataService.getCriterionBidLandscape only supports getting bidlandscape 
 for existing keywords/adgroups by their ids, rather than new keywords or 
 new adgroups. 

 Thanks,
 Liushine


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


Data Mismatch Between GEO_PERFORMANCE_REPORT and CLICK_PERFORMANCE_REPORT

2013-12-27 Thread Hazar Hayat
I am using GoogleClickID from CLICK_PERFORMANCE_REPORT to get my user 
locations against the revenue.

I am using GEO_PERFORMANCE_REPORT to get clicks and cost data on user 
locations.

I am using the following query to join both the reports.

select 
 
a.ClientID,a.CampaignID,a.AdGroupID,a.Country,a.Metro,a.Region,a.City,b.Country,b.Metro,b.Region,b.City
 
from GEO_PERFORMANCE_REPORT a
join CLICK_PERFORMANCE_REPORT b on a.ClientID=b.ClientID and 
a.CampaignID=b.CampaignID and a.AdGroupID=b.AdGroupID
and a.Country=b.Country and a.Metro=b.Metro and a.Region=b.Region and 
a.City=b.City
where Clicks0

After reviewing the results i see that some clicks data from 
GEO_PERFORMANCE_REPORT is missing in the CLICK_PERFORMANCE_REPORT.

For example for ClientId=xxx and CampaignId=yyy and AdgroupId=zzz we have 
the following data in the GEO_PERFORMANCE_REPORT

 
  
Day
 
ClientId
 
CampaignId
 
AdgroupId
 
Country
 
Metro
 
Region
 
City
 
Clicks
  
12/10/2013 0:00
 
xxx
 
yyy
 
zzz
 
United States
 
 Arizona
 
Tucson
 
1
  
 

And for the same ad group we have the following data in the 
CLICK_PERFORMANCE_REPORT.


  Day
 
ClientId
 
CampaignId
 
AdgroupId
 
Country
 
Metro
 
Region
 
City
  
12/10/2013 0:00
 
xxx
 
yyy
 
zzz
 
United States
 
 Minnesota
 
Unspecified

Is there any reason why all clicks data is not present in the 
CLICK_PERFORMANCE_REPORT or there is any mismatch in the location data of 
the both the reports.

Thanks
Regards

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 to add custom field into an Adword Entity (ad)?

2013-12-27 Thread Joan Roig
Is there any way to add a custom field into an Ad entity?

Say I want to be able to add an 'external_id' to an Ad entity. Is that 
possible at all? I haven't been able to find that in the API docs.

Thanks

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


GetCampaignStats.php returns nothing / blank screen

2013-12-27 Thread samg
Hello, I have been completely unable to use the api to access reporting 
stats. I am still relatively new to programming and solving this has become 
incredibly frustrating. I have been at this for quite some time and am 
hoping someone from Google or this forum can PLEASE help me out. I am 
trying to simple retrieve campaign stats for our MCC account to insert into 
a MySQL database. I am using an example, but have yet to successfully make 
this work. I hope this is a simple mistake I am doing that is a fast 
resolution. When I run the code below, it returns NOTHING, a blank 
screen...? Somebody please help me! 

?php 

require_once 'Api/Ads/AdWords/Lib/AdWordsUser.php';
require_once 'Api/Ads/AdWords/Util/ReportUtils.php';
 function GetCampaignStatsExample(AdWordsUser $user) {
// Get the service, which loads the required classes.
$campaignService = $user-GetService('CampaignService', ADWORDS_VERSION);

// Create selector.
$selector = new Selector();
$selector-fields = array('Id', 'Name', 'Impressions', 'Clicks', 'Cost', 
'Ctr');
$selector-predicates[] = new Predicate('Impressions', 'GREATER_THAN', 
array(0));

// Set date range to request stats for.
$dateRange = new DateRange();
$dateRange-min = date('Ymd', strtotime('-1 week'));
$dateRange-max = date('Ymd', strtotime('-1 day'));
$selector-dateRange = $dateRange;

// Create paging controls.
$selector-paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE);

do {
// Make the get request.
$page = $campaignService-get($selector);

// Display results.
if (isset($page-entries)) {
foreach ($page-entries as $campaign) {
printf(Campaign with name '%s' and id '%s' had the following stats  . 
during the last week:\n, $campaign-name, $campaign-id);
printf(  Impressions: %d\n, $campaign-campaignStats-impressions);
printf(  Clicks: %d\n, $campaign-campaignStats-clicks);
printf(  Cost: $%.2f\n, $campaign-campaignStats-cost-microAmount / 
AdWordsConstants::MICROS_PER_DOLLAR);
printf(  CTR: %.2f%%\n, $campaign-campaignStats-ctr * 100);
}
} 
else {
print No matching campaigns were found.\n;
}

// Advance the paging index.
$selector-paging-startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE;
} 
while ($page-totalNumEntries  $selector-paging-startIndex);
}

// Don't run the example if the file is being included.
if (__FILE__ != realpath($_SERVER['PHP_SELF'])) {
return;
}

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

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

// Run the example.
GetCampaignStatsExample($user);
} 
catch (OAuth2Exception $e) {
ExampleUtils::CheckForOAuth2Errors($e);
} 
catch (ValidationException $e) {
ExampleUtils::CheckForOAuth2Errors($e);
} 
catch (Exception $e) {
printf(An error has occurred: %s\n, $e-getMessage());
}

?

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

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 copy an Adgroup to create a new one?

2013-12-27 Thread Joan Roig
Alright!

Thanks ;)

On Tuesday, December 24, 2013 11:38:17 PM UTC-8, Takeshi Hagikura (AdWords 
API Team) wrote:

 Hi Joan,

 It's the right approach. 
 I'd fetch the existing adgroup and create a new one, copy the fields from 
 the existing one. 

 Best,
 - Takeshi, AdWords API Team

 On Saturday, December 21, 2013 7:18:13 AM UTC+9, Joan Roig wrote:


 I am trying to find out a way to create an AdGroup from an existing 
 AdGroup. 

 I don't want to copy all the Ads within the AdGroup, but to copy all the 
 settings (and keywords) from within that AdGroup.  I am currently using the 
 Ruby library, and trying to find out how to do so easily (Right now I fetch 
 an AdGroup and go within all its fields and create a new AdGroup with 
 those).

 Any ideas on how to do this easily?



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: Get info about all Clients without foreah

2013-12-27 Thread Danial Klimkin
Hello Sergey,


API supports access only to one account per request, so to retrieve data 
for all accounts under an MCC you need to do one request per account and 
merge the data.


-Danial, AdWords API Team.


On Tuesday, December 24, 2013 1:22:44 PM UTC+4, Sergey Levitskiy wrote:


 Hello!
 I have a task - to get all campaigns from MCC where 7 days after the start 
 were spend less than 25 USD. How can I write query to not use Client_id of 
 each of them (without foreach)?
 Thanks in advance.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: kind of data from google adwords api

2013-12-27 Thread Danial Klimkin
Hello Kano,


The majority of the data is available via reports in the API. You can 
review available reports and fields here:

  https://developers.google.com/adwords/api/docs/appendix/reports


-Danial, AdWords API Team.


On Tuesday, December 24, 2013 11:15:14 AM UTC+4, Kano Patel wrote:

 what kind of data i get from google adwords api related to my website 


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: GetCampaignStats.php returns nothing / blank screen

2013-12-27 Thread Evgeniy Bogdanov
Hi.

Seems that there is some fatal error happens during execution.

Try to insert next strings:

 error_reporting(E_ALL);
 ini_set(display_errors, 1);
 ini_set(display_startup_errors, 1);

after ?php

and execute script again, please. Desired action - PHP should show you why
it fails.


2013/12/26 s...@keaadvertising.com

 Hello, I have been completely unable to use the api to access reporting
 stats. I am still relatively new to programming and solving this has become
 incredibly frustrating. I have been at this for quite some time and am
 hoping someone from Google or this forum can PLEASE help me out. I am
 trying to simple retrieve campaign stats for our MCC account to insert into
 a MySQL database. I am using an example, but have yet to successfully make
 this work. I hope this is a simple mistake I am doing that is a fast
 resolution. When I run the code below, it returns NOTHING, a blank
 screen...? Somebody please help me!

 ?php

 require_once 'Api/Ads/AdWords/Lib/AdWordsUser.php';
 require_once 'Api/Ads/AdWords/Util/ReportUtils.php';
  function GetCampaignStatsExample(AdWordsUser $user) {
 // Get the service, which loads the required classes.
  $campaignService = $user-GetService('CampaignService', ADWORDS_VERSION);

 // Create selector.
  $selector = new Selector();
 $selector-fields = array('Id', 'Name', 'Impressions', 'Clicks', 'Cost',
 'Ctr');
  $selector-predicates[] = new Predicate('Impressions', 'GREATER_THAN',
 array(0));

 // Set date range to request stats for.
  $dateRange = new DateRange();
 $dateRange-min = date('Ymd', strtotime('-1 week'));
 $dateRange-max = date('Ymd', strtotime('-1 day'));
  $selector-dateRange = $dateRange;

 // Create paging controls.
 $selector-paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE);

 do {
 // Make the get request.
 $page = $campaignService-get($selector);

 // Display results.
 if (isset($page-entries)) {
 foreach ($page-entries as $campaign) {
  printf(Campaign with name '%s' and id '%s' had the following stats  .
 during the last week:\n, $campaign-name, $campaign-id);
  printf(  Impressions: %d\n, $campaign-campaignStats-impressions);
 printf(  Clicks: %d\n, $campaign-campaignStats-clicks);
  printf(  Cost: $%.2f\n, $campaign-campaignStats-cost-microAmount /
 AdWordsConstants::MICROS_PER_DOLLAR);
 printf(  CTR: %.2f%%\n, $campaign-campaignStats-ctr * 100);
  }
 }
 else {
 print No matching campaigns were found.\n;
  }

 // Advance the paging index.
 $selector-paging-startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE;
  }
 while ($page-totalNumEntries  $selector-paging-startIndex);
 }

 // Don't run the example if the file is being included.
 if (__FILE__ != realpath($_SERVER['PHP_SELF'])) {
  return;
 }

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

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

 // Run the example.
 GetCampaignStatsExample($user);
  }
 catch (OAuth2Exception $e) {
 ExampleUtils::CheckForOAuth2Errors($e);
  }
 catch (ValidationException $e) {
 ExampleUtils::CheckForOAuth2Errors($e);
  }
 catch (Exception $e) {
 printf(An error has occurred: %s\n, $e-getMessage());
  }

 ?

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


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

Re: Intermittent connectivity issues with API reports server (v201309)?

2013-12-27 Thread AdWordsApiUser
Thanks Danial. This is becoming an issue for hundreds of agencies that rely 
on our tools for their day-to-day work, and that is why it is very high 
priority for us. 


On Friday, December 27, 2013 1:28:27 PM UTC+5:30, Danial Klimkin wrote:

 Hi MG,


 I'll check with our DotNet library author who may have a better insight.


 -Danial, AdWords API Team.


 On Friday, December 27, 2013 9:15:02 AM UTC+4, AdWordsApiUser wrote:

 I made the change to remove the Continue-100 header from the soap 
 requests, however, the issue persists. It is only getting worse day by day, 
 in the sense the percentage of requests that are failing due to this is 
 increasing. We changed our server IP, even moved servers, and nothing seems 
 to have helped.

 On Friday, December 27, 2013 9:22:53 AM UTC+5:30, AdWordsApiUser wrote:

 So I found this post by Jeff from the API team that describes a 
 potential solution to this issue, however that post is about 5 years old. 
 Could some help clarify it is still relevant?

 https://groups.google.com/d/msg/adwords-api/G-LsplilLiY/r9ZKYq8r29EJ

 Thanks!
 Manas

 On Thursday, December 26, 2013 8:38:44 PM UTC+5:30, AdWordsApiUser wrote:

 Hi Danial,

 So after some investigation, here is the exception that we see (we're 
 using .NET API). Any ideas why this would be happening?

 System.Net.WebException: The underlying connection was closed: An 
 unexpected error occurred on a send. --- System.IO.IOException: *Unable 
 to read data from the transport connection: An existing connection was 
 forcibly closed by the remote host. --- 
 System.Net.Sockets.SocketException: An existing connection was forcibly 
 closed by the remote host*
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 
 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 
 offset, Int32 size)
at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 
 offset, Int32 count)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, 
 AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 
 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean 
 receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at 
 System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult 
 lazyResult)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext 
 executionContext, ContextCallback callback, Object state, Boolean 
 preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext 
 executionContext, ContextCallback callback, Object state, Boolean 
 preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext 
 executionContext, ContextCallback callback, Object state)
at System.Net.TlsStream.ProcessAuthentication
 ...
at *ReportUtils.ReportUtilities.DownloadReportToStream*()

 This is affecting our users. Will appreciate help!

 Manas

 On Thursday, December 19, 2013 3:44:56 PM UTC+5:30, Klimkin wrote:

 Hi MG,


 From our side, we haven't caught any alerts. Most likely it was 
 limited to your ISP / network as we had no other reports of the issue.


 -Danial, AdWords API Team.


 On Tuesday, December 17, 2013 9:50:02 AM UTC+4, AdWordsApiUser wrote:

 We've been noticing intermittent connectivity issues to API reports 
 servers v201309 for the last 24 hours or so. We can't reach the server 
 for 
 a few minutes, and then it is back up. Seems to happen from all our 
 locations at the same time (US + Asia), and every few hours. Anyone else 
 seen this or any known issues going on right now?

 Thanks!
 MG



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 to add Keywords to AdGroup when creating one?

2013-12-27 Thread Joan Roig

When an Adgroup is created, is it possible to add keywords in the same 
call? Or this needs to be done afterwards?

If so, which fields should I fill when creating the Adgroup?

Thanks

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