बल्क म्यूट

अगर आपको एक ही समय में अलग-अलग तरह की इकाइयों पर काम करना है या अलग एंडपॉइंट का इस्तेमाल करने के बजाय, एक एंडपॉइंट से लिखना पसंद है किया जा सकता है, तो आप GoogleAdsService.Mutate एंडपॉइंट का इस्तेमाल करें.

बदलाव की कार्रवाइयां

हर MutateGoogleAdsRequest दोहराए जाने वाले MutateOperation को स्वीकार करता है, जिनमें से हर एक इसमें, एक तरह के संसाधन के लिए सिर्फ़ एक कार्रवाई शामिल हो सकती है. इसे बनाने के लिए अभियान और एक विज्ञापन समूह में GoogleAdsService.Mutate कॉल, आपको दो MutateOperation बनाने होंगे इकाइयां (CampaignOperation के लिए एक, दूसरा AdGroupOperation) और फिर दोनों को 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])

दूसरी सेवाओं की तरह, यह एंडपॉइंट भी काम करता है पार्शियल फ़ेलियर और सिर्फ़ पुष्टि करने के लिए.