Hi Adword Team,

When we adding the *Mobile app ads *getting error like this 
OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE 
@ operations[0].operand.ad; trigger:'SEARCH(SEARCH_MOBILE_APP). This error 
is getting only when choosing SEARCH(SEARCH_MOBILE_APP) campaign type. 
Display type is fine. Corresponding soap request and response is attached 
below please find us.

Regards 

sandeep cv

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6abc08b5-66e6-45da-abb6-09485264b51f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[Jul 23 2015 06:45:18.000000 - ERROR] POST 
/api/adwords/cm/v201409/AdGroupAdService HTTP/1.1
Host: adwords.google.com
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.5.12, gzip
Accept-Encoding: gzip, deflate
Content-Encoding: gzip
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 738
Authorization: Bearer 
ya29.uQGJh3jWkV8VdOZnFlRqbxGY9he-FJMnGQ3B4cXwdu4Mu1w5ms5voQwOU_3X6YzWkD73

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201409"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <SOAP-ENV:Header>
    <ns1:RequestHeader>
      <ns1:clientCustomerId></ns1:clientCustomerId>
      <ns1:developerToken></ns1:developerToken>
      <ns1:userAgent>(AwApi-PHP/5.7.1, Common-PHP/5.7.1, 
PHP/5.5.12)</ns1:userAgent>
    </ns1:RequestHeader>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <ns1:mutate>
      <ns1:operations>
        <ns1:operator>ADD</ns1:operator>
        <ns1:operand>
          <ns1:adGroupId>22094150829</ns1:adGroupId>
          <ns1:ad xsi:type="ns1:TemplateAd">
            <ns1:displayUrl>play.google.com</ns1:displayUrl>
            <ns1:finalAppUrls>
              
<ns1:url>android-app://com.example.demogame/loadlevel?level=mars</ns1:url>
              <ns1:osType>OS_TYPE_ANDROID</ns1:osType>
            </ns1:finalAppUrls>
            <ns1:templateId>453</ns1:templateId>
            <ns1:templateElements>
              <ns1:uniqueName>adData</ns1:uniqueName>
              <ns1:fields>
                <ns1:name>headline</ns1:name>
                <ns1:type>TEXT</ns1:type>
                <ns1:fieldText>varun</ns1:fieldText>
              </ns1:fields>
              <ns1:fields>
                <ns1:name>description1</ns1:name>
                <ns1:type>TEXT</ns1:type>
                <ns1:fieldText>varun against players online</ns1:fieldText>
              </ns1:fields>
              <ns1:fields>
                <ns1:name>description2</ns1:name>
                <ns1:type>TEXT</ns1:type>
                <ns1:fieldText>cvit is against you</ns1:fieldText>
              </ns1:fields>
              <ns1:fields>
                <ns1:name>appId</ns1:name>
                <ns1:type>TEXT</ns1:type>
                <ns1:fieldText>com.example.demogame</ns1:fieldText>
              </ns1:fields>
              <ns1:fields>
                <ns1:name>appStore</ns1:name>
                <ns1:type>ENUM</ns1:type>
                <ns1:fieldText>2</ns1:fieldText>
              </ns1:fields>
            </ns1:templateElements>
            <ns1:name>Ad for demo game</ns1:name>
          </ns1:ad>
          <ns1:status>ENABLED</ns1:status>
        </ns1:operand>
      </ns1:operations>
    </ns1:mutate>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Date: Thu, 23 Jul 2015 04:45:24 GMT
Expires: Thu, 23 Jul 2015 04:45:24 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 559
Server: GSE

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Header>
    <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201409";>
      <requestId>00051b838e3430a00a4c53452f041628</requestId>
      <serviceName>AdGroupAdService</serviceName>
      <methodName>mutate</methodName>
      <operations>1</operations>
      <responseTime>129</responseTime>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      
<faultstring>[OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE @ 
operations[0].operand.ad; trigger:'SEARCH(SEARCH_MOBILE_APP)']</faultstring>
      <detail>
        <ApiExceptionFault 
xmlns="https://adwords.google.com/api/adwords/cm/v201409";>
          
<message>[OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE @ 
operations[0].operand.ad; trigger:'SEARCH(SEARCH_MOBILE_APP)']</message>
          <ApplicationException.Type>ApiException</ApplicationException.Type>
          <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="OperationAccessDenied">
            <fieldPath>operations[0].operand.ad</fieldPath>
            <trigger>SEARCH(SEARCH_MOBILE_APP)</trigger>
            
<errorString>OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE</errorString>
            <ApiError.Type>OperationAccessDenied</ApiError.Type>
            <reason>OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE</reason>
          </errors>
        </ApiExceptionFault>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>

Reply via email to