Hi Amol,

I can tell you that this worked in JAVA sample of add campaign targeting :

private static CampaignCriterion buildLanguageCriterion(String 
campaignResourceName){
  Builder builder = 
CampaignCriterion.newBuilder().setCampaign(campaignResourceName);

  
builder.setLanguage(LanguageInfo.newBuilder().setLanguageConstant("languageConstants/1019").build())
 ;

  return builder.build();

}

I can guess that this would work in the PHP sample of add campaign targeting :

private static function createLanguageCampaignCriterionOperation(
string $campaignResourceName
){
$campaignCriterion = new CampaignCriterion([
// Creates a location using the specified location ID.
'language' => new LanguageInfo([
'language_constant' => ResourceNames::forLanguageConstant(1019)
]),
'campaign' => $campaignResourceName
]);
return new CampaignCriterionOperation(['create' => $campaignCriterion]);
}

And adding in above :

self::createProximityCampaignCriterionOperation($campaignResourceName),
self::createLanguageCampaignCriterionOperation($campaignResourceName)


To be certain you may reach out to the PHP library issue tracker.

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 
Google Ads API and AdWords API Annual Survey

Regards,

Aryeh Baker
Google Ads API Team
ref:_00D1U1174p._5004Q2RvXRc: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/D43JG000000000000000000000000000000000000000000000R31NF100C1j_m2wATtWX43ZHDUioyQ%40sfdc.net.
  • Ho... Amol Kawale
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to