*Adgroup Feed Matching function* -> I am trying to create this matching function in case of i want to combine functions using AND
matching_function: { function_string: `AND(CONTAINS_ANY(FeedAttribute[${feedId},1],{"name of business"}),CONTAINS_ANY(FeedAttribute[${feedId},9],{"Pub"}))`, left_operands: [ { matching_function: { function_string: `CONTAINS_ANY(FeedAttribute[${feedId},1],{"name of business"})`, left_operands: [{feed_attribute_operand: { feed_id: feedId, feed_attribute_id: 1}}], operator: CONTAINS_ANY, right_operands: [ { constant_operand: { string_value: "name of business" } } ] }, }, { matching_function: { function_string: `CONTAINS_ANY(FeedAttribute[${feedId},9],{"Pub"})`, left_operands: [{feed_attribute_operand: { feed_id: feedId, feed_attribute_id: 9}}], operator: CONTAINS_ANY, right_operands: [ { constant_operand: { string_value: "Pub" } } ] } } ], operator: AND } If i try to create separate matching functions to associate with Ad group feed, it is working but if i am combining functions- it is giving me Internal server error. Please let me know what i am doing wrong here Thanks On Friday, 19 March 2021 at 15:34:06 UTC+5:30 Megha Sethi wrote: > Thanks Got it. > > I have created one Flow for Adding Location extensions for new google ads > account for linking it with GMB -> > 1. Create a Feed by passing business account id and origin as GOOGLE. So > it automatically creates all attributes, feed items and feed mapping. > 2. Associate this feed with customer by passing placeholder types as > LOCATION. > 3. Create a Local Campaign -> Ad group -> Local Ad. > 4. I try to Associate Feed with Campaign Feed but it throws an error of > Matching function would not be allowed for this placeholder type. I don't > understand WHY? Can you please answer it ? > 5. Then i try to associate Feed with Adgroup feed and it created > successfully for granular filtering of locations with specific ads. > > Please answer these questions -> > > 1. The flow that i created for Adding Location extension to google ads > account and then associating specific locations to ad level. Is this > correct or am i missing something ? > 2. Please tell me more about Point no. #4 i mentioned above in the flow > > 3. I provide matching function -> > matching_function: { > function_string: 'IDENTITY(true)', > left_operands: [{ constant_operand: { boolean_value: true } }], > operator: 'IDENTITY' > }, > for associating with customer . Is that right ? > > 4. On Adgroup level Feed, i have passed this as matching function - > matching_function: { > function_string: 'IN(FEED_ITEM_ID,{167953491297})', > left_operands: [{ request_context_operand: { context_type: 2 } }], > operator: 2, > right_operands: [ > { constant_operand: { long_value: 167953491297 } } > ], > }, > Is there any other way we can check with location name OR location id. How > do we match in case of Virtual brand when we have same location names? Do > we have to keep this mapping of location id with feed item id for filtering > specific locations > > 5. When we create Feed, we can pass business account id of GMB - Can we > pass multiple account ids in case we have two brands on GMB and we want all > locations to be added for Google ads account. AS of now, i can see it is > taking only a string. Is there any way to pass multiple. If yes, can you > please give example ? > > Thanks > > On Thursday, 18 March 2021 at 14:32:40 UTC+5:30 adsapiforumadvisor wrote: > >> Hi Megha, >> >> Thank you for your questions. You may refer below for my responses : >> >> >> >> *I am able to create Feed Object and as per documentation, Google Ads by >> default set Feed attributes and feed mapping between Google Ads and GMB. >> But how we need to make sure from API level that Feed Mapping is actually >> done because we are creating manually feedmapping and we don't have >> resource name to check using GET API.* >> >> Feed mapping should be automatically done by the system as mentioned here >> <https://developers.google.com/google-ads/api/docs/location-extensions/overview#create_location_extensions> >> . >> >> >> *1. When we don't create any feed/location extension, if we just create >> campaign/adgroup/ad by passing ENUM as GMB at campaign level. BY default it >> takes all businesses of GMB to show ads right ?* >> >> This approach unfortunately would not work, you would need to follow the >> guides >> <https://developers.google.com/google-ads/api/docs/location-extensions/overview> >> >> in order for your GMB locations to work as intended. >> >> >> *2. If we create Feed Object only , will it be applicable to all >> campaigns /ads we create ? * >> >> Once the feed is created and setup accordingly, the system should >> automatically create the attributes. You will then have the option to >> associate it at the customer/campaign/adgroup level. These however, cannot >> be associated directly to ads. For more information related to this >> question, you may refer to this section >> <https://developers.google.com/google-ads/api/docs/location-extensions/overview#create_location_extensions> >> once >> more. >> >> >> *3. Is it mandatory to associate it with customer ? If i create Feed on >> managerial level -> it automatically associate with each customers. On the >> other hand, if i try to create Feed for sub accounts under that manager -> >> it automatically associate with each customers. So why is it necessary to >> associate with Customer ?* >> >> *4. Is it mandatory to associate it with campaign or adgroup feed? If we >> have created Feed with given business account id then why is there need to >> associate with campaigns / ad group feeds. I assume it is applicable to >> all.* >> >> *5. What is concept of Feed Items? Do we need to create it manually after >> creating Feed?* >> >> For the above #3, #4 and #5 items, I would recommend reaching out to the >> Google Ads Product support team, via this link >> <https://support.google.com/google-ads/gethelp>, for further insight on >> location extension concepts and behavior when set at specific levels. >> >> >> *6. Can we pass specific location ids (from the business that we added to >> manage in Feed), when we associate Feed with Campaign or Ad Group ?* >> >> This is unfortunately not possible via the Google Ads API. You can refer >> to the below guides for more options in managing your location extensions : >> >> Feed Item Set >> <https://developers.google.com/google-ads/api/docs/location-extensions/feed-item-set> >> Filtering Location Extensions >> <https://developers.google.com/google-ads/api/docs/location-extensions/filtering-location-extensions> >> >> Best regards, >> >> [image: Google Logo] >> Peter Laurence Napa Oliquino >> Google Ads API Team >> >> >> ref:_00D1U1174p._5004Q2DuHqg: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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/2f9f4c01-4562-4ecc-9472-4ff0c78c776an%40googlegroups.com.