Hi Bryan,

Thanks for getting back to me. I tried running the same file but with an 
older version (4.0.0) of the client and got this exception:

Request with ID "zHpKD9RV14iyrt3TsCd2Hg" failed with status 
"INVALID_ARGUMENT" and includes the following errors:
Request made: ClientCustomerId: 7887825568, Host: 
googleads.googleapis.com:443, Method: 
/google.ads.googleads.v2.services.CampaignSharedSetService/MutateCampaignSharedSets,
 
RequestId: zHpKD9RV14iyrt3TsCd2Hg, IsFault: True, FaultMessage: The error 
code is not in this version.
Error with message "The error code is not in this version.".
On field: operations


I can confirm the same error when I make an API call using curl with 
https://googleads.googleapis.com/v2/customers/{obfuscated}/campaignSharedSets:mutate.
Here's the JSON body:
{
    "operations": [
        {
            "create": {
                "campaign": {
                    "value": "customers/{obfuscated}/campaigns/{obfuscated}"
                },
                "shared_set": {
                    "value": 
"customers/{obfuscated}/sharedSets/{obfuscated}"
                }
            }
        }
    ]
}

I get the following response 

{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": 
"type.googleapis.com/google.ads.googleads.v2.errors.GoogleAdsFailure",
        "errors": [
          {
            "errorCode": {
              "requestError": "UNKNOWN"
            },
            "message": "The error code is not in this version.",
            "trigger": {
              "int64Value": "4"
            },
            "location": {
              "fieldPathElements": [
                {
                  "fieldName": "operations",
                  "index": "0"
                }
              ]
            }
          }
        ]
      }
    ]
  }
}

Any ideas on why this is happening?

On Monday, January 13, 2020 at 4:45:07 PM UTC-5, adsapiforumadvisor wrote:
>
> Hi Michael,
>
> Thank you for reaching out. It looks like it’s a setup issue in which 
> there could have been a problem with the way the client library was 
> installed, in which it is not reading the attribute file ‘errors_pb2’ while 
> the the attribute is being used in the script. In this case I would 
> recommend you to re-download and install the latest version of our client 
> library to remedy setup issues. For Google Ads Python, you can find the 
> latest version here 
> <https://github.com/googleads/google-ads-python/releases>. Could you give 
> that a try and let me know if you still run into issues with attaching the 
> shared keyword set to your video campaign, as they should be able to have 
> shared sets?
>
> Thank you,
> Bryan, Google Ads API Team
>
>
> ref:_00D1U1174p._5001USwM6Y: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/3e8674af-4bcc-45bd-b181-4d90753afda2%40googlegroups.com.

Reply via email to