We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
client.getService('InventoryService').createAdUnits
I noticed that the create ad units function keeps throwing an invalid content error. Why? Due to XML formatting of Arrays
Solution
To update the XML properties when submitting an array.
Currently, it looks as follows:
<soap:Body><createAdUnits xmlns="https://www.google.com/apis/ads/publisher/v202305"><adUnits><name>test-ad-unit-test</name><parentId>XXXX</parentId></adUnits></createAdUnits></soap:Body>
It should look like this instead:
<soap-env:Body> <ns0:createAdUnits xmlns:ns0="https://www.google.com/apis/ads/publisher/v202305"> <ns0:adUnits> <ns0:parentId>${AD_MANAGER_PARENT_ID}</ns0:parentId> <ns0:name>${url}</ns0:name> <ns0:adUnitCode>${url}</ns0:adUnitCode> </ns0:adUnits> </ns0:createAdUnits> </soap-env:Body>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I noticed that the create ad units function keeps throwing an invalid content error. Why? Due to XML formatting of Arrays
Solution
To update the XML properties when submitting an array.
Currently, it looks as follows:
It should look like this instead:
The text was updated successfully, but these errors were encountered: