Team,

Please clarify below points :
1. Location Extension is still not supported via Assets
2. Hence, is it allowed to create extensions usings Feeds service ?
3. If point 2 is Yes, Can you please guide me to the correct document with 
steps to create the Location Extensions via REST API please .
I Tried the steps defined here 
: 
https://developers.google.com/google-ads/api/docs/location-extensions/affiliate-location-extensions?hl=en
But unable to proceed ahead :
   i. I created a Feed with following request :
POST:  
https://googleads.googleapis.com/v10/customers/1406577639/feeds:mutate
{
    "operations": {
        "create": {
            "name": "LocationTest",
            "origin": "GOOGLE",
            "status": "ENABLED",
            "affiliateLocationFeedData": {
                "chainIds":["100013"],
                "relationshipType": "GENERAL_RETAILER"
            }
        }
    },
    "partialFailure": false,
    "validateOnly": false,
    "responseContentType": "MUTABLE_RESOURCE"
}

ii. I am trying to create an AdGroupFeed : 
POST : 
https://googleads.googleapis.com/v10/customers/1406577639/adGroupFeeds:mutate
{
    "operations": {
        "create": {
            "placeholderTypes": [
                "LOCATION"
            ],
            "matchingFunction": {
                "operator": "CONTAINS_ANY",
                "leftOperands": [
                    {
                        "feedAttributeOperand": {
                             "feedId": "372113845",
                            "feedAttributeId": "13"
                        }
                    }
                ],
                "rightOperands": [
                    {
                       "feedAttributeOperand": {
                            "feedId": "372113845",
                            "feedAttributeId": "13"
                        }
                    }
                ]
            },
            "status": "ENABLED",
            "feed": "customers/1406577639/feeds/372113845",
            "adGroup": "customers/1406577639/adGroups/139789635584"
        }
    },
    "partialFailure": false,
    "validateOnly": false,
    "responseContentType": "MUTABLE_RESOURCE"
}

I am facing issue in STEP ii. with following error response:
{
    "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT",
        "details": [
            {
                "@type": 
"type.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure",
                "errors": [
                    {
                        "errorCode": {
                            "adGroupFeedError": 
"NO_EXISTING_LOCATION_CUSTOMER_FEED"
                        },
                        "message": "Location AdGroupFeeds cannot be created 
unless there is a location CustomerFeed for the specified feed.",
                        "trigger": {
                            "stringValue": "FeedId{id=372113845}"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                },
                                {
                                    "fieldName": "create"
                                },
                                {
                                    "fieldName": "feed"
                                }
                            ]
                        }
                    },
                    {
                        "errorCode": {
                            "functionError": "INVALID_OPERAND_TYPE"
                        },
                        "message": "Operand Type not supported.",
                        "trigger": {
                            "stringValue": ""
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                },
                                {
                                    "fieldName": "create"
                                },
                                {
                                    "fieldName": "matching_function"
                                },
                                {
                                    "fieldName": "right_operands",
                                    "index": 0
                                },
                                {
                                    "fieldName": "feed_attribute_operand"
                                }
                            ]
                        }
                    },
                    {
                        "errorCode": {
                            "functionError": 
"INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA"
                        },
                        "message": "The matching function is invalid for use 
with a feed with a fixed schema.",
                        "trigger": {
                            "stringValue": "Function{operator=CONTAINS_ANY, 
lhsOperand=[FeedAttributeOperand{feedId=FeedId{id=372113845}, 
feedAttributeId=FeedAttributeId{id=13}}], 
lhsOperandOps=ListOperations{clear=false, operators=[UPDATE]}, 
rhsOperand=[FeedAttributeOperand{feedId=FeedId{id=372113845}, 
feedAttributeId=FeedAttributeId{id=13}}], 
rhsOperandOps=ListOperations{clear=false, operators=[UPDATE]}, 
functionString=null}"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                },
                                {
                                    "fieldName": "create"
                                },
                                {
                                    "fieldName": "matching_function"
                                }
                            ]
                        }
                    }
                ],
                "requestId": "5RofCeIXFR_eSWcwU48x3g"
            }
        ]
    }
}
Can you please guide me with a correct request format for STEP ii.
Am i missing any step ?
I even tried creating CustomerFeed . But i get an error even there .
Error is as follows :
{
    "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT",
        "details": [
            {
                "@type": 
"type.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure",
                "errors": [
                    {
                        "errorCode": {
                            "requestError": "UNKNOWN"
                        },
                        "message": "The error code is not in this version.",
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                },
                                {
                                    "fieldName": "create"
                                },
                                {
                                    "fieldName": "matching_function"
                                },
                                {
                                    "fieldName": "right_operands",
                                    "index": 0
                                }
                            ]
                        }
                    },
                    {
                        "errorCode": {
                            "requestError": "UNKNOWN"
                        },
                        "message": "The error code is not in this version.",
                        "trigger": {
                            "stringValue": "function_string: 
\"IN(FeedAttribute[372113845,10],FeedAttribute[372113845,10])\"\noperator: 
IN\nlhs_operand {\n  feed_attribute_operand {\n    feed_id: 372113845\n    
feed_attribute_id: 10\n  }\n}\nrhs_operand {\n  feed_attribute_operand {\n    
feed_id: 372113845\n    feed_attribute_id: 10\n  }\n}\n"
                        },
                        "location": {
                            "fieldPathElements": [
                                {
                                    "fieldName": "operations",
                                    "index": 0
                                },
                                {
                                    "fieldName": "create"
                                },
                                {
                                    "fieldName": "matching_function"
                                }
                            ]
                        }
                    }
                ],
                "requestId": "Z0QCGaNfFjEEvwQ5lEBrXA"
            }
        ]
    }
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/6f69aa8f-ecd7-4a66-8464-827a293c5b36n%40googlegroups.com.

Reply via email to