Having trouble creating Hotel Ads campaign (NOT_COMPATIBLE_WITH_PAYMENT_MODE)

181 views
Skip to first unread message

Steve Wilcox

unread,
May 11, 2021, 12:49:31 PM5/11/21
to AdWords API and Google Ads API Forum
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"
                }
              ]
            }
          }
        ]
      }
    ]
  }
}

Steve Wilcox

unread,
May 13, 2021, 1:59:51 PM5/13/21
to AdWords API and Google Ads API Forum
Been banging my head against this for a few days.  Reviewing a few campaigns that do what I want to do that were created in the UI, it appears that the paymentMode I'm looking for is CONVERSION_VALUE (3).
But I can't seem to figure out what other fields to populate that will make the API decide that's what paymentMode I'm looking for (since I can't specify it in the request).

This can be accomplished through the UI with little effort.  I just need to figure out how to do it through the API

AdWords API and Google Ads API Forum

unread,
Jun 4, 2021, 2:13:14 AM6/4/21
to AdWords API and Google Ads API Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-api/c/_0LlDnUEeSo/m/MchYvY4DBwAJ) from the forum as it wasn't routed to our support queue. 

Thanks, 

Peter Laurence Napa Oliquino 
Google Ads API Team 

Google Ads API Forum Advisor

unread,
Jun 7, 2021, 10:17:26 PM6/7/21
to adwor...@googlegroups.com
Hi,

This guide discusses how you can use the commission strategy on your hotel campaigns. The PaymentMode would need to be :

To use a commission strategy, you will also need to set the PaymentMode enum to either CONVERSION_VALUE (requires BudgetType.HOTEL_ADS_COMMISSION) or GUEST_STAY (requires BudgetType.STANDARD). Also note that a commission strategy is not compatible with a shared budget.

That said, could you confirm if the above was the current setting when the error occurred?

If you continue to encounter the error, you may provide the complete request and response logs, with the request-id, so our team can investigate further. You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2I0AR4:ref

Steve Wilcox

unread,
Jun 8, 2021, 11:25:23 AM6/8/21
to ads...@forumsupport.google, adwor...@googlegroups.com
I did manage to get it working, but the piecemeal nature of my changes means I'm not sure what I changed to get it there.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/_0LlDnUEeSo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/lytBD000000000000000000000000000000000000000000000QUD2CN00Ldq9vszaRvyH5ovZYuonag%40sfdc.net.


--
Steve Wilcox
Developer | ResNexus

Google Ads API Forum Advisor

unread,
Jun 14, 2021, 5:52:13 AM6/14/21
to swi...@convoyant.com, adwor...@googlegroups.com
Hi Steve,

Glad to hear that you managed to make it work. That said, could you confirm if you have additional clarifications for our team regarding this topic?

Steve Wilcox

unread,
Jun 14, 2021, 10:23:48 AM6/14/21
to ads...@forumsupport.google, adwor...@googlegroups.com
No, I don't think I do.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/_0LlDnUEeSo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages