Campaign creation with Lifetime budget fails

91 views
Skip to first unread message

Marlon Gómez

unread,
Dec 19, 2024, 9:15:25 AM12/19/24
to Google Ads API and AdWords API Forum
Hi, I am trying to create a campaign with total budget through the API. I already have the daily budget campaign creation working, but when I try to create a total budget campaign I get the following error:

{
  "errorCode": { "campaignBudgetError": "INVALID_PERIOD" },
  "message": "The period of the budget is not allowed.",
  "trigger": { "int64Value": "14172244997" },
  "location": {
    "fieldPathElements": [
      { "fieldName": "operations", "index": 0 },
      { "fieldName": "create" },
      { "fieldName": "campaign_budget" }
    ]
  }
}


Below, I show information of the data I send.

Budget creation (works)
{
        explicitlyShared: false,
        name: 'test generate google Budget - 1734617427950a',
        deliveryMethod: 'STANDARD',
        totalAmountMicros: 25000000,
        period: 'CUSTOM_PERIOD'
      }

Creation of the campaign with the previous budget (fails)
{
          name: 'test generate google - Buzzly',
          status: 'ENABLED',
          campaignBudget: 'customers/9437372372/campaignBudgets/14178825351',
          manualCpc: { enhancedCpcEnabled: false },
          startDate: '2024-12-19',
          endDate: '2024-12-26',
          advertisingChannelType: 'SEARCH',
          networkSettings: {
            targetContentNetwork: true,
            targetGoogleSearch: true,
            targetSearchNetwork: false,
            targetPartnerSearchNetwork: false
          }
        }


Google request ID of the failed request:
TSUIqA2LwyOpasTamWX0Tg

Marlon Gómez

unread,
Dec 20, 2024, 12:59:57 PM12/20/24
to Google Ads API and AdWords API Forum
Any help?

Google Ads API Forum Advisor

unread,
Dec 20, 2024, 5:31:15 PM12/20/24
to marlo...@gmail.com, adwor...@googlegroups.com
Hi Marlon, 

Thanks for reaching out! A custom budget is also known as a campaign total budget. Campaign total budgets are currently only available for Demand Gen and video campaigns. I see you have a campaign type of SEARCH, so you wouldn't be able to use a campaign total budget in this case. You'll need to use a daily budget instead, which it sounds like you already had working.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGplj:ref" (ADR-00279286)

Thanks,
 
Google Logo
Dora Sun
Google Ads API Team


Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
 

 



Reply all
Reply to author
Forward
0 new messages