TargetingIdeaService return keywords stats not matched with Web UI.

2013-08-01 Thread Chirag eReportz


Hello,

We have been using the TargetingIdeaService to get New idea of KEYWORD_TEXT 
,AVERAGE_CPC , SEARCH_VOLUME for some time 
now but recently we have noticed that the values returing were not expected.

For example, for the keywords in 

$targetingIdeaService = $user-GetService('TargetingIdeaService', '201306');

  // Create seed keyword.

  $keyword = array('in home senior care','senior care services','senior home 
care','elder home care'...etc);

  // Create selector.
  $selector = new TargetingIdeaSelector();
  $selector-requestType = 'IDEAS';
  $selector-ideaType = 'KEYWORD';
  $selector-requestedAttributeTypes =   
array('KEYWORD_TEXT','COMPETITION','SEARCH_VOLUME','AVERAGE_CPC');

  $languageParameter = new LanguageSearchParameter();
  $english = new Language();
  $english-id = 1000;
  $languageParameter-languages = array($english);

  $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
  $relatedToQuerySearchParameter-queries = $keyword;
  $selector-searchParameters[] = $relatedToQuerySearchParameter;
  $selector-searchParameters[] = $languageParameter;
  $selector-paging = new Paging(0, 500);

  $page = $targetingIdeaService-get($selector);

Result Keywords stats Not match with UI. and Average cpc is also very High.

What is the issue??

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

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




No End date set in Create a campaign

2013-08-01 Thread Akhilesh Ojha
HI,

scenario is this:
1. Create campaign with end date set to No End Date

Such scenario is valid and is possible through Adwords Web interface.
But it can not be done through API - when setting campaign field
endDate =null - API won't make any changes
How 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
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: AdGroupCriterionService Bug? - EntityNotFound.INVALID_ID for CriterionId that exists

2013-08-01 Thread Erkan Ceran
Hi,

   I had this problem. If you use  mcc login or change clientId after 
create AdwordsUser object, its couldnt find campaigns because that time 
login is not in scope of account. I changed my login with client id problem 
is solved.

Ex. in PHP : $adwordsUser = new AdWordsUser(null, $email, $pass, 
$developerToken,  $applicationToken, $userAgent, $customerID);

Best,
Erkan



22 Temmuz 2013 Pazartesi 14:13:01 UTC+3 tarihinde Akil Burgess yazdı:

 Hi All,

 We're seeing a reproducable issue where we receive an 
 EntityNotFound.INVALID_ID (trigger - CriterionId) error for a mutate 
 operation on AdGroupCriterion using a valid AdGroupId and CriterionId 
 (Id). The AdGroupCriterionService get call returns the AdGroupCriterion 
 object with the same Ids that are being said to be invalid. 

 I have attached the soap logs for the mutate operation and the get 
 operation below. Is this a bug in the AdGroupCriterionService or is there 
 something wrong with our AdGroupCriterionOperation?

 Thanks!
 Akil Burgess


 -BEGIN API CALL-

 Request (Mutate)
 ---


 ?xml version=1.0 encoding=utf-8?soap:Envelope xmlns:soap=
 http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=
 http://www.w3.org/2001/XMLSchema;!--POST 
 /api/adwords/cm/v201306/AdGroupCriterionService
 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client 
 Protocol 4.0.30319.18051)
 VsDebuggerCausalityData: 
 uIDPowA6lARsOPdGukKutxnlLlgANiaXQS2+v0qF1bOWBKYRAyjTf3Fc57dJitdesMIpq6IACQAA
 Content-Type: text/xml; charset=utf-8
 SOAPAction: 
 Host: adwords.google.com
 Content-Length: 1540
 Accept-Encoding: gzip
 Connection: Keep-Alive
 TimeStamp: Mon, 22 Jul 2013 12:02:27 GMT
 --soap:HeaderRequestHeader xmlns=
 https://adwords.google.com/api/adwords/cm/v201306;authToken xmlns=
 https://adwords.google.com/api/adwords/cm/v201306;**/authTokendeveloperToken
  
 xmlns=https://adwords.google.com/api/adwords/cm/v201306;**/developerTokenclientCustomerId
  
 xmlns=https://adwords.google.com/api/adwords/cm/v201306;9765518125/clientCustomerIduserAgent
  
 xmlns=https://adwords.google.com/api/adwords/cm/v201306; 
 (AwApi-DotNet/16.1.0, Common-Dotnet/1.8.0, .NET CLR/4.0.30319.18051, 
 gzip)/userAgent/RequestHeader/soap:Headersoap:Bodymutate xmlns=
 https://adwords.google.com/api/adwords/cm/v201306;operationsoperatorSET/operatoroperand
  
 xsi:type=BiddableAdGroupCriterionadGroupId3790202104/adGroupIdcriterion
  
 xsi:type=Keywordid37523985304/id/criterionbiddingStrategyConfigurationbids
  
 xsi:type=CpcBidbidmicroAmount80/microAmount/bid/bids/biddingStrategyConfiguration/operand/operations/mutate/soap:Body/soap:Envelope

 Response (Mutate)
 


 soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/
 !--Content-Encoding: 
 X-Content-Type-Options: nosniff
 X-Frame-Options: SAMEORIGIN
 X-XSS-Protection: 1; mode=block
 Content-Length: 535
 Cache-Control: private, max-age=0
 Content-Type: text/xml; charset=UTF-8
 Date: Mon, 22 Jul 2013 11:01:16 GMT
 Expires: Mon, 22 Jul 2013 11:01:16 GMT
 Server: GSE
 TimeStamp: Mon, 22 Jul 2013 12:02:27 GMT
 --soap:HeaderResponseHeader xmlns=
 https://adwords.google.com/api/adwords/cm/v201306;requestId0004e2179870ad280ae50e884419/requestIdserviceNameAdGroupCriterionService/serviceNamemethodNamemutate/methodNameoperations0/operationsresponseTime478/responseTime/ResponseHeader/soap:Headersoap:Bodysoap:Faultfaultcodesoap:Server/faultcodefaultstring[EntityNotFound.INVALID_ID
  
 @ operations[0].operand.criterion.id; 
 trigger:'CriterionId{id=37523985304}']/faultstringdetailApiExceptionFault
  
 xmlns=https://adwords.google.com/api/adwords/cm/v201306;message[EntityNotFound.INVALID_ID
  
 @ operations[0].operand.criterion.id; 
 trigger:'CriterionId{id=37523985304}']/messageApplicationException.TypeApiException/ApplicationException.Typeerrors
  
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:type=EntityNotFoundfieldPathoperations[0].operand.criterion.id
 /fieldPathtriggerCriterionId{id=37523985304}/triggererrorStringEntityNotFound.INVALID_ID/errorStringApiError.TypeEntityNotFound/ApiError.TypereasonINVALID_ID/reason/errors/ApiExceptionFault/detail/soap:Fault/soap:Body/soap:Envelope
 -END API CALL---

 -BEGIN API CALL-

 Request (Get)
 ---


 ?xml version=1.0 encoding=utf-8?soap:Envelope xmlns:soap=
 http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=
 http://www.w3.org/2001/XMLSchema;!--POST 
 /api/adwords/cm/v201306/AdGroupCriterionService
 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client 
 Protocol 4.0.30319.18051)
 VsDebuggerCausalityData: 
 uIDPo3bOCEf8qJROof0bhcA1TDcAT2HD25jDzUGnU2As9HdxCUHJYPMJGZBCiWlffLMJkWEACQAA
 Content-Type: text/xml; charset=utf-8
 SOAPAction: 
 Host: adwords.google.com
 Content-Length: 2621
 

