Hello,

When I try to create an Universal App Campaigns witn new google-ads-api, I 
get an error message:
2019-07-04 10:48:52,857 WARN  [Gax-7] logging.RequestLogger 
(RequestLogger.java:159) - FAILURE REQUEST SUMMARY. Method: 
google.ads.googleads.v2.services.CampaignService/MutateCampaigns, Endpoint: 
googleads.googleapis.com:443, CustomerID: {customer-id}, RequestID: 
JvIxWwqhbUPyq95eSzIi6w, ResponseCode: INVALID_ARGUMENT, Fault: Request 
contains an invalid argument..
2019-07-04 10:48:53,047 INFO  [Gax-7] logging.RequestLogger 
(RequestLogger.java:157) - FAILURE REQUEST DETAIL.
Request
-------
MethodName: google.ads.googleads.v2.services.CampaignService/MutateCampaigns
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id={mcc-id}, 
x-goog-api-client=gl-java/11.0.1 gapic/ gax/1.45.0 grpc/1.21.0}
Body: customer_id: "{customer-id}"
operations {
  create {
    name {
      value: "Interplanetary Cruise App #1562230131731"
    }
    status: PAUSED
    campaign_budget {
      value: "customers/{customer-id}/campaignBudgets/2120147970"
    }
    advertising_channel_type: MULTI_CHANNEL
    advertising_channel_sub_type: APP_CAMPAIGN
    start_date {
      value: "20190705"
    }
    end_date {
      value: "20190803"
    }
    manual_cpc {
    }
    dynamic_search_ads_setting {
      domain_name {
        value: "example.com"
      }
      language_code {
        value: "en"
      }
    }
  }
}


Response
--------
Headers: 
Metadata(content-type=application/grpc,request-id=JvIxWwqhbUPyq95eSzIi6w,date=Thu,
 
04 Jul 2019 08:48:52 GMT,alt-svc=quic=":443"; ma=2592000; v="46,44,43,39")
Body: null
Failure message: errors {
  error_code {
    operation_access_denied_error: MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT
  }
  message: "A mutate action is not allowed on this campaign, from this 
client."
  trigger {
    string_value: ""
  }
  location {
    field_path_elements {
      field_name: "operations"
      index {
      }
    }
  }
}

Status: Status{code=INVALID_ARGUMENT, description=Request contains an 
invalid argument., cause=null}.
Request ID JvIxWwqhbUPyq95eSzIi6w failed due to GoogleAdsException. 
Underlying errors:
  Error 0: error_code {
  operation_access_denied_error: MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT
}
message: "A mutate action is not allowed on this campaign, from this 
client."
trigger {
  string_value: ""
}
location {
  field_path_elements {
    field_name: "operations"
    index {
    }
  }
}

I get the same error message when I try to update an existing UAC campaign.
If I just change campaign type from

.setAdvertisingChannelType(AdvertisingChannelType.MULTI_CHANNEL)
.setAdvertisingChannelSubType(AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType.APP_CAMPAIGN)


to 

.setAdvertisingChannelType(AdvertisingChannelType.SEARCH)


Then everything works fine.
Also creating UAC campaign works from old adwords-api.

How can I create an UAC campaign using google-ads-api?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/edc727ca-eb7b-47d1-a1c5-b69947785d9c%40googlegroups.com.

Reply via email to