Google Ads API Universal App Campaigns

95 views
Skip to first unread message

Dmitrii Stebliuk

unread,
Jul 4, 2019, 4:55:30 AM7/4/19
to AdWords API and Google Ads API Forum
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
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?

Google Ads API Forum Advisor Prod

unread,
Jul 5, 2019, 1:29:40 AM7/5/19
to adwor...@googlegroups.com
Hi Dmitril,

Thank you for reaching out.

The reason you are getting this error is because your account is probably not yet whitelsited. As stated in this guide, accounts would have to be whitelisted first to be able to create and modify Universal App campaigns. You can contact your Google representative to assist you with the whitelisting process.

Regards,
Dannison
Google Ads API Team

ref:_00D1U1174p._5001UCb2a9:ref
Reply all
Reply to author
Forward
0 new messages