Re: How to get Adgroup CPC,cost,CTR ,impressions etc ...using google adword api

2015-01-08 Thread Kiran Kumar
 

 Is there any method available to call ads statistics like  CPC, cost, CTR, 
impressions, etc,I don't want to download the reports rather I want to 
display these values in the website .

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/770b2e6b-bd87-44e6-8a4a-47262986a119%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get Adgroup CPC,cost,CTR ,impressions etc ...using google adword api

2015-01-08 Thread Stacie Waleyko
Hello,

AdGroupAdService.get only returns ads (or, in your case TextAds). If you 
look at the TextAd API 
https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupAdService.TextAd
 
you will notice that CPC, cost, CTR, impressions, etc. are not available. 
To get these performance values I recommend downloading an ad performance 
report https://developers.google.com/adwords/api/docs/appendix/reports#ad.

Stacie

On Thursday, January 8, 2015 at 5:44:32 AM UTC-8, Kiran Kumar wrote:



 Hi , 

 I am trying to get the CPC,cost,CTR ,impressions using GetTextAds ,but 
 it's only giving like adtext ,headline and urls but not the others 

 How do I retrieve this values using API ?

 Thank you ?


 Code:


 function GetTextAdsExample(AdWordsUser $user, $adGroupId) {
 // Get the service, which loads the required classes.
 $adGroupAdService = $user-GetService('AdGroupAdService', ADWORDS_VERSION);

   // Create selector.
   $selector = new Selector();
   $selector-fields = array('Headline', 'Id');
   $selector-ordering[] = new OrderBy('Headline', 'ASCENDING');

   // Create predicates.
   $selector-predicates[] = new Predicate('AdGroupId', 'IN', 
 array($adGroupId));
   $selector-predicates[] = new Predicate('AdType', 'IN', 
 array('TEXT_AD'));
   // By default disabled ads aren't returned by the selector. To return 
 them
   // include the DISABLED status in a predicate.
   $selector-predicates[] =
   new Predicate('Status', 'IN', array('ENABLED', 'PAUSED', 'DISABLED'));

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

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

 // Display results.
 if (isset($page-entries)) {
   foreach ($page-entries as $adGroupAd) {
   global $retval;
   $head=$adGroupAd-ad-headline;
   $adid=$adGroupAd-ad-id;
   $des1=$adGroupAd-ad-description1;
   $des2=$adGroupAd-ad-description2;
   $url=$adGroupAd-ad-displayUrl;
   $clicks=$adGroupAd-stats-clicks;
   $cpc=$adGroupAd-stats-averageCpc-microAmount / 100;
   $conversions=$adGroupAd-stats-conversions;
   $cost=$adGroupAd-stats-cost-microAmount / 100;
   $ctr=$adGroupAd-stats-ctr;
   $imp=$adGroupAd-stats-impressions;
   $ap=$adGroupAd-stats-averagePosition;
 //printf(Text ad with headline '%s' and ID '%s' was found.\n,
 //$adGroupAd-ad-headline, $adGroupAd-ad-id);
 array_push($retval,array(hea=$head,id=$adid ,desc=$des1 
 ,desc2=$des2,url=$url,

 cli=$clicks,cpc=$cpc,con=$conversions,cost=$cost,ctr=$ctr,imp=$imp,ap=$ap
  ));
 }
  echo json_encode($retval); 
 } else {
   //print No text ads were found.\n;
 }

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


 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.
   GetTextAdsExample($user, $adGroupId);
 } catch (Exception $e) {
   printf(An error has occurred: %s\n, $e-getMessage());
 }


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/63cd610f-c130-4627-a375-b89460085bd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cost value different in Account_Performance_Report and Keywords_Performance_Report?

2015-01-08 Thread HeatherH
What is the corresponding report in the UI? I'm interested in seeing the UI 
version of the display keyword performance report 
https://developers.google.com/adwords/api/docs/appendix/reports#display-keyword,
 
but don't see any likely candidates.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3024682d-20a1-4343-93f1-204eebe2704d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Не понятные данные в ответ от сервиса TrafficEstimatorService

2015-01-08 Thread sneustroev
Добрый день, спасибо за ответ!
Подскажите, могу ли я получить данные которые я вижу в AdWords:* бюджет, 
клики, показы ЦРТ, сред. цена за клик, стоимость, сред. поз.?*
Я так понимаю этот сервис (TrafficEstimatorService) не дает такую 
информацию?
Мне необходимы данные как минимум по указаным выше полям, могу ли я их 
вытянуть через веб-сервис или веб-сервисы?
Спасибо!

вторник, 6 января 2015 г., 23:43:45 UTC+2 пользователь Josh Radcliff 
(AdWords API Team) написал:

 Hi,

 The min and max *averageCpc* is the minimum and maximum cost per click *per 
 day *for the keyword. The *totalCost* is roughly equivalent to *averageCpc 
 x clicksPerDay* (in other words, a daily estimate of total cost).

 Best regards,
 Josh Radcliff, AdWords API Team

 On Monday, January 5, 2015 5:44:39 AM UTC-5, sneus...@treto.ru wrote:

 Добрый день столкнулся с проблемой такого плана:
 посылаю запрос к сервису TrafficEstimatorService, в ответе получаю min и 
 max значения totalCost, как понимать их, это минимальная и максимальная 
 цена за клик? в центре клиентов в информации о ключевых словах подается 
 усредненные данные?
 Как получить общую стоимость по ключевому слову?

 П.С, Еще заметил такое, если в запросе:
 ...
 v20:maxCpc
  v201:ComparableValue.Typexsi:type /v201:ComparableValue.Type
  v201:microAmount1000/v201:microAmount
 /v20:maxCpc
 ...
 менять microAmount, то выходят разные ответы на выходе от сервиса.

 Пример текста запроса к сервису:
 ?xml version=1.0 encoding=UTF-8?
 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/; xmlns:v20=
 https://adwords.google.com/api/adwords/o/v201409; xmlns:v201=
 https://adwords.google.com/api/adwords/cm/v201409;
   soapenv:Header
   v20:RequestHeader
v201:clientCustomerIdХХХ-ХХХ-/v201:clientCustomerId
v201:developerTokenХ/v201:developerToken
v201:userAgent1cAdWords/v201:userAgent
v201:validateOnlyfalse/v201:validateOnly
v201:partialFailurefalse/v201:partialFailure
   /v20:RequestHeader
   /soapenv:Header
   soapenv:Body
 v20:get
v20:selector
   v20:campaignEstimateRequests
  v20:campaignIdХХХ-ХХХ-/v20:campaignId
  v20:adGroupEstimateRequests
v20:keywordEstimateRequests
  v20:keyword
 v201:textKeywordText/v201:text
 v201:matchTypeBROAD/v201:matchType
  /v20:keyword
  v20:maxCpc
 v201:ComparableValue.Typexsi:type 
 /v201:ComparableValue.Type
 v201:microAmount1000/v201:microAmount
  /v20:maxCpc
  v20:isNegativefalse/v20:isNegative
   /v20:keywordEstimateRequests

/v20:adGroupEstimateRequests

 /v20:campaignEstimateRequests
  /v20:selector
   /v20:get
/soapenv:Body
/soapenv:Envelope;





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/67f3e205-6d8d-4ff2-a27f-297690fffc4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get the ad description using google adwords api

2015-01-08 Thread Michael Cloonan (AdWords API Team)
Hello,

You can select a TextAd's description using Description1 and 
Description2 fields. There are various URLs that can be tied to an ad. 
For information on all the fields (including URLs) that you may select, 
please look at our TextAd 
https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupAdService.TextAd
 
documentation.

You can see an example of how to request TextAds in the PHP client library 
here 
https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201409/BasicOperations/GetTextAds.php
.

Regards,
Mike, AdWords API Team

On Wednesday, January 7, 2015 11:56:27 PM UTC-5, Kiran Kumar wrote:


 Hi ,

 I want to display the ads description using google adwords api , I am 
 getting only ads heading ,is there any way to get the content of the ad and 
 the url for the ad by using google adwords api ,if it is available in the 
 adwords php client library.please let me know 


 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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/01229d38-ed03-4f67-92e0-96f51d665a4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to get Adgroup CPC,cost,CTR ,impressions etc ...using google adword api

2015-01-08 Thread Kiran Kumar


Hi , 

I am trying to get the CPC,cost,CTR ,impressions using GetTextAds ,but it's 
only giving like adtext ,headline and urls but not the others 

How do I retrieve this values using API ?

Thank you ?


Code:


function GetTextAdsExample(AdWordsUser $user, $adGroupId) {
// Get the service, which loads the required classes.
$adGroupAdService = $user-GetService('AdGroupAdService', ADWORDS_VERSION);

  // Create selector.
  $selector = new Selector();
  $selector-fields = array('Headline', 'Id');
  $selector-ordering[] = new OrderBy('Headline', 'ASCENDING');

  // Create predicates.
  $selector-predicates[] = new Predicate('AdGroupId', 'IN', 
array($adGroupId));
  $selector-predicates[] = new Predicate('AdType', 'IN', array('TEXT_AD'));
  // By default disabled ads aren't returned by the selector. To return them
  // include the DISABLED status in a predicate.
  $selector-predicates[] =
  new Predicate('Status', 'IN', array('ENABLED', 'PAUSED', 'DISABLED'));

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

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

// Display results.
if (isset($page-entries)) {
  foreach ($page-entries as $adGroupAd) {
  global $retval;
  $head=$adGroupAd-ad-headline;
  $adid=$adGroupAd-ad-id;
  $des1=$adGroupAd-ad-description1;
  $des2=$adGroupAd-ad-description2;
  $url=$adGroupAd-ad-displayUrl;
  $clicks=$adGroupAd-stats-clicks;
  $cpc=$adGroupAd-stats-averageCpc-microAmount / 100;
  $conversions=$adGroupAd-stats-conversions;
  $cost=$adGroupAd-stats-cost-microAmount / 100;
  $ctr=$adGroupAd-stats-ctr;
  $imp=$adGroupAd-stats-impressions;
  $ap=$adGroupAd-stats-averagePosition;
//printf(Text ad with headline '%s' and ID '%s' was found.\n,
//$adGroupAd-ad-headline, $adGroupAd-ad-id);
array_push($retval,array(hea=$head,id=$adid ,desc=$des1 
,desc2=$des2,url=$url,
cli=$clicks,cpc=$cpc,con=$conversions,cost=$cost,ctr=$ctr,imp=$imp,ap=$ap
 ));
}
 echo json_encode($retval); 
} else {
  //print No text ads were found.\n;
}

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


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.
  GetTextAdsExample($user, $adGroupId);
} catch (Exception $e) {
  printf(An error has occurred: %s\n, $e-getMessage());
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f3b16c69-8b85-4145-8c30-25702a2cac36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Google Ad Word PHP implementation and help!

2015-01-08 Thread Josh Radcliff (AdWords API Team)
Hi,

Based on your error message, it looks like you are using an old version of 
the library, since API v201309 was sunset 
https://developers.google.com/adwords/api/docs/sunset-dates many months 
ago. Please make sure you are using the latest version from github 
https://github.com/googleads/googleads-php-lib.

Regarding tutorials and examples, we have several resources:

   - The github README 
   
https://github.com/googleads/googleads-php-lib/blob/master/README.md#getting-started
   - Dozens of examples on github 
   
https://github.com/googleads/googleads-php-lib/tree/master/examples/AdWords/v201409
   - The Making Your First Request guide 
   https://developers.google.com/adwords/api/docs/first-request

The information the client provided you should be sufficient, although you 
will need to set up OAuth credentials. For that and your *auth.ini* issue, 
please go through the Using OAuth 2.0 wiki 
https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0 and 
make sure you are populating the *auth.ini* file as specified there.

Cheers,
Josh, AdWords API Team

On Thursday, January 8, 2015 7:39:27 AM UTC-5, Nikola Jordanovski wrote:


 Hi , so i am trying to use the google adwords API and am having trouble 
 with it.
 1. I can not find any proper tutorial for usage and examples.
 2. So the client provided me with the company name , developer token , 
 and clientCustomerId , i think that is not enough for me to use the API is 
 it?
 3. I entered the info that i have in the auth.ini and i am getting this 
 message :
  
 A PHP Error was encountered

 Severity: Warning

 Message: 
 require_once(C:\wamp\www\source\code\application\third_party\Adwords\src\Google\Api\Ads\AdWords\Lib\..\v201309\CampaignService.php):
  
 failed to open stream: No such file or directory

 Filename: Lib/AdWordsSoapClientFactory.php


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d0a25649-896f-47d0-a73c-0a4fcf767c7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Google Ad Word PHP implementation and help!

2015-01-08 Thread Nikola Jordanovski

Hi , so i am trying to use the google adwords API and am having trouble 
with it.
1. I can not find any proper tutorial for usage and examples.
2. So the client provided me with the company name , developer token , 
and clientCustomerId , i think that is not enough for me to use the API is 
it?
3. I entered the info that i have in the auth.ini and i am getting this 
message :
 
A PHP Error was encountered

Severity: Warning

Message: 
require_once(C:\wamp\www\source\code\application\third_party\Adwords\src\Google\Api\Ads\AdWords\Lib\..\v201309\CampaignService.php):
 
failed to open stream: No such file or directory

Filename: Lib/AdWordsSoapClientFactory.php

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8804dfe0-0bc3-4e52-9718-b599655a68d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


active or pause adwords campaign

2015-01-08 Thread transport93600


 I would like to active or pause adwords campaign with  php using awards api 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8e938f03-52ac-4526-9796-196eeb762ea0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Не понятные данные в ответ от сервиса TrafficEstimatorService

2015-01-08 Thread Josh Radcliff (AdWords API Team)
Hi,

Are you looking for the budget, clicks, impressions MDGs media. cost per 
click , cost, etc. for your running campaigns and ad groups? If so, then 
you can use reports for this use case. Please check out our Reporting 
Basics guide 
https://developers.google.com/adwords/api/docs/guides/reporting and the list 
of available API reports 
https://developers.google.com/adwords/api/docs/appendix/reports.

If instead you are looking for stats for targeting ideas, then the complete 
list of available stats is on the AttributeType documentation 
https://developers.google.com/adwords/api/docs/reference/v201409/TargetingIdeaService.AttributeType
.

Cheers,
Josh, AdWords API Team

On Thursday, January 8, 2015 4:01:04 AM UTC-5, sneus...@treto.ru wrote:

 Добрый день, спасибо за ответ!
 Подскажите, могу ли я получить данные которые я вижу в AdWords:* бюджет, 
 клики, показы ЦРТ, сред. цена за клик, стоимость, сред. поз.?*
 Я так понимаю этот сервис (TrafficEstimatorService) не дает такую 
 информацию?
 Мне необходимы данные как минимум по указаным выше полям, могу ли я их 
 вытянуть через веб-сервис или веб-сервисы?
 Спасибо!

 вторник, 6 января 2015 г., 23:43:45 UTC+2 пользователь Josh Radcliff 
 (AdWords API Team) написал:

 Hi,

 The min and max *averageCpc* is the minimum and maximum cost per click *per 
 day *for the keyword. The *totalCost* is roughly equivalent to *averageCpc 
 x clicksPerDay* (in other words, a daily estimate of total cost).

 Best regards,
 Josh Radcliff, AdWords API Team

 On Monday, January 5, 2015 5:44:39 AM UTC-5, sneus...@treto.ru wrote:

 Добрый день столкнулся с проблемой такого плана:
 посылаю запрос к сервису TrafficEstimatorService, в ответе получаю min и 
 max значения totalCost, как понимать их, это минимальная и максимальная 
 цена за клик? в центре клиентов в информации о ключевых словах подается 
 усредненные данные?
 Как получить общую стоимость по ключевому слову?

 П.С, Еще заметил такое, если в запросе:
 ...
 v20:maxCpc
  v201:ComparableValue.Typexsi:type /v201:ComparableValue.Type
  v201:microAmount1000/v201:microAmount
 /v20:maxCpc
 ...
 менять microAmount, то выходят разные ответы на выходе от сервиса.

 Пример текста запроса к сервису:
 ?xml version=1.0 encoding=UTF-8?
 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/; xmlns:v20=
 https://adwords.google.com/api/adwords/o/v201409; xmlns:v201=
 https://adwords.google.com/api/adwords/cm/v201409;
   soapenv:Header
   v20:RequestHeader
v201:clientCustomerIdХХХ-ХХХ-/v201:clientCustomerId
v201:developerTokenХ/v201:developerToken
v201:userAgent1cAdWords/v201:userAgent
v201:validateOnlyfalse/v201:validateOnly
v201:partialFailurefalse/v201:partialFailure
   /v20:RequestHeader
   /soapenv:Header
   soapenv:Body
 v20:get
v20:selector
   v20:campaignEstimateRequests
  v20:campaignIdХХХ-ХХХ-/v20:campaignId
  v20:adGroupEstimateRequests
v20:keywordEstimateRequests
  v20:keyword
 v201:textKeywordText/v201:text
 v201:matchTypeBROAD/v201:matchType
  /v20:keyword
  v20:maxCpc
 v201:ComparableValue.Typexsi:type 
 /v201:ComparableValue.Type
 v201:microAmount1000/v201:microAmount
  /v20:maxCpc
  v20:isNegativefalse/v20:isNegative
   /v20:keywordEstimateRequests

/v20:adGroupEstimateRequests

 /v20:campaignEstimateRequests
  /v20:selector
   /v20:get
/soapenv:Body
/soapenv:Envelope;





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f8159636-73e2-4a33-8e96-d8bbe9c76daa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Unable to add template ad

2015-01-08 Thread test . mcc
Hi there,

I tried uploading an ad made with Google Web Designer manually and all went 
fine. I'm now trying to automate this process, upload the published .zip 
file via a C# application, but when I try doing that I get this error:

AdError.MISSING_REQUIRED_TEMPLATE_FIELDS @ 
operations[0].operand.ad.templateElements[0].variationSpecificFieldOverrides; 
trigger:'Custom_layout'

I tried adding a field Custom_layout, the only type that doesn't give an 
error being BACKGROUND_IMAGE (I tried all types, all others trigger the 
invalid field error), no error is triggered on the field itself, but the 
error above (Custom_layout missing) is still triggered despite being in the 
request.

Can you please help me with this issue?

this is the body I send:

soap:Body

mutate xmlns=https://adwords.google.com/api/adwords/cm/v201409;

operations

operatorADD/operator

operand

adGroupId18375969918/adGroupId

ad xsi:type=TemplateAd

urlhttp://www.bannerwise.co/url

displayUrlwww.bannerwise.co/displayUrl

templateId419/templateId

templateElements

uniqueNameadData/uniqueName

fields

namelayout/name

typeENUM/type

fieldTextCustom/fieldText

/fields

fields

nameCustom_layout/name

typeBACKGROUND_IMAGE/type

fieldMedia xsi:type=Image

typeIMAGE/type

data[byteArrayOfZipFile]/data

/fieldMedia

/fields

/templateElements

adAsImage

typeIMAGE/type

data[byteArrayOfZipFile]/data

/adAsImage

dimensions

width300/width

height250/height

/dimensions

nameTest automated web designer ad/name

/ad

statusPAUSED/status

/operand

/operations

/mutate

/soap:Body

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/03566fc1-81f3-4ea6-b240-335686e2ff20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AuthenticationError.OAUTH_TOKEN_INVALID while accessing AdWord API

2015-01-08 Thread Josh Radcliff (AdWords API Team)
Hi,

Could you provide some more details? For example, are you using one of the 
client libraries, or just constructing the OAuth and API requests manually? 
You mentioned that it works after your second attempt -- are you referring 
to your second attempt to get an access token using a refresh token, or 
something else?

If you have sample requests and responses (with any sensitive information 
removed), please post those as well to help us diagnose the problem.

Thanks,
Josh, AdWords API Team

On Wednesday, January 7, 2015 10:26:50 PM UTC-5, Van Sereyboth wrote:

 Hi I keep getting the above error while writing rspec in RoR.

 The first attempt to request is always causing me this mentioned error.
 the second attempt is working so fine without any glitches.

 here is how I get after testing my access_token:

 {

- scope: https://adwords.google.com/api/adwords/;,
- expires_in: 1827,
- access_type: offline

 }

 On Thursday, April 17, 2014 9:48:00 PM UTC+7, Josh Radcliff (AdWords API 
 Team) wrote:

 Hi,

 The error code AuthenticationError.OAUTH_TOKEN_INVALID indicates that 
 there's an issue with the access token in the *Authorization* header. It 
 usually means the token has expired, which you can confirm via the URL 
 below after appending your *access* (not refresh) token to the end.

 https://www.googleapis.com/oauth2/v1/tokeninfo?access_token= 
 https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=YOUR_ACCESS_TOKEN

 When you generated the refresh token did you use the GetRefreshToken.java 
 https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/auth/GetRefreshToken.java
  example 
 and follow the instructions on our wiki 
 https://github.com/googleads/googleads-java-lib/wiki/Using-OAuth2.0#using-offline-credentials-offlinecredentials
 ?

 Thanks,
 Josh, AdWords API Team


 On Wednesday, April 16, 2014 7:45:15 AM UTC-4, Sandeep Gupta wrote:

 HI This is Sandeep here, i am trying to integrate Google Adword API to 
 utilize it better way, but i am getting below error.
 faultString: [AuthenticationError.OAUTH_TOKEN_INVALID @ ; 
 trigger:'lt;nullgt;']


 i have generated CLient ID, Client secret and Refresh token and added 
 these values in ads.properties.

 But i am getting error on below steps.

 Selector selector = builder
 .fields(Id, Name)
 .orderAscBy(Name)
 .offset(offset)
 .limit(PAGE_SIZE)
 .build();
 CampaignPage page = campaignService.get(selector); // this step is 
 giving error.


 ERROR DETAILS ::

 pr 16, 2014 5:01:15 PM org.apache.axis.utils.JavaUtils 
 isAttachmentSupported
 WARNING: Unable to find required classes (javax.activation.DataHandler 
 and javax.mail.internet.MimeMultipart). Attachment support is disabled.
 Exception in thread main AxisFault
  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
  faultSubcode: 
  faultString: [AuthenticationError.OAUTH_TOKEN_INVALID @ ; 
 trigger:'lt;nullgt;']
  faultActor: 
  faultNode: 
  faultDetail: 
 {https://adwords.google.com/api/adwords/cm/v201402}ApiExceptionFault:message[AuthenticationError.OAUTH_TOKEN_INVALID
  
 @ ; 
 trigger:'lt;nullgt;']/messageApplicationException.TypeApiException/ApplicationException.Typeerrors
  
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:type=AuthenticationErrorfieldPath/triggerlt;nullgt;/triggererrorStringAuthenticationError.OAUTH_TOKEN_INVALID/errorStringApiError.TypeAuthenticationError/ApiError.TypereasonOAUTH_TOKEN_INVALID/reason/errors

 [AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:'null']
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 at java.lang.Class.newInstance0(Class.java:355)
 at java.lang.Class.newInstance(Class.java:308)
 at 
 org.apache.axis.encoding.ser.BeanDeserializer.init(BeanDeserializer.java:104)
 at 
 org.apache.axis.encoding.ser.BeanDeserializer.init(BeanDeserializer.java:90)
 at 
 com.google.api.ads.adwords.axis.v201402.cm.ApiException.getDeserializer(ApiException.java:143)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
 org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)
 at 
 org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)
 at 
 org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)
 at 
 

