Stay organized with collections
Save and categorize content based on your preferences.
If you need to operate on different types of entities at the same time or
prefer to write against a single endpoint rather than using a separate endpoint
per resource type, then you can use the
GoogleAdsService.Mutate
endpoint for all supported mutate operations.
mutate_operation1=client.operation(:Mutate)mutate_operation2=client.operation(:Mutate)campaign_operation=client.operation(:Campaign)ad_group_operation=client.operation(:AdGroup)# Do some setup here to get campaign_operation and ad_group_operation into the# state you would want them for a regular mutate call to their respective# services.mutate_operation1.campaign_operation=campaign_operationmutate_operation2.ad_group_operation=ad_group_operationgoogle_ads_service.mutate(customer_id,[mutate_operation1,mutate_operation2])
Like other services, this endpoint supports
partial failure and
validate-only.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[[["Use the `GoogleAdsService.Mutate` endpoint to operate on different entity types or prefer a single endpoint."],["The `MutateGoogleAdsRequest` accepts multiple `MutateOperation` entities, each handling a single operation for one resource type."],["Construct separate `MutateOperation` objects for each desired operation, like creating a campaign and an ad group, and pass them to `GoogleAdsService`."],["This endpoint supports partial failure handling and validate-only requests, similar to other Google Ads API services."]]],[]]