prebid / line-item-manager

Prebid Line Item Management Tool
Other
30 stars 17 forks source link

Service account not working with version 0.2.13 #163

Open webmarcus opened 1 month ago

webmarcus commented 1 month ago

Description: I encountered an issue with line_item_manager when trying to authenticate using a service account after downloading version 0.2.13. The following command fails with an authentication error related to accessing the service account:

line_item_manager create my_config.yml \ --dry-run \ --verbose \ --private-key-file gam_creds.json \ --skip-auto-archive \ --bidder-code rubicon \ --bidder-code ix

Error Message:

Error: Check your network code and permissions. Not able to successfully access your service account.

I verified that the service account is correctly set up, and authentication works when tested separately through a Python script. However, the issue persists when using line_item_manager v0.2.13. I downgraded to version 0.2.12, and everything works as expected. It appears that the issue is introduced in v0.2.13, possibly due to the upgrade to Google Ad Manager API v202408 or other changes made in this version.

Steps to reproduce:

Download line_item_manager v0.2.13. Attempt to create line items using a service account. Receive the service account authentication error. Workaround: Downgrading to v0.2.12 resolves the issue.

Could you please investigate this issue?

dshore commented 1 month ago

@webmarcus I am a bit confused as v0.2.12 should not run at all due to the GAM API being deprecated. I will not be able to reproduce what you are experiencing. Can you post config and output with multiple '-v' like this '-v -v' to increase verbosity?