GithubHelp home page GithubHelp logo

Comments (4)

Ka6utack avatar Ka6utack commented on June 30, 2024

Thanks very much for ur work. Pulling adwords data is a quite Irritating thing, especially when in a smaller level, such as asset. This is a very tedious job. Your work is so awesome.
I think an issue is...

customer.report({
  entity: 'video',
  attributes: ['campaign.id', 'campaign.name', 'ad_group.id', 'ad_group.name', 'ad_group.status', 'video.id'],
  metrics: ['metrics.impressions', 'metrics.clicks', 'metrics.conversions'],
  segments: ['segments.date'],
  from_date: '2019-05-22',
  order_by: 'metrics.clicks',
  sort_order: 'desc',
  limit: 5,
}).then(data =>
  console.log(data)
).catch(err =>
  console.error(err)
)

This is normally executed code. Campaign id is correct, but adgroup id is different from what I see in backstage.
I'd like to see your reply and salute your work again.

from google-ads-api.

avermeil avatar avermeil commented on June 30, 2024

Hi @Ka6utack ! Thanks for the kind words :)

I'm not sure that I understand your question. Are you saying that the ad_group.id in the result rows doesn't match what you expect? Where are you seeing a different AdGroup ID?

from google-ads-api.

Ka6utack avatar Ka6utack commented on June 30, 2024

Hi @Ka6utack ! Thanks for the kind words :)

I'm not sure that I understand your question. Are you saying that the ad_group.id in the result rows doesn't match what you expect? Where are you seeing a different AdGroup ID?

Thanks for your reply.
When we were on adwords' asset page. its url looks like https://ads.google.com/aw/adassets?campaignId=**********&adGroupId=***********&ocid=*********&__c=**********&authuser=1&__u=********** these params are included in the url. the campaign id is same with the campaign.id field data pulled with your work. bt adgroup_id doesn't correspond to adGroupId in the url. where i hover on a video asset. the link displayed is like https://www.youtube.com/watch?v=DR2***Ut7zk. the video id is consistent with your video.id field. I think there's something wrong with it, or it could be something wrong with my parameters.
thx! man!

from google-ads-api.

avermeil avatar avermeil commented on June 30, 2024

I'm not sure why those wouldn't match... We only do very light parsing of results, so it's very unlikely that we would be mixing up the adgroups. It's more likely that the AdWords UI's URLs don't work in quite the way we expect. It's a complicated Angular app, after all.

Still, if you would like to confirm that the AdGroups we're returning in this library are correct, here are two things you could do:

  • Try using https://github.com/Opteo/google-ads-node to make the same GAQL query. That library does almost no parsing of results, so what you see is what you get. If the results (campaign-adgroup-video groups) are different to this library, then this library has a bug.
  • Try getting the adgroup name. That's easier to cross check in the AdWords UI than the adgroup ID.

from google-ads-api.

Related Issues (20)

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.