I think I found a typo in the readme for the new 4.5 PHP Client Library

2013-08-01 Thread tomjoyce34
Hi There

Just downloaded the new 4.5  
adwords_api_php_4.5.1.tar.gzhttps://code.google.com/p/google-api-adwords-php/downloads/detail?name=adwords_api_php_4.5.1.tar.gzcan=2q=
from
https://code.google.com/p/google-api-adwords-php/downloads/list

I think I found a typo in the readme

 Line 119require_once 'Google/Api/Ads/AdWordsuser/Lib/AdWordsUser.php';
 should be
require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php';


Tom

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
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 Download SiteLinks from Enhanced Campaigns

2013-08-01 Thread Danial Klimkin
Hello Adi,


Please note only campaigns were migrated to EC, sitelinks auto-migration is 
scheduled for late September only.

So if you haven't migrated your sitelinks manually or via the UI you should 
be able to retrieve your legacy sitelinks with CampaignAdExtensionService.


-Danial, AdWords API Team.


On Tuesday, July 30, 2013 11:39:25 AM UTC+4, adi wrote:

 Hi

 Recently Google has migrated our Legacy site links to Enhanced Campaigns. 


 When we downloaded Sitelinks from enhanced campaigns using API(v201306) we 
 are getting following values instead of our actual SITELINKS.
  URL - https://plus.google.com/
  SiteLink – Our Website name
 When i have sent request to google, they have asked to refer
 https://developers.google.com/adwords/api/docs/guides/feed-services. This 
 just talks about creating new site links.

 Please let us know if any one is downloading the site links from Enhanced 
 Campaings (Only which are migrated from Google). 
 Note:- If we add new Site Link using Feed Service.. we are able to 
 download them using API. 

 Thanks in advance
 Adi


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
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: Why used Display Keyword Performance Report showed empty?

