Need to set the account ID twice for CampaignManagementService?

We're using GetCampaignsByAccountIdRequest to get the list of campaigns in an account.
We found that we must set the account ID for the request to succeed:
GetCampaignsByAccountIdRequest.setAccountId(AccountId);
However, it seems it's also mandatory to set the account ID when crreating the java service stubs:
BasicHttpBinding_ICampaignManagementServiceStub _service;
CampaignManagementServiceLocator locator = new CampaignManagementServiceLocator();
_namespace = locator.getServiceName().getNamespaceURI();
_service = (BasicHttpBinding_ICampaignManagementServiceStub) locator.getBasicHttpBinding_ICampaignManagementService();
_service.clearHeaders();
_service.setHeader(_namespace, "CustomerAccountId", AccountId);
Do we indeed need to set the AccountId twice as above?
Thanks

As a best practice you should always specify the identifier of the account being accessed in the CustomerAccountId header
element. Some of the campaign management operations for example GetCampaignsByAccountId,
require that you specify the account ID in the request message body, and most of them require that you specify the account ID in the CustomerAccountId header
element.
In a future version of the API we plan to make this more consistent, for example exclude the AccountId from the body, and only require CustomerAccountId in the header. 
I hope this helps!

Similar Messages

  • HT2534 I have already set up an Itunes account, but it says that i need to review the account. I guess i am not finished setting it up yet. I don't have a credit or debit card, and now i can't figure out how to put in 'none.'  How do I do this??? Pleaase

    I have already set up  and Itunes account, but it says that i need to reveiw the account. I guess i have not finished setting it up yet. But when i go into the payment information it says that i need to fill out the type of credit/debit card that i have. Well, i don't have one! How do i put that i have 'none?' it doesnt even have a 'none' button. PLLEEAAASseeee help me!!! Please:)

    If the amount of the purchase is close to $21.07, then you need to take into account taxes may be added.
    If you go beyond the credit from a gift card the balance will be billed to your credit card account.

  • HT5622 I have just received a new iphone 5s and need to set the Apple ID with my work email.  I used my work email on my personal iphone 4s to set up an icloud account and it will not let me use my work email as the Apple ID on my new iphone. What do I do

    I have just received a new iphone 5s and need to set the Apple ID with my work email.  I used my work email on my personal iphone 4s to set up an icloud account and it will not let me use this email as the Apple ID on my new iphone.  As it is a work phone I need to use this email address as my Apple ID.  How do I do this?

    when you open the app store scroll down to the bottom it will display the apple id currently in use, change it to your normal apple id email

  • I need help setting up an apple id for my sons phone. It seems his email address has been taken and/or we cant get the password.

    I need help setting up an apple id for my son's phone. It seems his email address has been taken and/or we cant get the password.

    Two different things
    If you forgot the password
    If you forgot your Apple ID password - Apple Support
    If the email ID you want to use is in use by someone else - then you may need a new one
    The iCloud ID's are usually unique and may be of help if you set one up

  • My apple id for icloud is linked to an invalid email address and i do not have the password for the account.  I need to delete the account to access my icloud on my iphone.  any ideas?

    my apple id for icloud is linked to an invalid email address and i do not have the password for the account.  I need to delete the account to access my icloud on my iphone.  any ideas on how to override this issue?

    If you updated the old ID at one point to create your current iCloud ID, temporarily recreate the old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I need to set up an apple ID for my IPAD but my daughter was already using my email address for her itunes

    I need to set up an apple id for my IPad but my daughter is using my email address to purchase music for her IPOD and IPhone.  How can she delete her apple ID so that I can use my own email account?

    Try getting a credit card from the same people who issued the debit card. If I read the home sharing paper properly after your set it up with the credit card you can change the payment method back to debit.

  • How to set the default settment rule for the same kind project.

    hi experts:
       the project of the same kind of the project profile have the same settment rule to one account (G/L).
    how to set the default settment rule for the project of  this kind of the project profile.
    regards

    Hi,
      You need to define the settlement profile and allocation structure.
    next you need to define the  Strategy for settlement rule.
    navigation-PS> costs> automatic and periodic allocations> settlement> Settlement rule for WBS
    --> Define strategy for settlement rule.
    Select the strategy and click on settings. in that new entries, check the Acc Assg element, enter Settlement profile and mention accass category as reposnsible cost center.
    Save this transaction.
    Now create a project assgin responsible costcenter for the WBS element in the project buider and save the transaction.
    Now run CJB2 transaction for the project, settlement rule will generated automatically.
    even you can configure the same for profitability segment.
    Rgds
    Sudhir Reddy

  • How to set the number of sockets for batch processing at runtime?

    Hello all,
    I need to change the execution model at runtime. I have achieved this by setting the 'ModelPath' property of the sequence file at runtime. When I set the sequence file model as batchmodel, i need to set the number of test sockets also dynamically. How can this be done? Once i set the number of sockets, i would also have to set the UUT serial number for each socket. Please help me out in solving this.
    Thanks and Regards
    Madhu Srinivasan.

    Hi Madhu,
        You can do this by inserting a sequence file callback into your main sequence and choose the ModelOptions callback. You can then use the expression step to set the "Parameters.ModelOptions.NumTestSockets" value to whatever you want. If you then use the Test UUTs execution entry point you will be prompted for serial numbers automatically. You could also use this same procedure but alter the ModelOptions callback in the process model directly, either way works just as well but I think that using a sequence file callback gives a bit more flexibility in the system.
    Hope this helps,
       Nick

  • "You may need to enter the name and password for an administrator"

    I am suddenly getting this message when I try to copy a file from my new Macbookpro to my Powerbook running 10.4.9.
    "You may need to enter the name and password for an administrator on this computer to change the item named "file i am trying to transfer". stop continue
    I hit continue and get the error message: "The item "that I am transferring" contains one or more items you do not have permission to read. Do you want to copy the items you are allowed to read?
    I say continue and get the error: "The operation cannot be completed because you do not have sufficient priveleges for some of the items."
    My network was working fine until today. I can copy fine to all other computers on my network. But not this one.
    If I initiate a transfer from the Powerbook, everything works fine.
    Ideas?

    I experience the exact issue between a macbook pro and an iMac.
    I can access the files locally on my macbook, copy them on usb-stick, etc.
    but ... when I try to copy the files to my iMac ... it fails with the sequence of questions you mentioned.
    However!
    I can copy whatever I like from my macbook if I use my wifes account.
    So...
    Imho there is a problem when the SAME account is used on both systems.
    In my case, I copied my account from the macbook to the (new) iMac.
    Mac OS X seems to be confused when the same accounts are used.
    Does this makes sense?
    All help welcome.
    Luc

  • "You may need to enter the name and password for an admin" ....

    Hi everyone!
    I'm getting this error when trying to copy files over to a network drive. First, it'll pop up and say:
    "You may need to enter the name and password for an administrator on this computer to change the item named"
    At the same time, it will create an empty file on the target drive. When I click "Continue", it asks me for my username and password, which I happily enter. At that point, it errors out and says "The operation cannot be completed because an item with the name "xyz" already exists".
    I've tried repairing permissions, chmod 777'ing a file, etc. It did work for a short time (it seemed to work while I was at work, but once I arrived home, it quit working and hasn't worked since.) I've tried rebooting as well.
    Does anyone have any suggestions? I'm really puzzled over this!
    Thanks!

    Actually I get some other errors as well:
    "You may need to enter the name and password..."
    Then I click continue...
    "The item "filename" contains one or more items you do not have permission to read. Do you want to copy the items you are allowed to read?"
    I click continue...
    "The operation cannot be completed because you do not have sufficient privileges for some of the items."
    I am copying a text file made from textedit. I have logged into the shared drive on my iMac. I get the same errors coying to my own user folder. Same account on both machines.
    But it does copy a blank version of the file to the drive and adds the .txt extension to it. Then I can delete it from the share.

  • Setting the global Font color for an application

    Hi,
    Can anyone tell me how I can set the default font colour for an application. I understand it involves using the UIManager class to somehow get/set the defaults but im stumped after that.
    Thanks in advance

    Since you really need to change foreground and etc. Use the following code to list all the resources that may set the font colors you want (the example only excludes background color resource, so it may set more than what you want, you need to pin point specific color resouces from the print out to suit your own need).
    UIDefaults defaults = UIManager.getLookAndFeelDefaults();
    for(Iterator i = defaults.keySet().iterator(); i.hasNext();) {
    String name = (String)i.next();
    Object value = defaults.get(name);
    if (value instanceof ColorUIResource && !name.endsWith("Background")
    && !name.endsWith("background")) {
    System.out.println(name);
    UIManager.put(name, new ColorUIResource(Color.red));
    }

  • [svn:fx-4.x] 15171: In SpriteVisualElement.addingChild() need to set the nestLevel if ILayoutManagerClient or if IUITextField ( this was missing).

    Revision: 15171
    Revision: 15171
    Author:   [email protected]
    Date:     2010-03-31 10:21:49 -0700 (Wed, 31 Mar 2010)
    Log Message:
    In SpriteVisualElement.addingChild() need to set the nestLevel if ILayoutManagerClient or if IUITextField (this was missing).  Because of this styles weren't being set up in the text field
    QE notes:
    Doc notes: None
    Bugs: SDK-25987
    Reviewed By: Alex
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-25987
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/spark/src/spark/core/SpriteVisualElement.as

    PS-Since I am missing some of my app. cd's, with
    Macintosh, are u able to just drag the app. folders
    and drop them on your new Mac and they are fully
    executable? In other words, are all Mac compatible
    programs self contained within their app. folder, and
    they can be simply dragged and dropped without having
    to be installed? Or is it that some apps can, and
    other mac apps have to be installed/restored from
    b.up software?
    Answer to this: it doesn't work. I tried it; my hard drive started having issues and I did "backups" in this way by dragging and dropping the applications to DVDs. By the time I bought an external HD a couple of days later, I couldn't use my laptop at all anymore, and after replacing the laptop's HD I tried to use the DVDs with copies of the applications. And they did NOT work. Ultimately I only lost a few things--.Mac's Freefall is the only thing that comes to mind right now--but reinstalling all the applications from original disks or from downloads (and tracking down the purchase receipts!) was very time-consuming. Fortunately the folks at the store just shrugged and put iLife back on the system for me, since I had no idea how to extract it off the disks that came with the computer.
    I think dragging and dropping did work with A FEW things, but only with basic stuff like Widgets.
    Hopefully if/ when disaster strikes again, the cloned drive I now have will make everything much easier. I'm using SuperDuper and it seems to work well enough.
    Oh, and I had all my photos/ music/ pictures/ documents/ calendars/ address books/ keychains/ mail backed up in a variety of ways: simply burnt to disk, or burnt to disk using .Mac's backup, or on iDisk. I got all that stuff back without difficulty. The applications were the hassle and so far as I can tell, the applications are what make cloning essential.

  • My dad died and I need to set the IPAD up as new.  How do I do that?

    My dad died last May and my mom gave me his iPad to use.  I need to set the iPad up as new but having problems.  I tried the online restore instructions using iTunes, but I can not read my dads apple password completely.  I have his apple ID but the password he wrote down is in pencil and fuzzy to read 2 letters correctly.  Does anyone know how to totally reset this?

    Brian, thank so much for this info.  I have been plugging along on the internet to find an answer to this puzzle before I had to go to the Apple store cuz I know it will cost some bucks to fix.  I am on a starving artists income, so god love the internet cuz I finally found the solution on this link.  I hope it can help others with the same problem like me.  Step #1- I had the latest version of itunes on my pc originally cuz I have an ipod, but I ended up having to uninstall and reinstall the latest version.  Than 2nd step I had to reset my host file too (do not ask me why, but follow this link's info for step 2)- thttp://support.microsoft.com/kb/972034
    Here is the rest of the instructions on this link to now follow for step #3.  http://www.macworld.co.uk/how-to/iosapps/how-hack-ipad-iphone-passcode-3504927/
    I appreciate everyone's support on this matter, my thanks!

  • My macbook pro's screen constantly goes dim. I have set the energy saver settings for battery to 7 mins but it goes dim if the period of inactivity is less than 7 mins. Please help.  MBP 13" OSX 10.6.8 (2011)

    My macbook pro's screen constantly goes dim. I have set the energy saver settings for battery to 7 mins but it goes dim even if the period of inactivity is less than 7 mins. Please help.  MBP 13" OSX 10.6.8 (2011)

    Doesn't sound like it.  It sounds like you're being logged-off.
    Does your Mac go through the complete Restart cycle -- black screen, gray and/or blue screen momentarily, startup chime, etc? 
    If you're not sure, do a Restart just to watch the process; the next time the problem occurs, see if it's the same.
    You need to know which it is, as these will have very different causes, and different places to look for a solution.

  • Authentication is required to set the network proxy used for downloading packages

    hello all,
    we bought a Sun X3-2 and our reseller installed OL6.5 and SRS 5.4.2. When user logs in, a window occurs regularly, displaying this message.
    Authentication is required to set the network proxy used for downloading packages
    After click on Cancel, the window re-appears then minutes after. It seems that it is related to polkit:
    /usr/libexec/polkit-gnome-authentication-agent-1
    Can i stop this service? Are there any hints to tune Oracle Linux when using sunrays? users don't need to update packages because the server is managed.
    thanks in advance for help,
    gerard

    i'm not fully agree with you, this problem arises because i'm using sunray. But you're right, i found the solution when searching on the net, not in oracle forums.
    The solution is to create
    .config/autostart/*.desktop
    with:
    X-GNOME-Autostart-enabled=false
    it seems ok, even if i have other problems, for instance, firefox and thunderbird crashing regularly, even if i'm up to date with packages (uln too).
    In the past, i used to use sunrays with solaris 10, it existed a document to tune gnome when using sunrays, i don't find the same thing with oracle linux.
    thanks for your reply,
    gerard

Maybe you are looking for