curl: (92) HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)

1,753 views
Skip to first unread message

shabeer...@autodesk.com

unread,
Mar 25, 2019, 6:47:50 AM3/25/19
to AdWords API and Google Ads API Forum
I am getting this issue while running curl command, can someone help.

curl --header "Content-Type: application/soap+xml" --header "Authorization : Bearer" ya29XXXXXXXXX --data @hello_world.xml https://adwords.google.com/api/adwords/cm/v201809/CampaignService

XML:
<?xml version="1.0"?>
  <soapenv:Header>
    <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0">
      <ns1:clientCustomerId>xxx-xx-xxx</ns1:clientCustomerId>
      <ns1:developerToken>xxxxxx</ns1:developerToken>
      <ns1:userAgent>Autodesk app</ns1:userAgent>
      <ns1:validateOnly>false</ns1:validateOnly>
      <ns1:partialFailure>false</ns1:partialFailure>
    </ns1:RequestHeader>
  </soapenv:Header>
  <soapenv:Body>
      <operations>
        <operator>ADD</operator>
        <operand>
          <name>Hello World</name>
          <status>PAUSED</status>
          <budget>
            <budgetId>YOUR_BUDGET_ID</budgetId>
          </budget>
          <settings xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809" xsi:type="ns2:GeoTargetTypeSetting">
            <positiveGeoTargetType>DONT_CARE</positiveGeoTargetType>
          </settings>
          <advertisingChannelType>SEARCH</advertisingChannelType>
          <networkSetting>
            <targetGoogleSearch>true</targetGoogleSearch>
            <targetSearchNetwork>true</targetSearchNetwork>
            <targetContentNetwork>false</targetContentNetwork>
          </networkSetting>
          <biddingStrategyConfiguration>
            <biddingScheme xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201809" xsi:type="ns4:ManualCpcBiddingScheme">
              <enhancedCpcEnabled>false</enhancedCpcEnabled>
            </biddingScheme>
          </biddingStrategyConfiguration>
        </operand>
      </operations>
    </mutate>
  </soapenv:Body>
</soapenv:Envelope>

googleadsapi...@google.com

unread,
Mar 25, 2019, 3:09:52 PM3/25/19
to AdWords API and Google Ads API Forum
Hello Shabeer, 

Your request looks fine. It looks like the issue is specific to the curl request. Please check this related post to help with this issue. If you're still having an issue, you could post your concern on the Github issue tracker for further assistance.

Thanks,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

googleadsapi...@google.com

unread,
Mar 26, 2019, 11:45:51 AM3/26/19
to AdWords API and Google Ads API Forum
Hello Shabeer, 

Thank you for sharing the details privately. Based on the logs, can you make sure to use the client customer Id in the format (123-456-7890) as mentioned here? Also, it looks like the end point you're using is for a CampaignService. Please refer to this example to download the report and make sure to use the report download endpoint. 

Let me know if you have any other questions.

Regards,
Bharani, Google Ads API Team
Reply all
Reply to author
Forward
0 new messages