i had created a app campaign in google ads UI, and query it by google ads 
java sdk:
---
campaign {
  resource_name: "customers/9706644786/campaigns/19114330526"
  status: PAUSED
  ad_serving_optimization_status: CONVERSION_OPTIMIZE
  advertising_channel_type: MULTI_CHANNEL
  advertising_channel_sub_type: APP_CAMPAIGN
  network_settings {
    target_google_search: true
    target_search_network: true
    target_content_network: true
    target_partner_search_network: false
  }
  experiment_type: BASE
  serving_status: SERVING
  bidding_strategy_type: TARGET_CPA
  target_cpa {
    target_cpa_micros: 1000000
  }
  selective_optimization {
    conversion_actions: "customers/9706644786/conversionActions/6445301964"
    conversion_actions: "customers/9706644786/conversionActions/6445318736"
  }
  geo_target_type_setting {
    positive_geo_target_type: PRESENCE_OR_INTEREST
    negative_geo_target_type: PRESENCE
  }
  app_campaign_setting {
    bidding_strategy_goal_type: 
OPTIMIZE_IN_APP_CONVERSIONS_TARGET_INSTALL_COST
    app_store: GOOGLE_APP_STORE
    app_id: "com.qookkagame.sgzzlb.hkmo"
  }
  payment_mode: CLICKS
  base_campaign: "customers/9706644786/campaigns/19114330526"
  name: 
"2-\347\233\256\346\240\207=\345\256\211\350\243\205\351\207\217&\345\256\232\344\275\215\347\224\250\346\210\267=\346\234\211\345\217\257\350\203\275\345\234\250\345\272\224\347\224\250\345\206\205\346\223\215\344\275\234\347\232\204\347\224\250\346\210\267"
  id: 19114330526
  campaign_budget: "customers/9706644786/campaignBudgets/12057320112"
  start_date: "2022-12-02"
  end_date: "2037-12-30"
  bidding_strategy_system_status: ENABLED
}
---
i copy these params and use google ads java sdk to create an app campaign 
but got a unknown code:
---
Request
-------
MethodName: 
google.ads.googleads.v12.services.CampaignService/MutateCampaigns
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=5459107574, 
x-goog-api-client=gl-java/1.8.0_291 gccl/22.0.0 gapic/22.0.0 gax/2.12.2 
grpc/1.44.0 pb/3.19.6}
Body: customer_id: "9706644786"
operations {
  create {
    status: PAUSED
    advertising_channel_type: MULTI_CHANNEL
    advertising_channel_sub_type: APP_CAMPAIGN
    bidding_strategy_type: TARGET_CPA
    target_cpa {
      target_cpa_micros: 1000000
    }
    selective_optimization {
      conversion_actions: 
"customers/9706644786/conversionActions/6445301964"
      conversion_actions: 
"customers/9706644786/conversionActions/6445318736"
    }
    app_campaign_setting {
      bidding_strategy_goal_type: 
OPTIMIZE_IN_APP_CONVERSIONS_TARGET_INSTALL_COST
      app_store: GOOGLE_APP_STORE
      app_id: "com.qookkagame.sgzzlb.gp.sea"
    }
    name: 
"UNITTEST-UAC\345\271\277\345\221\212\350\256\241\345\210\222-20221212151758"
    campaign_budget: "customers/9706644786/campaignBudgets/12107456624"
    start_date: "20221213"
    end_date: "20230111"
  }
}


Response
--------
Headers: 
Metadata(content-type=application/grpc,request-id=wCi5tjsdskBz0VJ8sMdRuQ,date=Mon,
 
12 Dec 2022 07:18:04 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443"; 
ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; 
ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")
Body: null
Failure message: errors {
  error_code {
    request_error: UNKNOWN
  }
  message: "The error code is not in this version."
  trigger {
    string_value: "ConversionTypeId: 6445301964"
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "selective_optimization"
    }
    field_path_elements {
      field_name: "conversion_actions"
    }
  }
}
errors {
  error_code {
    request_error: UNKNOWN
  }
  message: "The error code is not in this version."
  trigger {
    string_value: "ConversionTypeId: 6445318736"
  }
  location {
    field_path_elements {
      field_name: "operations"
      index: 0
    }
    field_path_elements {
      field_name: "create"
    }
    field_path_elements {
      field_name: "selective_optimization"
    }
    field_path_elements {
      field_name: "conversion_actions"
    }
  }
}
request_id: "wCi5tjsdskBz0VJ8sMdRuQ"
---

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/eb7fa78d-254b-48b1-a949-56b689bae5ccn%40googlegroups.com.
  • cr... qa cddpqa
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... qa cddpqa
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to