Re: Matching function in ad customizer is not working

2015-12-22 Thread Kainesh Patel
Thanks Josh for the quick resolution. On Tue, Dec 22, 2015 at 10:10 PM, Josh Radcliff (AdWords API Team) < adwordsapiadvisor+j...@google.com> wrote: > Hi Kainesh, > > First, I should correct my previous answer (sorry). You will not create > *CampaignFeeds* or *AdGroupFeeds* for ad customizers. H

Re: Matching function in ad customizer is not working

2015-12-22 Thread Josh Radcliff (AdWords API Team)
Hi Kainesh, First, I should correct my previous answer (sorry). You will not create *CampaignFeeds* or *AdGroupFeeds* for ad customizers. However, you *must* create a *CustomerFeed* in order to enable customizers for your account -- see the second code block in this section of the guide

Re: Matching function in ad customizer is not working

2015-12-22 Thread Kainesh Patel
Hi Josh, Got it. Query 1: Lets have I have feed with 3 feedItems and none of targeting is set. I have attached feed with campaign which has multiple adgroups. Each adgroup has a customizable ad and default ad. Since, targeting is set as none at feed item level, my query is that only default(non c

Re: Matching function in ad customizer is not working

2015-12-22 Thread Josh Radcliff (AdWords API Team)
Hi Kainesh, One thing to keep in mind with ad customizers is that you *must* have at least one ad in the ad group that does *not* use customizers (see the note at the end of the Setting up an ad section of the guide

Re: Matching function in ad customizer is not working

2015-12-22 Thread Kainesh Patel
Hi Josh, By any chance, can we set using matching function? The issue is loop is getting generated:- 1. Create Campaign- >Adgroup 2. Then I need to attach adGroup to feedItem(ad customizer). 3. Then I need to create ad. If I merge step 1 and 3, then there would be chances of wrong ad be shown. F

Re: Matching function in ad customizer is not working

2015-12-22 Thread Josh Radcliff (AdWords API Team)
Hi Kainesh, Ad customizers are a bit different from feed-based extensions. For customizers, you don't want to set up *CustomerFeed/CampaignFeed/AdGroupFeed* objects with matching functions. Instead, you should set the campaignTargeting

Re: Matching function in ad customizer is not working

2015-12-21 Thread Kainesh Patel
Hi Yin, I am unable to capture soap request and response. Can you try the code in your setup? Thanks, Kainesh On Tuesday, December 22, 2015 at 4:22:39 AM UTC+5:30, Kainesh Patel wrote: > > Hi, > > I have changed my matching function to IN(FEED_ITEM_ID, {2807134218}), > where 2807134218 is FEE

Re: Matching function in ad customizer is not working

2015-12-21 Thread Kainesh Patel
Hi, I have changed my matching function to IN(FEED_ITEM_ID, {2807134218}), where 2807134218 is FEED_ITEM_ID. But its not helping. Unable to capture soap request and response from the Java code. WIll uodate you, once I have it. Thanks, Kainesh On Tuesday, December 22, 2015 at 3:49:34 AM UTC+5:

Re: Matching function in ad customizer is not working

2015-12-21 Thread Yin Niu
Hi Kanesh, Could you please send SOAP request and response log for further analysis? In the meantime, you could try to match by FeedItemId . Thanks, Yin, AdWords API Team. -- -- =~=

Re: Matching function in ad customizer is not working

2015-12-21 Thread Kainesh Patel
Hi Yin, Any update or progress, you would like to share with me? Thanks, Kainesh On Tuesday, December 22, 2015 at 3:03:27 AM UTC+5:30, Kainesh Patel wrote: > > Hi, > > Thanks for the quick response. > > The output is been shared with you in output.txt. > The output is Feed with name 'MyFirstFeed

Re: Matching function in ad customizer is not working

2015-12-21 Thread Kainesh Patel
Hi, Thanks for the quick response. The output is been shared with you in output.txt. The output is Feed with name 'MyFirstFeed556' and ID 32350825 with nameAttributeId *Name 1* and priceAttributeId Price 2 and dateAttributeId Date 3 and inventoryId inventory 4 was created. So, 1 corresponds to

Re: Matching function in ad customizer is not working

2015-12-21 Thread Yin Niu
Hi Kanesh, Could you send the output for the following code? System.out.printf("Feed with name '%s' and ID %d with nameAttributeId %s %d" + " and priceAttributeId %s %d and dateAttributeId %s %d and inventoryId %s %d" + " was created.\n", savedFeed.getName(),

Re: Matching function in ad customizer is not working

2015-12-21 Thread Kainesh Patel
Hi Yin, Thanks for your quick reply. The matching function used in the code doesn't use either feedId or feedAttribute Id. It used FEED_ITEM_ID. String matchingFunctionString = String.format("AND( IN(FEED_ITEM_ID, {%s}), EQUALS(CONTEXT.DEVICE, 'Mobile') )",Joiner.on(',').join(siteLinksData.sit

Re: Matching function in ad customizer is not working

2015-12-21 Thread Yin Niu
Hi Kainesh, Please take a look at this code example . You are hard-coding the feedAttributeIds. That might be the problem. Thanks, Yin,

Re: Matching function in ad customizer is not working

2015-12-21 Thread Kainesh Patel
Hi Yin, I have used feed Attribute Id only which in my case is 1, which I got it before populating the feed items. If I am not wrong, there is no concept of feedItemAttribute Id, please correct me if I am wrong. Thanks, Kainesh On Tuesday, December 22, 2015 at 1:57:41 AM UTC+5:30, Yin Niu wr

Re: Matching function in ad customizer is not working

2015-12-21 Thread Yin Niu
Hi Kainesh, When you match by feed attribute, you should use the [feedId, feedAttributeId] as lhsOperand . It seems that you have used feedItemAttributeId as feedAttributeId in the match