Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ManagedCustomerService always returns RequiredError.REQUIRED @ serviceSelector #105

Open
imgnx opened this issue Feb 20, 2020 · 3 comments

Comments

@imgnx
Copy link

imgnx commented Feb 20, 2020

I've tried to create the serviceSelector, but every time I make a call to get Managed Customers from the API, I always get this error:

soap:Server: [RequiredError.REQUIRED @ serviceSelector]: [object Object]

Is it possible to get a list of accounts that are managed from an MCC account?

@Jared-Dahlke
Copy link

Jared-Dahlke commented Mar 6, 2020

@ChrisAlvares ```
I believe I am having this same issue ``<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">soap:Bodysoap:Faultsoap:ClientUnmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found starting with element '{"https://adwords.google.com/api/adwords/cm/v201809":query}'. One of '{"https://adwords.google.com/api/adwords/cm/v201809":serviceSelector}' is expected. </soap:Fault></soap:Body></soap:Envelope>}, body:<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">soap:Bodysoap:Faultsoap:ClientUnmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found starting with element '{"https://adwords.google.com/api/adwords/cm/v201809":query}'. One of '{"https://adwords.google.com/api/adwords/cm/v201809":serviceSelector}' is expected. </soap:Fault></soap:Body></soap:Envelope>`
}

`

@schaeferCode
Copy link

@ChrisAlvares I'm bumping this issue. I'm also running into the same error. Looks like serviceSelector is referring to the parameter that ought to be passed in with the get() method, https://developers.google.com/adwords/api/docs/reference/v201809/ManagedCustomerService#parameters. I've tried passing many different selector fields but nothing seems to make this error any different.

@schaeferCode
Copy link

Okay, I literally just saw something in the documentation that I somehow missed before. The answer is that you must pass an object with the key as serviceSelector and the value your selector object as the first parameter of the get() method in managedCustomerService. It's in this repo's FIRST example code in the readme. No idea how I missed that before.

Based on this, I think this issue can be closed. If anyone needs it, I can post a code example (although my code is trashy right now since I'm still in spike mode).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants