Re: LanguageSearchParameter

2016-09-29 Thread qsd QDS

Thanks Vishal, problem solve.

If anyone have the same problem check this issue 
 on github.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/146c1f25-b635-4977-800c-a86b9c639bd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


LanguageSearchParameter

2016-09-28 Thread qsd QDS
Hi,

I'm trying to implement the TargetingIdeaService, since I'm using NodeJS 
and there is no official client I went with node-adwords 
.
I can't seems to figure out how to properly add a LanguageSearchParameter, 
it always return this error:

Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found 
starting with element \'language\'. One of 
\'{"https://adwords.google.com/api/adwords/cm/v201607":id, 
"https://adwords.google.com/api/adwords/cm/v201607":type, 
"https://adwords.google.com/api/adwords/cm/v201607":Criterion.Type, 
"https://adwords.google.com/api/adwords/cm/v201607":code, 
"https://adwords.google.com/api/adwords/cm/v201607":name}\' is expected. 

My selector looks like this:

let selector = {
  searchParameters: [
{
  attributes: {'xsi:type': 'RelatedToQuerySearchParameter'},
  queries: ['test']
},
{
  attributes: {'xsi:type': 'LanguageSearchParameter'},
  languages: [{id: 1000}]
}
  ],
  ideaType: 'KEYWORD',
  requestType: 'IDEAS',
  requestedAttributeTypes: ['KEYWORD_TEXT'],
  paging: {startIndex: 0, numberResults: 
AdwordsConstants.RECOMMENDED_PAGE_SIZE},
}


And the full request sent:

http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:tns="https://adwords.google.com/api/adwords/o/v201607"; 
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"; 
xmlns:cm="https://adwords.google.com/api/adwords/cm/v201607";>

https://adwords.google.com/api/adwords/o/v201607"; 
xmlns="https://adwords.google.com/api/adwords/o/v201607";>
***
node-adwords
false
***



https://adwords.google.com/api/adwords/o/v201607";>


test



1000


KEYWORD
IDEAS

KEYWORD_TEXT

https://adwords.google.com/api/adwords/cm/v201607";>0
https://adwords.google.com/api/adwords/cm/v201607";>500






I try sending the same request with both the official PHP and Python client 
and the requests are identical. What am I missing?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0fea17d2-ec88-4355-8a1c-2cb5ae0dd029%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.