2013-08-01 Thread Danial Klimkin
Duplicate:

  https://groups.google.com/forum/#!topic/adwords-api/djMgPrd38Zc


-Danial.

On Wednesday, July 31, 2013 9:38:41 AM UTC+4, Kang JinLan wrote:

 I set a specific date period with performance record for 
 DISPLAY_KEYWORD_PERFORMANCE_REPORT, but it showed empty.

 But it showed data in the general report Keywords Performance 
 Report(KEYWORDS_PERFORMANCE_REPORT), however, the keywords such as 
 Content(300) or Automaticontent(306) which can't identify the real 
 performance source . 

 Please help me to find out the reason for empty Display Keyword 
 Performance Report, thanks! 


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
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: The URL google returns to access a refresh token does not work, help?

2013-08-01 Thread Danial Klimkin
Hello Luke,


Can you please double-check the client application ID is the installed 
application client ID with the OOB redirect URI listed as a valid redirect 
in the API Console?

I can't see any other reason for this error.


-Danial, AdWords API Team.


On Thursday, August 1, 2013 4:34:50 AM UTC+4, Luke Culbertson wrote:

 I am also receiving the same error (redirect uri mismatch) when running 
 the generate_refresh_token.py script, even with an offline application type.

 Request Details

- from_login=1
- cookie_policy_enforce=false
- scope=https://adwords.google.com/api/adwords
- response_type=code
- access_type=offline
- redirect_uri=urn:ietf:wg:oauth:2.0:oob
- as=-3dec539cc01dab84
- display=page
- pli=1
- client_id=***.apps.googleusercontent.com
- authuser=2
- hl=en

 Any ideas on what is causing this?

 On Wednesday, July 31, 2013 2:54:53 AM UTC-7, Danial Klimkin wrote:

 Hello,


 What is the type of the client you use? For Web application type you need 
 to explicitly list allowed redirect URLs in the API console.

 From your request it looks like you need an offline (standalone) 
 application type.


 -Danial, AdWords API Team.


 On Tuesday, July 30, 2013 12:17:18 AM UTC+4, connor@room77.com wrote:

 I am currently trying to access the monthly search volume of a given 
 keyword. To do this, I need to generate a refresh token using 
 generate_refresh_token. The URL it gives me to access the verification code 
 is broken, returning the error: redirect_uri_mismatch. It states: The 
 redirect URI in the request: urn:ietf:wg:oauth:2.0:oob did not match a 
 registered redirect URI.

 The details are:


- cookie_policy_enforce=false
- scope=https://adwords.google.com/api/adwords
- response_type=code
- access_type=online
- redirect_uri=urn:ietf:wg:oauth:2.0:oob
- display=page
- client_id=230466429510.apps.googleusercontent.com


 The URL it gives me is: 
 https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fadwords.google.com%2Fapi%2Fadwordsredirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoobresponse_type=codeclient_id=230466429510.apps.googleusercontent.comaccess_type=offline

 Is there any way to fix this, or generate a token another way?

 Thank you



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

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




After authentication No Refresh Token

2013-08-01 Thread mcc
I m using adwords api v201306,
when i authenticate the user using Oauth2 authentication It returns

 array(

access_token = '*',

expiresin= 

token_type = *

);


But There is no refresh token.
Any Ideas?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
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: The URL google returns to access a refresh token does not work, help?

