List Info

Thread: AdWords API CriterionService Problem , Invalid CriterionType




AdWords API CriterionService Problem , Invalid CriterionType
user name
2008-02-23 10:55:40
Hello Friends.

If any one can help me in google ad words api, i am trying
to add
websites to an adgroup, which gives me error,

This criterion type is invalid. Acceptable values are
'Website' and
'Keyword'.  Websites and keywords may not be used in ad
groups in the
same campaign.


my source is given below
 For aa As Integer = 0 To validSites.Length - 1
            websites(xx) = New CriterionService.Website()
            websites(xx).adGroupId = AdGroupID
            websites(xx).url = strSites(aa)

            websites(xx).maxCpm = intMaxBid
            websites(xx).maxCpmSpecified = True


            'websites(xx).status = 0
            'websites(xx).statusSpecified = True

            'websites(xx).paused = False
            'websites(xx).pausedSpecified = True

            websites(xx).criterionType =
CriterionService.CriterionType.Website
            websites(xx).criterionTypeSpecified = True
            '
            'websites(xx).language = "en-US"
            'websites(xx).negative = False

            xx += 1
        Next
--~--~---------~--~----~------------~-------~--~----~
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-apigooglegroups.com
To unsubscribe from this group, send email to
adwords-api-unsubscribegooglegroups.com
For more options, visit this group at http
://groups.google.com/group/adwords-api?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )