Im trying to update campaign budgets using the rest api. This has been working successfully for other operations, such as updating the campaign status, name, etc..
I'll provide a few examples here of the types of "payloads" I have been using. *1. Updating campaign status (that one works fine):* *{* * operations: [{* * updateMask: 'status',* * update: {* * resourceName: `customers/${user.customer_id}/campaigns/${campaignId}`,* * status,* * },* * }, ],* *};* *2. Updating campaign budget (that one does not work)* *{* * operations: [{* * updateMask: 'amountMicros',* * update: {* * resourceName: `customers/${customer_id}/campaignBudgets/${budget_id}`,* * amountMicros: '700000000',* * },* * }, ],* *};* *3. For more context, I will share a sample response when fetching this data:* *[{ results: [{ campaign: { resourceName: 'customers/XXXXX-XXXXXX/campaigns/XXXXX-XXXXXX', status: 'ENABLED', name: 'XXXXX-XXXXXX', id: 'XXXXX-XXXXXX', }, metrics: { clicks: '0', conversions: 0, costMicros: '0', impressions: '0', }, campaignBudget: { resourceName: 'customers/XXXXX-XXXXXX/campaignBudgets/XXXXX-XXXXXX', amountMicros: '700000000', }, }, ], fieldMask: 'campaign.id,campaign.name,campaign.status,campaignBudget.amountMicros,metrics.impressions,metrics.clicks,metrics.ctr,metrics.averageCpc,metrics.conversions,metrics.costMicros,metrics.averageCpc',}, ];* As you can see I have been trying to make the update/mutate requests while following the data shape seen in figure 3 - but with no success. Would appreciate if someone can share a solution or a code sample for this one, Cheers -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/870ead23-d9c8-4f78-903c-a37a29e417b2n%40googlegroups.com.