node-adwords
node-adwords copied to clipboard
Can add NetworkSearchParameter on TargetIdeaService
Hello Chris,
Does your TargetIdeaService can add NetWorkSearchParameter?
Thanks!
Best Regards, maran
I have tried this: 'xsi:type': 'NetworkSearchParameter', networkSetting: [{'targetGoogleSearch': true}, {'targetSearchNetwork': false}, {'targetContentNetwork': false}, {'targetPartnerSearchNetwork': false} ]
but it will get an error: "faultstring": "Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'targetGoogleSearch'. One of '{"https://adwords.google.com/api/adwords/cm/v201710":targetGoogleSearch, "https://adwords.google.com/api/adwords/cm/v201710":targetSearchNetwork, "https://adwords.google.com/api/adwords/cm/v201710":targetContentNetwork, "https://adwords.google.com/api/adwords/cm/v201710":targetPartnerSearchNetwork}' is expected."
You need to make sure your keys are in the order of the documentation, see: https://github.com/ChrisAlvares/node-adwords#ordering
{
'xsi:type': 'NetworkSearchParameter',
networkSetting: {
'cm:targetGoogleSearch': true,
'cm:targetSearchNetwork': false,
'cm:targetContentNetwork': false,
'cm:targetPartnerSearchNetwork': false
}
},