2013-08-01 Thread Luke Culbertson
Danial,

My issue involved using a service account rather than an installed 
application. It wasn't very clear in the documentation exactly what type of 
account was necessary. Nonetheless, creating a new installed application 
client id did the trick and I now have my refresh token. Thanks for your 
help!

On Thursday, August 1, 2013 6:08:57 AM UTC-7, Danial Klimkin wrote:

 Hello Luke,


 Can you please double-check the client application ID is the installed 
 application client ID with the OOB redirect URI listed as a valid redirect 
 in the API Console?

 I can't see any other reason for this error.


 -Danial, AdWords API Team.


 On Thursday, August 1, 2013 4:34:50 AM UTC+4, Luke Culbertson wrote:

 I am also receiving the same error (redirect uri mismatch) when running 
 the generate_refresh_token.py script, even with an offline application type.

 Request Details

- from_login=1
- cookie_policy_enforce=false
- scope=https://adwords.google.com/api/adwords
- response_type=code
- access_type=offline
- redirect_uri=urn:ietf:wg:oauth:2.0:oob
- as=-3dec539cc01dab84
- display=page
- pli=1
- client_id=***.apps.googleusercontent.com
- authuser=2
- hl=en

 Any ideas on what is causing this?

 On Wednesday, July 31, 2013 2:54:53 AM UTC-7, Danial Klimkin wrote:

 Hello,


 What is the type of the client you use? For Web application type you 
 need to explicitly list allowed redirect URLs in the API console.

 From your request it looks like you need an offline (standalone) 
 application type.


 -Danial, AdWords API Team.


 On Tuesday, July 30, 2013 12:17:18 AM UTC+4, connor@room77.comwrote:

 I am currently trying to access the monthly search volume of a given 
 keyword. To do this, I need to generate a refresh token using 
 generate_refresh_token. The URL it gives me to access the verification 
 code 
 is broken, returning the error: redirect_uri_mismatch. It states: The 
 redirect URI in the request: urn:ietf:wg:oauth:2.0:oob did not match a 
 registered redirect URI.

 The details are:


- cookie_policy_enforce=false
- scope=https://adwords.google.com/api/adwords
- response_type=code
- access_type=online
- redirect_uri=urn:ietf:wg:oauth:2.0:oob
- display=page
- client_id=230466429510.apps.googleusercontent.com


 The URL it gives me is: 
 https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fadwords.google.com%2Fapi%2Fadwordsredirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoobresponse_type=codeclient_id=230466429510.apps.googleusercontent.comaccess_type=offline

 Is there any way to fix this, or generate a token another way?

 Thank you



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
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: Experiments (ACE) for adcopies: 'get' method doesn't seem to work for ExperimentDeltaStatus and ExperimentDataStatus

2013-08-01 Thread David Torres (AdWords API Team)
Hi Francesco,

Sorry for the delay, I'm investigating this issue, please bear with me for 
a bit more.

Best,

- David

On Monday, July 22, 2013 9:12:36 AM UTC-4, Francesco Della Vedova wrote:

 *** Outgoing SOAP **
 ?xml version='1.0' encoding='UTF-8'?
 ns0:Envelope xmlns:ns0=http://schemas.xmlsoap.org/soap/envelope/; 
 xmlns:ns1=https://adwords.google.com/api/adwords/cm/v201302; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance; ns0:encodingStyle=
 http://schemas.xmlsoap.org/soap/encoding/;
  ns0:Header
 .
  ns0:Body
   ns1:get
ns1:serviceSelector xsi:type=cm:Selector
 ns1:fieldsId/ns1:fields
 ns1:fieldsAdGroupId/ns1:fields
 ns1:fieldsHeadline/ns1:fields
 ns1:fieldsDescription1/ns1:fields
 ns1:fieldsDescription2/ns1:fields
 ns1:fieldsDisplayUrl/ns1:fields
 ns1:fieldsUrl/ns1:fields
 ns1:fieldsExperimentDeltaStatus/ns1:fields
 ns1:predicates xsi:type=cm:Predicate
  ns1:fieldAdGroupId/ns1:field
  ns1:operatorIN/ns1:operator
  ns1:values11350788328/ns1:values
 /ns1:predicates
 ns1:predicates xsi:type=cm:Predicate
  ns1:fieldStatus/ns1:field
  ns1:operatorIN/ns1:operator
  ns1:valuesENABLED/ns1:values
  ns1:valuesPAUSED/ns1:values
 /ns1:predicates
 ns1:paging xsi:type=cm:Paging
  ns1:startIndex0/ns1:startIndex
  ns1:numberResults5000/ns1:numberResults
 /ns1:paging
