Aynı anda farklı tüzel kişilikler üzerinde çalışmanız gerekiyorsa veya
ayrı bir uç nokta kullanmak yerine tek bir uç noktayla yazmayı tercih eder
her kaynak türüne göre ayrı olarak
GoogleAdsService.Mutate
uç noktanız vardır.
İşlemleri değiştirme
Her bir MutateGoogleAdsRequest
yinelenen MutateOperation öğelerini kabul eder
Bu değer, bir kaynak türü için tek bir işlem içerebilir. Oluşturmak için
tek bir kampanya ve bir reklam grubu içinde
GoogleAdsService.Mutate araması,
iki MutateOperation oluşturmanız gerekir
(CampaignOperation için bir tane,
diğeri AdGroupOperation için),
ve sonra her ikisini de
GoogleAdsService.
Ruby
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_operation
mutate_operation2.ad_group_operation = ad_group_operation
google_ads_service.mutate(customer_id, [mutate_operation1, mutate_operation2])
Diğer hizmetler gibi bu uç nokta da kısmi hata ve yalnızca doğrulama amaçlıdır.