yes i have the same question . i am trying to access a very
simple webservice :googel adwords api :
https://adwords.google.com/api/adwords/v4/CampaignService?wsdl .
want to add a new campaign ,code just bellow:
<cfset stcCampaign = StructNew()>
<cfset stcCampaign.Name = "Campaign5" &
RandRange(1,100)>
<cfset stcCampaign.DailyBudget = 10000 >
<cfdump var="#stcCampaign#" >
<cfset objCampaign = obInfo.addCampaign(stcCampaign)>
the function addCampaign(stcCampaign) is bellow:
<cffunction name="addCampaign" access="public" >
<cfargument name="strCampaign" type="any"
required="yes"> <cfinvoke
webservice="#VARIABLES.ws#" method="addCampaign"
returnvariable="VARIABLES.aReturn">
<cfinvokeargument name="campaign"
value="#ARGUMENTS.strCampaign#"/>
</cfinvoke>
</cffunction>
it can add new campaign ,but when i set the campaign status ,
code as bellow:
<cfset stcCampaign = StructNew()>
<cfset stcCampaign.Name = "Campaign5" &
RandRange(1,100)>
<cfset stcCampaign.DailyBudget = 10000 >
<cfset stcCampaign.status = "Active" >
<cfdump var="#stcCampaign#" >
<cfset objCampaign = obInfo.addCampaign(stcCampaign)>
it cannot run and show some error:
Web service operation "addCampaign" with parameters
{campaign={{NAME={Campaign591},STATUS={{ACTIVE={Active},}},DAILYBUDGET={100Â00},}},}
could not be found.
Can you tell me ?Thank you sincely. i use the v3 wsdl .the
document
is here
:
http://www.google.com/apis/adwords/developer3/CampaignService.html#ad...