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, как понимать их, это минимальная и максимальная 
>> цена за клик? в центре клиентов в информации о ключевых словах подается 
>> усредненные данные?
>> Как получить общую стоимость по ключевому слову?
>>
>> П.С, Еще заметил такое, если в запросе:
>> ...
>> 
>>  xsi:type 
>>  1000
>> 
>> ...
>> менять microAmount, то выходят разные ответы на выходе от сервиса.
>>
>> Пример текста запроса к сервису:
>> "
>> > 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"";>
>>   
>>   
>>ХХХ-ХХХ-
>>Х
>>1cAdWords
>>false
>>false
>>   
>>   
>>   
>> 
>>
>>   
>>  ХХХ-ХХХ-
>>  
>>
>>  
>> "KeywordText"
>> BROAD
>>  
>>  
>> xsi:type 
>> 
>> 1000
>>  
>>  false
>>   
>>
>>
>>
>> 
>>  
>>   
>>
>>";
>>
>>
>>
>>

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

 
documentation.

You can see an example of how to request TextAds in the PHP client library 
here 

.

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.


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.


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:



https://adwords.google.com/api/adwords/cm/v201409";>



ADD



18375969918



http://www.bannerwise.co

www.bannerwise.co

419



adData



layout

ENUM

Custom





Custom_layout

BACKGROUND_IMAGE



IMAGE

[byteArrayOfZipFile]









IMAGE

[byteArrayOfZipFile]





300

250



Test automated web designer ad



PAUSED









-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: active or pause adwords campaign

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

You can set the Campaign's status 

 
to ENABLED to activate it, or PAUSED to pause it.

Here's an example 

 
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: 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= 
>> 
>>
>> When you generated the refresh token did you use the GetRefreshToken.java 
>> 
>>  example 
>> and follow the instructions on our wiki 
>> 
>> ?
>>
>> 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:'']
>>>
>>>
>>> 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:'']
>>>  faultActor: 
>>>  faultNode: 
>>>  faultDetail: 
>>> {https://adwords.google.com/api/adwords/cm/v201402}ApiExceptionFault:[AuthenticationError.OAUTH_TOKEN_INVALID
>>>  
>>> @ ; 
>>> trigger:'']ApiException>>  
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>>> xsi:type="AuthenticationError">AuthenticationError.OAUTH_TOKEN_INVALIDAuthenticationErrorOAUTH_TOKEN_INVALID
>>>
>>> [AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:'']
>>> 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.(BeanDeserializer.java:104)
>>> at 
>>> org.apache.axis.encoding.ser.BeanDeserializer.(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.getDese

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 
 and the list 
of available API reports 
.

If instead you are looking for stats for targeting ideas, then the complete 
list of available stats is on the AttributeType documentation 

.

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, как понимать их, это минимальная и максимальная 
>>> цена за клик? в центре клиентов в информации о ключевых словах подается 
>>> усредненные данные?
>>> Как получить общую стоимость по ключевому слову?
>>>
>>> П.С, Еще заметил такое, если в запросе:
>>> ...
>>> 
>>>  xsi:type 
>>>  1000
>>> 
>>> ...
>>> менять microAmount, то выходят разные ответы на выходе от сервиса.
>>>
>>> Пример текста запроса к сервису:
>>> "
>>> >> 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"";>
>>>   
>>>   
>>>ХХХ-ХХХ-
>>>Х
>>>1cAdWords
>>>false
>>>false
>>>   
>>>   
>>>   
>>> 
>>>
>>>   
>>>  ХХХ-ХХХ-
>>>  
>>>
>>>  
>>> "KeywordText"
>>> BROAD
>>>  
>>>  
>>> xsi:type 
>>> 
>>> 1000
>>>  
>>>  false
>>>   
>>>
>>>
>>>
>>> 
>>>  
>>>   
>>>
>>>";
>>>
>>>
>>>
>>>

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


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 
 many months 
ago. Please make sure you are using the latest version from github 
.

Regarding tutorials and examples, we have several resources:

   - The github README 
   

   - Dozens of examples on github 
   

   - The Making Your First Request guide 
   

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


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:
>>  
>>  
>>   https://adwords.google.com/api/adwords/cm/v201409";> 
>>
>> AccountDescriptiveName 
>> AccountCurrencyCode 
>> AccountTimeZoneId 
>> CampaignId 
>> CampaignName 
>> CampaignStatus 
>> Amount 
>> AdvertisingChannelType 
>>  
>>   Status 
>>   IN 
>>   UNKNOWN 
>>   ENABLED 
>>   PAUSED 
>>   REMOVED 
>>  
>>
>>   https://adwords.google.com/api/adwords/cm/v201409";>CampaignInfo_All_Time
>>  
>>
>>   https://adwords.google.com/api/adwords/cm/v201409";>CAMPAIGN_PERFORMANCE_REPORT
>>  
>>
>>   https://adwords.google.com/api/adwords/cm/v201409";>ALL_TIME
>>  
>>
>>   https://adwords.google.com/api/adwords/cm/v201409";>GZIPPED_XML
>>  
>>
>>   https://adwords.google.com/api/adwords/cm/v201409";>true
>>  
>>
>> 
>>
>> 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 

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 
,
 
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: 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 

 
you will notice that CPC, cost, CTR, impressions, etc. are not available. 
To get these performance values I recommend downloading an ad performance 
report .

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: 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.


PAGING_NOT_SUPPORTED

2015-01-08 Thread edduenasnordstrom
Hi,
We tried downloading the following reports.

GEO_PERFORMANCE_REPORT
DESTINATION_URL_REPORT
AD_PERFORMANCE_REPORT
KEYWORDS_PERFORMANCE_REPORT
SEARCH_QUERY_PERFORMANCE_REPORT
AGE_RANGE_PERFORMANCE_REPORT
AUDIENCE_PERFORMANCE_REPORT
AUTOMATIC_PLACEMENTS_PERFORMANCE_REPORT
CLICK_PERFORMANCE_REPORT
CAMPAIGN_LOCATION_TARGET_REPORT
DISPLAY_KEYWORD_PERFORMANCE_REPORT
DISPLAY_TOPICS_PERFORMANCE_REPORT
GENDER_PERFORMANCE_REPORT
PAID_ORGANIC_QUERY_REPORT
PRODUCT_PARTITION_REPORT
SHOPPING_PERFORMANCE_REPORT
URL_PERFORMANCE_REPORT
AD_EXTENSIONS_PERFORMANCE_REPORT
BID_GOAL_PERFORMANCE_REPORT
KEYWORDLESS_CATEGORY_REPORT
KEYWORDLESS_QUERY_REPORT
PLACEHOLDER_FEED_ITEM_REPORT

We used paging concept to download the reports. We used the following piece 
of code

Paging paging = new Paging();
 paging.setStartIndex(0);
 selector.setPaging(paging);

For all the above reports we are getting the following error
Report was not downloaded. HTTP Response Code: 400, Trigger: Paging is not 
supported for reports, Type: ReportDefinitionError.PAGING_NOT_SUPPORTED

Please suggest a solution to handle this.


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/53730acd-8562-4fba-bdd8-bc0f0cecd055%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.