PPC Robot Developer Documentation

Contents:

  • Glossary
  • Overview of the Components and Packages
  • Developer Guidelines
  • Project Structure
  • How-to Guides
  • Tasks and their execution
  • Reporting Functions
  • External Service Connectors
    • Google Ads API (Beta) Adapter
      • Querying the Google Ads API (Beta)
    • AdWords adapter
    • Sklik Adapter
  • Output Module
  • Utility functions and types
  • Notifications
  • Database Models
  • Google OAuth2 Scopes
  • Kubernetes
  • Archive
PPC Robot Developer Documentation
  • External Service Connectors
  • Google Ads API (Beta) Adapter
  • View page source

Google Ads API (Beta) Adapter

Module ppc_robot_lib.google_ads provides a wrapper around the official google-ads library and allows downloading the data to a pandas.DataFrame. The API can be queried using the Google Ads Query Language.

The reporting system in the upcoming AdWords API is different from the system in AdWords API. You download attributes and metrics for individual resources, not from prepared reports. You can combine attributes from multiple resources in the query, but the metrics and segments are always related to the main resource specified in the FROM clause.

The complete list of resources and their attributes can be found in the official Google Ads API reference. The resources are divided into two categories: resources with metrics and resources without metrics.

You can also use Interactive GAQL Builder to build your queries.

The resource definitions can be updated using the following command:

ppc_robot google_ads_generate_resources --service-account-id <ID>

Replace the <ID> with ID of any Google Ads service account from the robots_service_accounts table. 1 is usually a good choice, because it is the first account that was used to log into PPC Robot.

Contents:

  • Querying the Google Ads API (Beta)
    • Query
    • DuringClause
    • LastNDaysRange
    • During
    • Condition
    • Op
    • OrderBy
    • Sort
    • Parameter
Previous Next

© Copyright 2017 - 2020, PPC Robot s.r.o.. Last updated on 2019-10-09 08:13:26.

Built with Sphinx using a theme provided by Read the Docs.