Hello,
I'm trying to
create a Search campaign using a
Total Amount Budget using the REST interface.
Params to create the
total budget: (no errors)
create:{
name: <NAME>,
totalAmountMicros: <TOTAL_AMOUNT_MICROS>,
explicitly_shared: false,
status: "ENABLED",
delivery_method: "STANDARD",
period: "CUSTOM_PERIOD"
}
Params to
create the Campaign (
works if DAILY budget period and amountMicros param instead of totalAmoutMicros):
{
"operations": [
{
"create": {
"name": "<CAMPAIGN_NAME>",
"status": "PAUSED",
"advertisingChannelType": "SEARCH",
"networkSettings": {
"targetGoogleSearch": true,
"targetSearchNetwork": true,
"targetContentNetwork": false,
"targetPartnerSearchNetwork": false
},
"manualCpc": {
"enhancedCpcEnabled": false
},
"campaignBudget": "customers/1980789725/campaignBudgets/13411425829",
}
}
]
}
Even with
start &
end date params, I still have the same issue: (below the error I got)
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "
type.googleapis.com/google.ads.googleads.v16.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"campaignBudgetError": "INVALID_PERIOD"
},
"message": "The period of the budget is not allowed.",
"trigger": {
"int64Value": "13411425829"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "create"
},
{
"fieldName": "campaign_budget"
}
]
}
}
],
"requestId": "yPqlO-Tw9N1uMwBP5olR0g"
}
]
}
}
So i wanted to know how can I create campaigns using Total Amount Budget (No set date + consume budget until exhausted), and if not, what are the campaigns i cannot use with this type of Budget.
I can provide you more informations if needed
Thank you
Sincerely,