Hello Aekansh,

I'm afraid, we do not have the PHP code sample to create Custom Affinity 
audience. Please find the code snippet in Java as a reference.

CustomAffinityServiceInterface listService = adWordsServices.get(session, 
CustomAffinityServiceInterface.class);
CustomAffinity audience = new CustomAffinity();
audience.setStatus(CustomAffinityStatus.ENABLED);
audience.setName("Custom Created Intent_47");
audience.setType(CustomAffinityType.CUSTOM_INTENT);

CustomAffinityOperation operation = new CustomAffinityOperation();
operation.setOperand(audience);
operation.setOperator(Operator.ADD);

CustomAffinityOperation[] operations = new CustomAffinityOperation[] 
{operation};
CustomAffinityReturnValue result = listService.mutate(operations);

You may refer this and try it out in PHP. Let me know if you have any issues, 
I'll be happy to take a look.

Thanks,
Bharani, Google Ads API Team
ref:_00D1U1174p._5001UODtta: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 [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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/qf5ek000000000000000000000000000000000000000000000Q21WT2008NQuDmhlTYuGVNFKgeFF6w%40sfdc.net.

Reply via email to