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:mutateoperation array creating a campaign budget and its campaign atomically. - campaign_
id_ from_ atomic_ mutate - Extract the numeric campaign ID from an atomic
googleAds:mutateresponse. - campaign_
resource_ name - Build the campaign resource name
customers/{cid}/campaigns/{id}. - campaign_
update_ operation - Build the
campaigns:mutateupdate 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
LIKEpattern. - 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.