Hello! There is a primary account for working with google ads (503-425-5686). For this account (503-425-5686) a developer account has been created.
After that, a test account was created (397-761-8798) Further, the settings file looks like this: api.adwords.refreshToken=Was created for an account (397-761-8798) api.adwords.clientId=Was created for an account (503-425-5686) api.adwords.clientSecret=Was created for an account (503-425-5686) api.adwords.clientCustomerId=397-761-8798 api.adwords.developerToken=Was created for an account (503-425-5686) Next, I make a request GetCampaigns.java and get in response: "[31 Oct 2018 11:23:22,552-requestInfoLogger:INFO:main] Request made: Service: CampaignService Method: get clientCustomerId: 397-761-8798 URL: https://adwords.google.com/api/adwords/cm/v201809/CampaignService Request ID: 0005797ea9a00cc00ae9eb129702a061 ResponseTime(ms): 168 OperationsCount: 1 IsFault: false FaultMessage: null No campaigns were found. " If I make an AddCampaigns.java request, the answer comes in: (Look in - Remove AddCampaigns.java - Error log.txt) I hope for your help! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/fd2d9115-8139-48e3-b2e9-5b2c22bf8d15%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[31 Oct 2018 11:48:46,230-requestInfoLogger:INFO:main] Request made: Service: BudgetService Method: mutate clientCustomerId: 397-761-8798 URL: https://adwords.google.com/api/adwords/cm/v201809/BudgetService Request ID: 0005797f047107090a37a997e6002474 ResponseTime(ms): 199 OperationsCount: 1 IsFault: false FaultMessage: null [31 Oct 2018 11:48:47,189-requestInfoLogger:WARN:main] Request made: Service: CampaignService Method: mutate clientCustomerId: 397-761-8798 URL: https://adwords.google.com/api/adwords/cm/v201809/CampaignService Request ID: 0005797f047ee9b80a377c06b5072381 ResponseTime(ms): 280 OperationsCount: 2 IsFault: true FaultMessage: ApiException{applicationExceptionType=ApiException, errors=[OperationAccessDenied{apiErrorType=OperationAccessDenied, errorString=OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED, fieldPath=operations[0], fieldPathElements=[FieldPathElement{field=operations, index=0}], reason=ADD_OPERATION_NOT_PERMITTED, trigger=}, OperationAccessDenied{apiErrorType=OperationAccessDenied, errorString=OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED, fieldPath=operations[1], fieldPathElements=[FieldPathElement{field=operations, index=1}], reason=ADD_OPERATION_NOT_PERMITTED, trigger=}]} [31 Oct 2018 11:48:47,221-soapXmlLogger:INFO:main] SOAP request: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809" soapenv:mustUnderstand="0"> <ns1:clientCustomerId>397-761-8798</ns1:clientCustomerId> <ns1:developerToken>REDACTED</ns1:developerToken> <ns1:userAgent>unknown (AwApi-Java, AdWords-Axis/4.1.0, Common-Java/4.1.0, Axis/1.4, Java/1.8.0_181, maven)</ns1:userAgent> <ns1:validateOnly>false</ns1:validateOnly> <ns1:partialFailure>false</ns1:partialFailure> </ns1:RequestHeader> </soapenv:Header> <soapenv:Body> <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201809"> <operations> <operator>ADD</operator> <operand> <name>Interplanetary Cruise #1540961326271</name> <status>PAUSED</status> <startDate>20181101</startDate> <endDate>20181130</endDate> <budget> <budgetId>1666785026</budgetId> </budget> <frequencyCap> <impressions>5</impressions> <timeUnit>DAY</timeUnit> <level>ADGROUP</level> </frequencyCap> <settings xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809" xsi:type="ns2:GeoTargetTypeSetting"> <ns2:positiveGeoTargetType>DONT_CARE</ns2:positiveGeoTargetType> </settings> <advertisingChannelType>SEARCH</advertisingChannelType> <networkSetting> <targetGoogleSearch>true</targetGoogleSearch> <targetSearchNetwork>true</targetSearchNetwork> <targetContentNetwork>false</targetContentNetwork> <targetPartnerSearchNetwork>false</targetPartnerSearchNetwork> </networkSetting> <biddingStrategyConfiguration> <biddingStrategyType>MANUAL_CPC</biddingStrategyType> <biddingScheme xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201809" xsi:type="ns3:ManualCpcBiddingScheme"/> </biddingStrategyConfiguration> </operand> </operations> <operations> <operator>ADD</operator> <operand> <name>Interplanetary Cruise banner #1540961326310</name> <status>PAUSED</status> <budget> <budgetId>1666785026</budgetId> </budget> <advertisingChannelType>DISPLAY</advertisingChannelType> <biddingStrategyConfiguration> <biddingStrategyType>MANUAL_CPC</biddingStrategyType> </biddingStrategyConfiguration> </operand> </operations> </mutate> </soapenv:Body> </soapenv:Envelope> [31 Oct 2018 11:48:47,221-soapXmlLogger:INFO:main] SOAP response: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809"> <requestId>0005797f047ee9b80a377c06b5072381</requestId> <serviceName>CampaignService</serviceName> <methodName>mutate</methodName> <operations>2</operations> <responseTime>280</responseTime> </ResponseHeader> </soap:Header> <soap:Body> <soap:Fault> <faultcode>soap:Client</faultcode> <faultstring>[OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ operations[0], OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ operations[1]]</faultstring> <detail> <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809"> <message>[OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ operations[0], OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ operations[1]]</message> <ApplicationException.Type>ApiException</ApplicationException.Type> <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="OperationAccessDenied"> <fieldPath>operations[0]</fieldPath> <fieldPathElements> <field>operations</field> <index>0</index> </fieldPathElements> <trigger/> <errorString>OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED</errorString> <ApiError.Type>OperationAccessDenied</ApiError.Type> <reason>ADD_OPERATION_NOT_PERMITTED</reason> </errors> <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="OperationAccessDenied"> <fieldPath>operations[1]</fieldPath> <fieldPathElements> <field>operations</field> <index>1</index> </fieldPathElements> <trigger/> <errorString>OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED</errorString> <ApiError.Type>OperationAccessDenied</ApiError.Type> <reason>ADD_OPERATION_NOT_PERMITTED</reason> </errors> </ApiExceptionFault> </detail> </soap:Fault> </soap:Body> </soap:Envelope> Request failed due to ApiException. Underlying ApiErrors: Error 0: OperationAccessDenied{apiErrorType=OperationAccessDenied, errorString=OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED, fieldPath=operations[0], fieldPathElements=[FieldPathElement{field=operations, index=0}], reason=ADD_OPERATION_NOT_PERMITTED, trigger=} Error 1: OperationAccessDenied{apiErrorType=OperationAccessDenied, errorString=OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED, fieldPath=operations[1], fieldPathElements=[FieldPathElement{field=operations, index=1}], reason=ADD_OPERATION_NOT_PERMITTED, trigger=} Error 1: OperationAccessDenied{apiErrorType=OperationAccessDenied, errorString=OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED, fieldPath=operations[1], fieldPathElements=[FieldPathElement{field=operations, index=1}], reason=ADD_OPERATION_NOT_PERMITTED, trigger=}
