Hi Filip,
Thank you for providing your own solution.
Oleg, please also note that there is a code example that makes use of the
CampaignCriterionService to add campaign targeting criteria.
Regards,
Matt
Google Ads API Team
Reminder: Share your feedback about the Google Ads (AdWords) API! Take
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' =>
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' =>
Hi Oleg,
There isn't a way to set the language of a campaign through the
CampaignService. However, you can set language as a campaign criterion using
the CampaignCriterionService.
Regards,
Matt
Google Ads API Team
Reminder: Share your feedback about the Google Ads (AdWords) API! Take the
Hello,
I want to add the language that I want when i created the new campaign.
for example
$campaign = new Campaign([
'name' => 'campaign1',
'language' => english
]);
I can't see 'language' parameter in campaign class.
Can you help me?
Regards
oleg
--
--