Re: active or pause adwords campaign

2015-01-08 Thread Michael Cloonan (AdWords API Team)
Hello,

You can set the Campaign's status 
https://developers.google.com/adwords/api/docs/reference/v201409/CampaignService.Campaign#status
 
to ENABLED to activate it, or PAUSED to pause it.

Here's an example 
https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201409/BasicOperations/UpdateCampaign.php
 
of how to update a Campaign in the PHP client library.

Regards,
Mike, AdWords API Team

On Thursday, January 8, 2015 5:47:06 AM UTC-5, transpo...@gmail.com wrote:

  I would like to active or pause adwords campaign with  php using awards api 



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5782bfe5-e26c-4873-b7a0-1e89831f3c70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: (500) Internal Server Error - CAMPAIGN_PERFORMANCE_REPORT

2015-01-08 Thread Michael Cloonan (AdWords API Team)
Hello Zweitze,

If you know of any campaigns or ad groups that have the 'UNKNOWN' status in 
your account, can you please provide me their IDs so that the engineering 
team can take a closer look? If you aren't aware of any specific items, 
then you should be safe leaving out the predicate on 'UNKNOWN' values, 
which would hopefully solve the issue.

Regards,
Mike, AdWords API Team

On Tuesday, December 30, 2014 at 6:18:53 AM UTC-5, Zweitze wrote:

 Any progress?

 On Tuesday, December 9, 2014 3:15:28 PM UTC+1, Michael Cloonan (AdWords 
 API Team) wrote:

 Hello Zweitze,

 I was also able to reproduce this. I will file a bug with the team and 
 let you know when I hear more.

 Regards,
 Mike, AdWords API Team

 On Tuesday, December 9, 2014 4:26:30 AM UTC-5, Zweitze wrote:

 Yes,

 This is happens all the time - reproduction should be no issue. I also 
 found out that groups now have a status UNKNOWN as well, and the same 
 problems arise - including the HTTP 500.

 Zweitze.


 On Monday, December 8, 2014 9:16:59 PM UTC+1, Michael Cloonan (AdWords 
 API Team) wrote:

 Hello,

 Are you consistently getting 500 errors when using UNKNOWN in the 
 predicate? If so, I will file a bug with the team, as even if this is an 
 error case, an HTTP 500 error is not the right way to indicate that.

 Regards,
 Mike, AdWords API Team

 On Monday, December 8, 2014 3:04:30 PM UTC-5, Zweitze wrote:

 I found it. Apparently you cannot use value UNKNOWN for a predicate 
 on Status.

 But I need those campaigns too. As I recall, when you leave out a 
 predicate on Status, your results may get filtered on certain status 
 values. This happened in the past (remember the 'automatic' filters on 
 creatives etc.) and I never got word that the issue with auto-filters was 
 resolved. So I need to include this predicate.
 Mind you, if I add a filter with all predicate values *except* 
 UNKNOWN, I would assume that campaigns with status unknown will be 
 left 
 out from the result. I don't want that.

 According to the documentation, UNKNOWN is a valid predicate value, 
 and unknown is a valid display value. So the documentation is wrong 
 and/or the implementation is wrong.
 How do I go on from here? How can I get campaigns with status 
 unknown?

 Thanks in advance!


 On Monday, December 8, 2014 6:37:17 PM UTC+1, Zweitze wrote:

 Hello,

 At development of the v201409 migration I noticed this error on a 
 report of type CAMPAIGN_PERFORMANCE_REPORT. The error happened four 
 times 
 in a row (30 seconds interval), and never happened four times in a row 
 on 
 earlier versions.

 This is the report:
 ?xml version=1.0? 
 reportDefinition 
   selector xmlns=https://adwords.google.com/api/adwords/cm/v201409; 

 fieldsAccountDescriptiveName/fields 
 fieldsAccountCurrencyCode/fields 
 fieldsAccountTimeZoneId/fields 
 fieldsCampaignId/fields 
 fieldsCampaignName/fields 
 fieldsCampaignStatus/fields 
 fieldsAmount/fields 
 fieldsAdvertisingChannelType/fields 
 predicates 
   fieldStatus/field 
   operatorIN/operator 
   valuesUNKNOWN/values 
   valuesENABLED/values 
   valuesPAUSED/values 
   valuesREMOVED/values 
 /predicates 
   /selector 
   reportName xmlns=
 https://adwords.google.com/api/adwords/cm/v201409;CampaignInfo_All_Time/reportName
  

   reportType xmlns=
 https://adwords.google.com/api/adwords/cm/v201409;CAMPAIGN_PERFORMANCE_REPORT/reportType
  

   dateRangeType xmlns=
 https://adwords.google.com/api/adwords/cm/v201409;ALL_TIME/dateRangeType
  

   downloadFormat xmlns=
 https://adwords.google.com/api/adwords/cm/v201409;GZIPPED_XML/downloadFormat
  

   includeZeroImpressions xmlns=
 https://adwords.google.com/api/adwords/cm/v201409;true/includeZeroImpressions
  

 /reportDefinition

 Our request headers:
  Content-Type
  application/x-www-form-urlencoded
  Authorization
  Bearer ya29.1...3Leq25
  clientCustomerId
  8928384200
  developerToken
  kNkfox...m9qg_g
  skipReportHeader
  True
  skipReportSummary
  True
  User-Agent
  Adwords API by Maxlead
  Host
  adwords.google.com
  Content-Length
  1445
  Expect
  100-continue
  Accept-Encoding
  gzip, deflate

 AdWords API Response headers:
  X-Content-Type-Options
  nosniff
  X-Frame-Options
  SAMEORIGIN
  X-XSS-Protection
  1; mode=block
  Transfer-Encoding
  chunked
  Cache-Control
  private, max-age=0
  Content-Type
  text/xml
  Date
  Mon, 08 Dec 2014 16:38:32 GMT
  Expires
  Mon, 08 Dec 2014 16:38:32 GMT
  Server
  GSE

 As stated before, this is an exact copy of the report we requested in 
 earlier versions. But there is one small difference, we use flags 
 skipHeaderReport and skipHeaderSummary in this version.

 Is v201409 not stable yet?

 Thank in advance,
 Zweitze de Vries



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts