TargetingIdeaService NetworkSetting XML Error

15 views
Skip to first unread message

jal...@roirevolution.com

unread,
Dec 10, 2020, 4:09:15 PM12/10/20
to AdWords API and Google Ads API Forum
Hello,

We are having trouble making a request to the TargetingIdeaService using the 'NetworkSearchParameter' using the 'networkSetting' option. 

Here's the error indicating that we have the incorrect value for 'targetGoogleSearch' even though it's specified as a boolean in the reference docs:

Here's the selector we are using in the request:


Can anyone clarify what's going wrong here?

Thanks!
Jared Allen

jal...@roirevolution.com

unread,
Dec 10, 2020, 4:28:43 PM12/10/20
to AdWords API and Google Ads API Forum
Looks like my screenshots aren't being shown in my message above.

Here's the raw text of the error:

Error: soap:Client: Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found starting with element '{"https://adwords.google.com/api/adwords/o/v201809":targetGoogleSearch}'. One of '{"https://adwords.google.com/api/adwords/cm/v201809":targetGoogleSearch, "https://adwords.google.com/api/adwords/cm/v201809":targetSearchNetwork, "https://adwords.google.com/api/adwords/cm/v201809":targetContentNetwork, "https://adwords.google.com/api/adwords/cm/v201809":targetPartnerSearchNetwork}' is expected.



And here's the selector we're using in our request:

const selector = {
  searchParameters: [{
      'xsi:type': 'RelatedToQuerySearchParameter',
      queries: ['coffee']
    },
    {
      'xsi:type': 'NetworkSearchParameter',
      networkSetting: {
         targetGoogleSearch: true
      }
    },
  ],
  ideaType: 'KEYWORD',
  requestType: 'STATS',
  requestedAttributeTypes: ['SEARCH_VOLUME', 'KEYWORD_TEXT'],
  paging: {
    numberResults: 10
  },
  localeCode: 'en_US'
}

Google Ads API Forum Advisor Prod

unread,
Dec 14, 2020, 3:44:48 PM12/14/20
to jal...@roirevolution.com, adwor...@googlegroups.com

Hi Jared,

Thank you for reaching out. If you elect to configure the NetworkSearchParameter, then please add in all the four networkSettings, which means also provide the configurations for the targetSearchNetwork, targetContentNetwork and targetPartnerSearchNetwork as described in this example.

Thanks and regards,
Xiaoming, Google Ads API Team
 

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q28p81M:ref
Reply all
Reply to author
Forward
0 new messages