/ns1:serviceSelector
   /ns1:get
  /ns0:Body
 /ns0:Envelope
 
 *** Incoming HTTP headers **
 HTTP/1.? 200 OK
 Content-Type: text/xml; charset=UTF-8
 Content-Encoding: gzip
 Date: Mon, 22 Jul 2013 10:40:13 GMT
 Expires: Mon, 22 Jul 2013 10:40:13 GMT
 Cache-Control: private, max-age=0
 X-Content-Type-Options: nosniff
 X-Frame-Options: SAMEORIGIN
 X-XSS-Protection: 1; mode=block
 Server: GSE
 
 *** Incoming SOAP **
 ?xml version='1.0' encoding='UTF-8'?
 ns0:Envelope xmlns:ns0=http://schemas.xmlsoap.org/soap/envelope/; 
 xmlns:ns1=https://adwords.google.com/api/adwords/cm/v201302; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance;
  ns0:Header
   ns1:ResponseHeader
ns1:requestId0004e2174d1af4a00ae5688940f3/ns1:requestId
ns1:serviceNameAdGroupAdService/ns1:serviceName
ns1:methodNameget/ns1:methodName
ns1:operations1/ns1:operations
ns1:responseTime766/ns1:responseTime
ns1:units0/ns1:units
   /ns1:ResponseHeader
  /ns0:Header
  ns0:Body
   ns1:getResponse
ns1:rval
 ns1:totalNumEntries660/ns1:totalNumEntries
 ns1:Page.TypeAdGroupAdPage/ns1:Page.Type
  ns1:adGroupId11350788328/ns1:adGroupId
  ns1:ad xsi:type=TextAd
   ns1:id42267946288/ns1:id
   ns1:urlhttp://www.wimdu.se/?v=2/ns1:url
   ns1:displayUrlwww.Wimdu.se/London_hostels/ns1:displayUrl
   ns1:Ad.TypeTextAd/ns1:Ad.Type
   ns1:headlineLondon prisvärda hostels/ns1:headline
   ns1:description1Book hostels från 160 kr/n/ns1:description1
   ns1:description2Enkelt och säkert online bokning/ns1:description2
  /ns1:ad
  ns1:statusENABLED/ns1:status
  ns1:approvalStatusFAMILY_SAFE/ns1:approvalStatus
  ns1:trademarkDisapprovedfalse/ns1:trademarkDisapproved
  ns1:stats
   ns1:networkSEARCH/ns1:network
   ns1:Stats.TypeAdStats/ns1:Stats.Type
   ns1:percentServed0.0/ns1:percentServed
  /ns1:stats
 /ns1:entries
 ns1:entries
  ns1:adGroupId11350788328/ns1:adGroupId
  ns1:ad xsi:type=TextAd
   ns1:id42267946408/ns1:id
   ns1:urlhttp://www.wimdu.se/?v=2/ns1:url
   ns1:displayUrlwww.Wimdu.se/London_hostels/ns1:displayUrl
   ns1:Ad.TypeTextAd/ns1:Ad.Type
   ns1:headlineLondon prisvärda hostels/ns1:headline
   ns1:description1Boka kort resa till London/ns1:description1
   ns1:description2Wimdu™ Helt enkelt bättre än 
 hotell/ns1:description2
  /ns1:ad
  ns1:statusENABLED/ns1:status
  ns1:approvalStatusFAMILY_SAFE/ns1:approvalStatus
  ns1:trademarkDisapprovedfalse/ns1:trademarkDisapproved
  ns1:stats
   ns1:networkSEARCH/ns1:network
   ns1:Stats.TypeAdStats/ns1:Stats.Type
   ns1:percentServed0.0/ns1:percentServed
  /ns1:stats
 /ns1:entries
