Google Ads PHP API | Getting Error of AdvertisingChannelSubType not compatible with AdvertisingChannelType

59 views
Skip to first unread message

Ujas p

unread,
Feb 23, 2023, 5:24:59 AM2/23/23
to Google Ads API and AdWords API Forum
Hello,

I'm using Google Ads API PHP v12.

Here, I'm getting below error while creating campaign,

Request Params: 
AdvertisingChannelType : SEARCH
AdvertisingChannelSubType: SEARCH_EXPRESS

Error: 
""" {\n "message": "Request contains an invalid argument.",\n "code": 3,\n "status": "INVALID_ARGUMENT",\n "details": [\n {\n "@type": "type.googleapis.com\/google.ads.googleads.v12.errors.GoogleAdsFailure",\n "errors": [\n {\n "errorCode": {\n "operationAccessDeniedError": "CREATE_OPERATION_NOT_PERMITTED"\n },\n "message": "Unauthorized CREATE operation in invoking a service's mutate method.",\n "trigger": {\n "stringValue": "Cannot create campaigns of advertising channel type: SEARCH and sub-type: SEARCH_MOBILE_APP. App install campaigns are no longer available. To promote installs of your app, create a Universal App campaign."\n },\n "location": {\n "fieldPathElements": [\n {\n "fieldName": "operations",\n "index": 0\n }\n ]\n }\n }\n ],\n "requestId": "Pv35b7A9DH98IJl8qIcUtg"\n }\n ]\n }

Have you any list or idea which AdvertisingChannelType is compatible with  AdvertisingChannelSubType?
Screenshot_4.png

Google Ads API Forum Advisor

unread,
Feb 23, 2023, 11:16:18 AM2/23/23
to ujas...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to Google Ads API Forum.

For Search campaign, can you try setting SEARCH for AdvertisingChannelType and SEARCH_EXPRESS for AdvertisingChannelSubType? You may also refer here for Campaign Management in Google Ads API.

Also, kindly provide us with the complete request and response logs with the request-id generated on your end when you encountered the error, so that our team can take a closer look. For the PHP client library, logging can be enabled by following the guide here

You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Regards,

Google Logo Google Ads API Team


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