AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED using upload_offline_conversions

41 views
Skip to first unread message

d...@adservice.com

unread,
Nov 27, 2014, 7:31:51 AM11/27/14
to adwor...@googlegroups.com
Hi

I am using a script very similar to upload_offline_conversions.pl with v201409
a difference is that i am setting the oauth handler in the script:

        my $client = Google::Ads::AdWords::Client->new({version => "v201409"});
        $client->set_developer_token($clientSettings->{developer_token});
        $client->get_oauth_2_handler()->set_client_id($clientSettings->{client_id});
        $client->get_oauth_2_handler()->set_client_secret($clientSettings->{client_secret});
        $client->get_oauth_2_handler()->set_access_token($agent->{access_token});
        $client->get_oauth_2_handler()->set_refresh_token($agent->{refresh_token});

it works fine in v201406 but in v201409 i am getting this error: 
AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED

Danial Klimkin

unread,
Nov 27, 2014, 8:01:45 AM11/27/14
to adwor...@googlegroups.com
Hello,


This error means you are not providing the clientCustomerId in the request, which is required as of v201409.

This is the CID of your account (string like 123-456-7890)


-Danial, AdWords API Team.

d...@adservice.com

unread,
Nov 27, 2014, 8:09:31 AM11/27/14
to adwor...@googlegroups.com
How do i provide that to the request using the perl lib ?

Danial Klimkin

unread,
Nov 27, 2014, 8:13:36 AM11/27/14
to adwor...@googlegroups.com
This should be:

  $client->set_client_id("123-456-7890")


-Danial.
Reply all
Reply to author
Forward
0 new messages