kmjennison / dfp-prebid-setup

Automated line item generator for Prebid.js and Google Ad Manager
MIT License
120 stars 75 forks source link

GAM 360 issue #107

Closed pajica closed 3 years ago

pajica commented 3 years ago

HI The code works perfectly in Ad Manager (free version) but in Ad Manager 360 (Premium version) it doesn't work. I cannot get the list of orders Getting all orders... No additional orders found.

When I try to get the placements (python -m dfp.get_placements) I get some lines listed and at the end, No DFP placement found... (see attached screenshot 3-25-2021 1-29-20 PM ) What needs to be changed in code so I can make it work in a paid version of the DFP? thanks Pajica

kmjennison commented 3 years ago

Can you confirm the placement with name "Run of Site" exists?

pajica commented 3 years ago

Yes. The same I'm getting for advertiser which exists also in DFP.

On 3/25/2021 1:40 PM, Kevin Jennison wrote:

Can you confirm the placement with name "Run of Site" exists?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kmjennison/dfp-prebid-setup/issues/107#issuecomment-807445808, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATIBMEN7JTMP37EDKJOQM4LTFONTBANCNFSM4Z2CTAEA.

pajica commented 3 years ago

3-25-2021 1-51-43 PM 3-25-2021 1-44-45 PM

kmjennison commented 3 years ago

Interesting. Could you also double check that your user / service account has administrator access? You could double-check by calling the GAM API manually to list placements or orders.

I don't use GAM 360 at the moment, and the integration tests on this code run against a free GAM account, so I'm unsure if it's a problem with this library or not.

pajica commented 3 years ago

When I call orders with python -m dfp.get_orders this is what I get image

pajica commented 3 years ago

and there are at least a 100 orders

kmjennison commented 3 years ago

In that case, it seems possible the user doesn't have access or it's hitting the wrong GAM account.

pajica commented 3 years ago

I have created the same user on all premium and free accounts. On all free accounts it works like a charm but on premium the same issue everywhere. I tried a couple of accounts.

pajica commented 3 years ago

Is there any script that I can check if the connection is working?

kmjennison commented 3 years ago

You could try the googleads Python library directly.

pajica commented 3 years ago

Just to let you know that it is working on premium Ad Manager 360 as well. The connection was the problem. When I created a service account, I forgot to select All Teams. When I did it, the program start working.

thank you so much.