Giter Club home page Giter Club logo

google-admanager-api's People

Contributors

bsq-panagiotis avatar niurmiguel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

google-admanager-api's Issues

Unable to create Ad unit `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>

How use OrderActions to delete an order?

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!

Missing Dimensions

i want to fetch subdomain data report using Dimesion.SITE_NAME as per described in google admanager api official docs, but its missing.

library not working as of today

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.