$command = qq(curl -i -X POST \\ "https://googleads.googleapis.com/v16/customers/$Certified_Santee/adGroupAds:mutate" \\ --header "Content-Type: application/json" \\ --header "developer-token: $developer_token" \\ --header "Authorization: Bearer $access_token" \\ --data ' { "operations": [ "adGroupAdOperation": { "create": { "adGroup": "customers/$Certified_Santee/adGroupAds/$Santee_SSA4_Transmission", "status": "PAUSED", "ad": { "expandedTextAd": { "headlines": [ { "pinnedField": "HEADLINE_1", "text": "1985 Alfa Romeo Spider" }, { "text": "Alfa Romeo Spider transmission" }, { "text": "Alfa Romeo transmissions" } ],
"descriptions": [ { "text": "Our experts are Alfa Romeo specialists. Many reman transmissions in stock." }, { "text": "Certified Transmission Santee is a full Alfa Romeo transmission diagnostic center." } ], "displayUrl": "$domain/ls_1985_Alfa_Romeo_Spider-transmission.shtml" } } } } ] } '); @result = qx{$command}; print "@result\n"; Result: { "error": { "code": 400, "message": "Invalid JSON payload received. Expected , or ] after array value.\n\"adGroupAdOperation\": \n [\n \n ^", "status": "INVALID_ARGUMENT" } } -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/8d1ad07d-4a14-48c1-9e4f-c17c422b41c7n%40googlegroups.com.