Hi,
https://developers.google.com/adwords/api/docs/appendix/codes-formats
here you will find all affinity user interest, and
92911 : /Technology/Social Media Enthusiasts is valid affinity
$adGroupCriterionService = $this->adWordServices->get($this->session,
AdGroupCriterionService::class);
$operations = [];
$userInterest = new CriterionUserInterest(92911);
$userInterest->setUserInterestId($userInterest->getId());
$genderBiddableAdGroupCriterion = new BiddableAdGroupCriterion();
$genderBiddableAdGroupCriterion->setCriterion($userInterest);
$adgroupOperation = new AdGroupCriterionOperation();
$adgroupOperation->setOperator(Operator::SET);
$adgroupOperation->setOperand($genderBiddableAdGroupCriterion);
$operations[] = $adgroupOperation;
$result = false;
if (!empty($operations)) {
$result = $adGroupCriterionService->mutate($operations);
}
return $result;
but this shows invalid_id error, please help me out here
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/c0589fd1-3c1e-43a4-9af5-5b686172eae7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.