niurmiguel / google-admanager-api Goto Github PK
View Code? Open in Web Editor NEWGoogle Ad Manager API Client Library for NodeJs.
License: MIT License
Google Ad Manager API Client Library for NodeJs.
License: MIT License
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>
Hi @Niurmiguel! Great job!
Can you give me an example of how I can delete an order?
I read your code, but I don't understand how to pass the "DeleteOrders" class to the method: "performOrderAction".
`
const orderService = await adManagerClient.getService('OrderService');
try {
const statement = new StatementBuilder().where('id = 3152946191');
const res = await orderService.performOrderAction(
/* what do i put here? */,
statement.toStatement()
);
console.log(res);
} catch (error) {
console.error(error.message);
}
`
Thanks!
i want to fetch subdomain data report using Dimesion.SITE_NAME
as per described in google admanager api official docs, but its missing.
I get this error:
code: 500,
name: 'ApiVersionError',
message: "[ApiVersionError.UPDATE_TO_NEWER_VERSION @ version; trigger:'Version v202202 was deprecated and is now disabled. Please check the DoubleClick for Publishers blog for more information or contact us via the support forum.']",
details: {
ApiExceptionFault: {
message: "[ApiVersionError.UPDATE_TO_NEWER_VERSION @ version; trigger:'Version v202202 was deprecated and is now disabled. Please check the DoubleClick for Publishers blog for more information or contact us via the support forum.']",
errors: [Object]
}
}
}
is there any plans to update this library?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.