Hi Oleg, In PHP I have used the following code to add language(s):
$campaignResourceName = ResourceNames::forCampaign($customerId, $campaignId); $campaignCriterionOperations = []; $campaignCriterion = new CampaignCriterion([ 'campaign' => $campaignResourceName, 'type' => CriterionType::LANGUAGE, 'language' => new LanguageInfo([ 'language_constant' => ResourceNames::forLanguageConstant($languageId), ]), ]); $campaignCriterionOperation = new CampaignCriterionOperation(); $campaignCriterionOperation->setCreate($campaignCriterion); $campaignCriterionOperations[] = $campaignCriterionOperation; $campaignCriterionServiceClient = $this->googleAdsClient-> getCampaignCriterionServiceClient(); $campaignCriterionServiceClient->mutateCampaignCriteria( $customerId, $campaignCriterionOperations ); I hope it helps you :) Regards, FIlip On Monday, November 15, 2021 at 6:26:28 PM UTC+1 adsapi wrote: > Hi Oleg, > > There isn't a way to set the language of a campaign > <https://developers.google.com/google-ads/api/reference/rpc/v9/Campaign> > through > the CampaignService. However, you can set language as a campaign criterion > <https://developers.google.com/google-ads/api/reference/rpc/v9/CampaignCriterion> > > using the CampaignCriterionService. > > Regards, > Matt > Google Ads API Team > > > Reminder: Share your feedback about the Google Ads (AdWords) API! Take the > 2021 > Google Ads API and AdWords API Annual Survey > <https://google.qualtrics.com/jfe/form/SV_eQbOpf4VxRyyqqO?source=so> > > [image: Google Logo] > Matt > Google Ads API Team > > > ref:_00D1U1174p._5004Q2R93oS:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/acf96fac-b18f-41c4-8c47-edfc65cb3c16n%40googlegroups.com.