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": [
      {
        "@type": 
"type.googleapis.com/google.ads.googleads.v6.errors.GoogleAdsFailure",
        "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"
                }
              ]
            }
          }
        ]
      }
    ]
  }
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0ac636c7-6fd1-4884-ba71-1fac9332a277n%40googlegroups.com.

Reply via email to