RE: Creating custom affinity audience

2019-12-09 Thread Google Ads API Forum Advisor Prod
Hi Aekansh, I'm glad that the issue has been resolved. Could you point me to the UI screenshot where you're trying to add the audience? If you're looking to add the affinity categories, you may use the AdGroupCriterionService.mutate() or CampaignCriterionService.mutate() to target them to the c

Re: Creating custom affinity audience

2019-12-09 Thread Aekansh Partani
Thanks for the help. It seems issue was with my code. $customAffinityService = $adWordsServices->get(sessionBuilder(), CustomAffinityService::class); I was using CustomAffinity instead of CustomAffinityService. Also is there is any way we can help adding examples to google adwords libr

Re: Creating custom affinity audience

2019-12-09 Thread Aekansh Partani
So I am able to create custom affinity now I was using CustomAffinity instead of CustomAffinityService $customAffinityService = $adWordsServices->get(sessionBuilder(), CustomAffinityService::class); Now I need to define my audience by adding relevant interests, URLs, places, or apps. Can you

Re: Creating custom affinity audience

2019-12-06 Thread Google Ads API Forum Advisor Prod
Hi Aekansh, Your code snippet looks fine to me. It looks like it is mostly a client library specific issue and a similar issue has been reported on the Github Issue Tracker. Could you please check the solution shared? If you're still having an issue, could you please open a new thread on the is

Re: Creating custom affinity audience

2019-12-05 Thread Aekansh Partani
Thanks for your reply. I used this in PHP and got Call to undefined method Google\AdsApi\AdWords\v201809\rm\CustomAffinity::setStreamContext() $customAffinityService = $adWordsServices->get(sessionBuilder(), CustomAffinity::class); $audience = new CustomAffinity(); $audience->setStatus(Custom

RE: Creating custom affinity audience

2019-12-05 Thread Google Ads API Forum Advisor Prod
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 C