Reposting the last inquiry (
https://groups.google.com/g/adwords-api/c/_0LlDnUEeSo/m/MchYvY4DBwAJ 
<https://groups.google.com/g/adwords-api/c/bRRsc0NLZ_w/m/IJI92EEMBwAJ>) 
from the forum as it wasn't routed to our support queue. 

Thanks, 

*Peter Laurence Napa Oliquino *
Google Ads API Team 

On Friday, May 14, 2021 at 1:59:51 AM UTC+8 swi...@convoyant.com wrote:

> 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
>
> On Tuesday, May 11, 2021 at 10:49:31 AM UTC-6 Steve Wilcox wrote:
>
>> 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/443447b2-0136-4a93-8042-dc96ceeb1eefn%40googlegroups.com.

Reply via email to