Via the API, I created a campaign budget:
{
"campaignBudget": {
"status": "ENABLED",
"deliveryMethod": "STANDARD",
"type": "HOTEL_ADS_COMMISSION",
"amountMicros": "20000000",
"explicitlyShared": false,
"referenceCount": "0"
}
}
I am now trying to create a campaign to use it:
{
"operations": [
{
"create": {
"name": "New Hotels Campaign",
"status": 2,
"campaignBudget": <campaign resource>,
"advertisingChannelType": 5,
"commission": {
"commissionRateMicros": 100000
},
"hotelSetting": {
"hotelCenterId": <our hotel center id>
}
}
}
]
}
When I try, though, I get
NOT_COMPATIBLE_WITH_PAYMENT_MODE. If I am understanding everything correctly, it's trying to create the campaign with the wrong payment mode. I can't specify the payment mode on campaign creation, though, so how do I set it properly?
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"errors": [
{
"errorCode": {
"biddingError": "NOT_COMPATIBLE_WITH_PAYMENT_MODE"
},
"message": "The field is not compatible with the payment mode.",
"trigger": {
"stringValue": "BUDGET_TYPE_HOTEL_ADS_COMMISSION"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "create"
},
{
"fieldName": "campaign_budget"
}
]
}
},
{
"errorCode": {
"biddingError": "NOT_COMPATIBLE_WITH_PAYMENT_MODE"
},
"message": "The field is not compatible with the payment mode.",
"trigger": {
"stringValue": "COMMISSION"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
},
{
"fieldName": "create"
},
{
"fieldName": "commission"
}
]
}
}
]
}
]
}
}