-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
help wanted[Community] Extra attention is needed[Community] Extra attention is needed
Description
We'd like to use the GoogleApiToolset
for Google Ads integrations but we need to add an extra header to each request:
import os
from google.adk.tools.google_api_tool import GoogleApiToolset
google_ads_toolset = GoogleApiToolset(
client_id=os.environ["CLIENT_ID"],
client_secret=os.environ["CLIENT_SECRET"],
api_name="googleads",
api_version="v21",
# additional_headers={"developer-token": "<YOUR_DEV_TOKEN>"}
)
Something like additional_headers
that would pass down into the HTTP request object.
Additional Headers: https://developers.google.com/google-ads/api/rest/auth#developer_token
Example API Endpoint: https://developers.google.com/google-ads/api/reference/rpc/v21/GoogleAdsService/SearchStream?transport=rest
Happy to help: coconate@google.com
Metadata
Metadata
Assignees
Labels
help wanted[Community] Extra attention is needed[Community] Extra attention is needed