I found the solutions. Here's an updated SOAP envelope with proper data: <?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201502" xmlns:wsdl="https://adwords.google.com/api/adwords/o/v201502" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <env:Header> <wsdl:RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/v201502"> <userAgent>rails (AwApi-Ruby/0.15.1, Common-Ruby/0.9.9, Savon/1.2.0, ruby/2.2.1, HTTPI/1.1.1, httpclient)</userAgent> <developerToken>jCLu294Z5m4eHhCOYg_Pdw</developerToken> <clientCustomerId>569-924-6202</clientCustomerId> </wsdl:RequestHeader> </env:Header> <env:Body> <get xmlns="https://adwords.google.com/api/adwords/o/v201502"> <selector> <searchParameters xsi:type="RelatedToQuerySearchParameter"> <queries>car insurance logan utah</queries> <queries>logan utah insurance</queries> <queries>logan insurance</queries> <queries>insurance logan utah</queries> <queries>insurance logan</queries> <queries>logan ut insurance</queries> <queries>north logan ut insurance</queries> <queries>car insurance logan</queries> <queries>car insurance logan ut</queries> <queries>insurance logan ut</queries> <queries>logan car insurance</queries> <queries>nibley insurance</queries> </searchParameters> <searchParameters xsi:type="LanguageSearchParameter"> <languages> <ns0:id>1000</ns0:id> </languages> </searchParameters> <searchParameters xsi:type="LocationSearchParameter"> <locations> <ns0:id>21177</ns0:id> </locations> </searchParameters> <searchParameters xsi:type="NetworkSearchParameter"> <networkSetting> <ns0:targetGoogleSearch>true</ns0:targetGoogleSearch> <ns0:targetSearchNetwork>false</ns0:targetSearchNetwork> <ns0:targetContentNetwork>false</ns0:targetContentNetwork> </networkSetting> </searchParameters> <searchParameters xsi:type="ExcludedKeywordSearchParameter"> <keywords> <ns0:text>uk</ns0:text> <ns0:matchType>BROAD</ns0:matchType> </keywords> <keywords> <ns0:text>canada</ns0:text> <ns0:matchType>BROAD</ns0:matchType> </keywords> </searchParameters> <ideaType>KEYWORD</ideaType> <requestType>STATS</requestType> <requestedAttributeTypes>KEYWORD_TEXT</requestedAttributeTypes> <requestedAttributeTypes>SEARCH_VOLUME</requestedAttributeTypes> <requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</requestedAttributeTypes> <requestedAttributeTypes>COMPETITION</requestedAttributeTypes> <requestedAttributeTypes>AVERAGE_CPC</requestedAttributeTypes> <paging> <ns0:startIndex>0</ns0:startIndex> <ns0:numberResults>100</ns0:numberResults> </paging> </selector> </get> </env:Body> </env:Envelope>
On Friday, June 26, 2015 at 10:58:18 AM UTC-6, Eric Berry wrote: > > I am really struggling with the Adwords API, primarly b/c I don't fully > understand the documentation and how it translates into the ruby library > that I'm using (https://github.com/googleads/google-api-ads-ruby) > > I have a SOAP envelope that is working however I'm trying to get it to > filter for network and negative keywords. I attempted to put in the network > search parameters but it's not right. I also have no clue how to add > negative keywords. > > Please help! > > Here's my broken example: > > <?xml version="1.0" encoding="UTF-8"?> > <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201502" xmlns:wsdl=" > https://adwords.google.com/api/adwords/o/v201502" xmlns:xsd=" > http://www.w3.org/2001/XMLSchema" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance"> > <env:Header> > <wsdl:RequestHeader xmlns=" > https://adwords.google.com/api/adwords/cm/v201502"> > <userAgent>rails (AwApi-Ruby/0.15.1, Common-Ruby/0.9.9, Savon/1.2.0, > ruby/2.2.1, HTTPI/1.1.1, net_http)</userAgent> > <developerToken>jCLu294Z5m4eHhCOYg_Pdw</developerToken> > <clientCustomerId>569-924-6202</clientCustomerId> > </wsdl:RequestHeader> > </env:Header> > <env:Body> > <get xmlns="https://adwords.google.com/api/adwords/o/v201502"> > <selector> > <searchParameters xsi:type="RelatedToQuerySearchParameter"> > <queries>nibley insurance</queries> > <queries>north logan ut insurance</queries> > <queries>north logan ut insurance car</queries> > <queries>car insurance logan utah</queries> > </searchParameters> > <searchParameters xsi:type="LanguageSearchParameter"> > <languages> > <ns0:id>1000</ns0:id> > </languages> > </searchParameters> > <searchParameters xsi:type="LocationSearchParameter"> > <locations> > <ns0:id>21177</ns0:id> > </locations> > </searchParameters> > * <searchParameters xsi:type="NetworkSearchParameter">* > * <networkSetting>* > * <targetGoogleSearch>true</targetGoogleSearch>* > * <targetSearchNetwork>false</targetGoogleSearch>* > * <targetContentNetwork>false</targetGoogleSearch>* > * <targetPartnerSearchNetwork>false</targetGoogleSearch>* > * </networkSetting >* > * </searchParameters>* > <ideaType>KEYWORD</ideaType> > <requestType>STATS</requestType> > <requestedAttributeTypes>KEYWORD_TEXT</requestedAttributeTypes> > <requestedAttributeTypes>SEARCH_VOLUME</requestedAttributeTypes> > > <requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</requestedAttributeTypes> > <requestedAttributeTypes>COMPETITION</requestedAttributeTypes> > <requestedAttributeTypes>AVERAGE_CPC</requestedAttributeTypes> > > <requestedAttributeTypes>EXTRACTED_FROM_WEBPAGE</requestedAttributeTypes> > <paging> > <ns0:startIndex>0</ns0:startIndex> > <ns0:numberResults>1000</ns0:numberResults> > </paging> > </selector> > </get> > </env:Body> > </env: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/de2cf1c4-d940-46b6-96f9-f78d83215d77%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.