/ns1:rval
   /ns1:getResponse
  /ns0:Body
 /ns0:Envelope
 
 EndTime: 2013-07-22 12:40:14

 On Friday, 19 July 2013 17:02:40 UTC+2, David Torres (AdWords API Team) 
 wrote:

 Hi Francesco,

 Could you please post a sanitized sample of your SOAP logs? or just the 
 requestId will suffice.

 Best,

 - David Torres - AdWords API Team

 On Tuesday, July 16, 2013 11:38:01 AM UTC-4, Francesco Della Vedova wrote:

 hello,
 i'm trying to set up my application to run experiments. After setting up 
 the experiment at campaign 

Re: More questions about PLACEHOLDER_FEED_ITEM_REPORT

2013-08-01 Thread David Torres (AdWords API Team)
Hi Zweitze,

Please find my responses inline.

Best,

- David Torres - AdWords API Team


On Monday, July 29, 2013 12:15:37 PM UTC-4, Zweitze wrote:

 Hello,

 I'm somewhat underwhelmed by the docs on PLACEHOLDER_FEED_ITEM_REPORT. So 
 please help me on this subject:


I'm sorry to hear that, please do share with us how would you improve these 
docs. I'll certainly try to work with my team to improve them if needed.
 


 1. Does field PlaceholderType denote the type of the ad extension, with 1 
 for site links and 2 for Call extensions? What are the values of the other 
 six ad extension types?


Yes, it does represents the ad extension type. Feeds only support 
sitelinks, app and call extension at the moment. Other extension types will 
still be reported in the AD_EXTENSIONS_PERFORMANCE_REPORT. See the lists of 
available placeholder types and ID in this appendix. Keep in mind 
that PlaceholderType field is a segment type of field, it comes from the 
mapping of an item to a campaign, therefore you can't use it for structural 
reports.

 

 2. Field AttributeValues appears to contain the attributes of the ad 
 extension.
 2a. Are the values indeed separated by a semicolon and a space (; , 
 without the double quotes)? What happens when a value contains the same 
 character sequence?


There is currently a bug about properly escaping this separator, I 
recommend you using the FeedItemService instead to the feed item structural 
data at this moment.
 

 2b. For site link extensions the field AttributeValues appears to contain 
 site link text; site link url, for call extensions the field appears 
 to contain telephone number; country; true; false; -1. What are the 
 meanings of the last three sub fields? What happens with site links of 
 three lines, which are in beta? What about the remaining ad extension types?


As I said, please do not rely on this AttributeValues and its format at the 
moment.
 

 3. Ad extensions can be linked to campaigns or ad groups. How can you 
 whether a certain ad extension is a campaign-level extension or 
 adgroup-level extension? Note: I thought that a campaign ad extension would 
 report empty ad groups in the field AdGroupName. This appears to be not the 
 case, when you include AdGroupName in the report, this field is repeated 
 for every ad group in the campaign.


Campaign[Id|Name], AdGroup[Id|Name] are segment type of fields in this 
report. You'll get always an ad group and a campaign in a row that has 
gotten impressions.
 


 4. How can I get ad extensions which have 0 impressions? Parameter 
 IncludeZeroImpressions appears not to work. I use the following fields: 
 AttributeValues-Campaign-Impressions-PlaceholderType. Maybe one of those 
 fields prevents zero impression results?


If you use only FeedId, FeeditemId, AttributeValues, Status then you'll get 
zero impression rows.
 


 5. Why must I include at least one result field? In the above 
 definition, if you leave out Impressions you get no results at all!


When you include segment field like the campaign then you must accompany 
the definition with a metric or you would get no rows.
 


 Thanks in advance!


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

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




CURL http code 0

2013-08-01 Thread Luis M . Castañeda


I wrote a PHP code that runs smoothly, now I am trying to make it run 
periodically using a Cron Job.

Problem is that I get an http code 0 from the CURL instead of 200.

Any idea why? I already tried timeout and connectimeout but did not fix it.

Here is the code:

 

$params = array(

'Email' = $email,

'Passwd' = $password,

'accountType' = 'GOOGLE',

'service' = 'adwords',

'source' = 'AdWords API PHP Code');

 

   $url = 'https://www.google.com/accounts/ClientLogin';

 

// Make request

$ch = curl_init($url);

curl_setopt($ch, CURLOPT_POSTFIELDS, $params);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

$response = curl_exec($ch);

$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);

curl_close($ch);

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

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