Skip to main content

Module mapping

Module mapping 

Source
Expand description

Conversion between Google Ads API REST JSON and domain models.

All functions here are pure transformations with no I/O. GAQL result rows ({"campaign": {...}, "campaignBudget": {...}, "metrics": {...}}) map into the unified domain models from mkt-core.

Constants§

CAMPAIGN_GAQL_FIELDS
The GAQL field list for campaign queries.

Functions§

atomic_create_operations
Build the googleAds:mutate operation array creating a campaign budget and its campaign atomically.
campaign_id_from_atomic_mutate
Extract the numeric campaign ID from an atomic googleAds:mutate response.
campaign_resource_name
Build the campaign resource name customers/{cid}/campaigns/{id}.
campaign_update_operation
Build the campaigns:mutate update operation with its field mask.
domain_status_to_google
Map a domain status to the Google Ads status string.
escape_gaql_like
Escape a user-supplied value for use inside a GAQL LIKE pattern.
google_insights_to_domain
Convert a metrics GAQL search response into a domain InsightsReport.
google_row_to_campaign
Convert one GAQL search result row into a domain Campaign.
google_status_to_domain
Map a Google Ads campaign status string to a domain status.