Skip to main content

Garf implementation for Google Bid Manager API

Project description

garf for Bid Manager API

PyPI Downloads PyPI

garf-bid-manager simplifies fetching data from Bid Manager API using SQL-like queries.

Prerequisites

Installation

pip install garf-bid-manager

Usage

Run as a library

from garf.community.google.bid_manager import BidManagerApiReportFetcher
from garf.io import writer

# Fetch report
query = """
  SELECT
    advertiser_name,
    metric_clicks AS clicks
  FROM standard
  WHERE advertiser = 1
    AND dataRange IN (2025-01-01, 2025-12-31)
"""
fetched_report = BidManagerApiReportFetcher() .fetch(query, query=query)

# Write report to console
console_writer = writer.create_writer('console')
console_writer.write(fetched_report, 'output')

Run via CLI

Install garf-executors package to run queries via CLI (pip install garf-executors).

garf <PATH_TO_QUERIES> --source bid-manager \
  --output <OUTPUT_TYPE> \
  --source.<SOURCE_PARAMETER=VALUE>

where:

  • <PATH_TO_QUERIES> - local or remove files containing queries
  • <OUTPUT_TYPE> - output supported by garf-io library.
  • <SOURCE_PARAMETER=VALUE - key-value pairs to refine fetching, check available source parameters.

Available source parameters

name values comments
credentials_file File with Oauth or service account credentials You can expose credentials_file as GARF_BID_MANAGER_CREDENTIALS_FILE ENV variable
auth_mode Type of authentication: oauth or service_account oauth is the default mode

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

garf_bid_manager-1.0.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

garf_bid_manager-1.0.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file garf_bid_manager-1.0.0.tar.gz.

File metadata

  • Download URL: garf_bid_manager-1.0.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for garf_bid_manager-1.0.0.tar.gz
Algorithm Hash digest
SHA256 208927b89b2c0f97ec6fc62086d0ba63d7ab18c6683c526f9ed42a75bde01c81
MD5 d43c91fef40de0079cd37ecbe5067359
BLAKE2b-256 91914e3a6e6c2950a82daa9c7333b042df953329cb6b9f6e491134a19611dce8

See more details on using hashes here.

File details

Details for the file garf_bid_manager-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: garf_bid_manager-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for garf_bid_manager-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d22a84ee0349fea3ec9ea5fe81b485f7c571b0a920259f6c343d10d344d91e2
MD5 1c276b7af714e109276c3c171914bbef
BLAKE2b-256 aa8543acdfa086134869060abc6f720d86a4f49785083492497a2334657a4d16

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page