GAQL Builder

Generating GAQL (Google Ads Query Language) tool, this is not official library. If you want to build GAQL string much easier, you can use this tool, but it would not be validated entirely for all of posible combinations.
Please follow the building rule via official documentation.
Requirements
- Python 2.7.13+ / 3.5.3+
- pip
Installation
$ pip3 install gaql-builder
Project Structure
.
├── gaql_builder/ # Core folder
│ ├── __init__.py
│ └── main.py # Core library code
├── tests/ # Test cases
├── .travis.yml # CI configuration
├── setup.py # Setup script
├── setup.cfg # Setup configuration
├── __init__.py # Root init
├── requirements.txt # Install packages text file
└── README.md # Read-me file
Usage
If you want to generate the following query string,
SELECT
campaign.id,
campaign.name
FROM
campaign
WHERE
campaign.resource_name = 'customers/1234567/campaigns/987654'
you can use functional call to make it out.
builder = GAQLBuilder()
builder.select(['campaign.id', 'campaign.name'])
builder.resource_from('campaign')
builder.where("campaign.resource_name = 'customers/1234567/campaigns/987654'")
builder.to_string()
also, you can use add_where function to add condition.
builder = GAQLBuilder()
builder.select(['campaign.id', 'campaign.name'])
builder.resource_from('campaign')
builder.add_where(
field='campaign.resource_name',
operator='=',
value="'customers/1234567/campaigns/987654'"
)
License
Metadata
Release files for gaql-builder 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gaql_builder-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / gaql_builder-1.0.2-py3-none-any.whl
| Download URL | gaql_builder-1.0.2-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd96e6fe753f87ac99979e10b4876b8bf6114cdebe31cc3180a01b814a2283fc
|
|
BLAKE2b-256 checksum How to use checksums |
a93f0780fc08cd87691760ef0eb655f5b6f0f2dced5518106ddb2bbb1df5168e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.6
|
Security for gaql-builder 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.