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

Updating customTargeting on lineitems return an googleads.errors.GoogleAdsServerFault: Unmarshalling Error: cvc-type.2: The type definition cannot be abstract for element ns0:children. error #288

Closed
lntho opened this issue Jun 1, 2018 · 3 comments
Assignees
Labels

Comments

@lntho
Copy link

lntho commented Jun 1, 2018

Hello! I am trying to update some customTargeting on a lineitem via the API and I'm running into an
error:

googleads.errors.GoogleAdsServerFault: Unmarshalling Error: cvc-type.2: The type definition cannot be abstract for element ns0:children.

Just to double check, I ran your example located here:

https://github.com/googleads/googleads-python-lib/blob/master/examples/dfp/v201805/line_item_service/target_custom_criteria.py

and I ran into the exact same error. I am running the latest version of officially released package 12.0.0

Thank you!

@grivescorbett
Copy link
Contributor

Hi, thanks for writing in!

This looks like a bug due to the switch to the new SOAP library. It's not looking through for new values to instantiate when it gets a soap type vs a dictionary.

I'm working on a fix right now, but I'd suggest trying zeep.helpers.serialize_object on the returned objects before you mutate them to update.

@grivescorbett
Copy link
Contributor

Update: I've found the problem and will try to bundle a fix with the upcoming AdWords release.

@grivescorbett
Copy link
Contributor

Resolved in 12.1.0

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

No branches or pull requests

2 participants