Thanks, would try it out. On Tuesday, June 14, 2022 at 12:00:36 AM UTC+5:30 adsapi wrote:
> Hi Shipra, > > Most probably, the budget was given a name before it was attached to a > campaign, like many of our samples do. In that case, the budget has its own > name. I tested a scenario in Google Ads Search with a budget name and > without a budget name and found this to be true. This works in v11 REST > Interface, you can try with a budget name, then without a budget name and > here's a recipe for an access token > <https://developers.google.com/google-ads/api/rest/auth#generating_new_access_tokens> > > : > > > curl -i --request POST > https://googleads.googleapis.com/v11/customers/<CID>/googleAds:mutate \ > --header "Content-Type: application/json" \ > --header "login-customer-id: <LCID>" \ > --header "developer-token: <DT>" \ > --header "Authorization: Bearer <AT>" \ > --data '{ > "mutateOperations": [ > { > "campaignBudgetOperation": { > "create": { > "resourceName": "customers/<CID>/campaignBudgets/-1", > "status": "ENABLED", > "deliveryMethod": "STANDARD", > "period": "DAILY", > "name": "testinjune14-456", > "type": "STANDARD", > "amountMicros": "50000000", > "explicitlyShared": false, > }, > > }, > > }, > { > "campaignOperation": { > "create": { > "status": "PAUSED", > "advertisingChannelType": "SEARCH", > "networkSettings": { > "targetGoogleSearch": true, > "targetSearchNetwork": true, > "targetContentNetwork": false, > "targetPartnerSearchNetwork": false > }, > "biddingStrategyType": "MANUAL_CPC", > "manualCpc": { > "enhancedCpcEnabled": true > }, > "geoTargetTypeSetting": { > "positiveGeoTargetType": "PRESENCE_OR_INTEREST", > "negativeGeoTargetType": "PRESENCE" > }, > "paymentMode": "CLICKS", > "name": "testinjune14", > "campaignBudget": "customers/<CID>/campaignBudgets/-1", > "startDate": "2022-06-13", > "endDate": "2022-09-08", > }, > > }, > > }, > ], > "responseContentType": "MUTABLE_RESOURCE" > } > ' > > > Regards, > > [image: Google Logo] > Aryeh > Google Ads API Team > > > ref:_00D1U1174p._5004Q2bvp9Q:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/29e5d479-2381-4fc6-a2bd-ebc3e49daa0dn%40googlegroups.com.
